Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling for missing HashFormatType #114

Open
jmccdev opened this issue Feb 15, 2022 · 0 comments
Open

Handling for missing HashFormatType #114

jmccdev opened this issue Feb 15, 2022 · 0 comments

Comments

@jmccdev
Copy link

jmccdev commented Feb 15, 2022

I created an ASC MHL History using the command line tool:

$ ascmhl create -h md5 <directory>

Afterwards, I manually removed action="original" from each hash register:

$ grep md5 16421225_Day001/ascmhl/0001_16421225_Day001_2022-02-08_224657.mhl 
      <md5 hashdate="2022-02-08T14:46:57.021683-08:00">9290a2ca3f586cb53da7cb516610fed2</md5>
      <md5 hashdate="2022-02-08T14:46:57.082991-08:00">4a4d102cb08af8ee4a96076ed5e51c43</md5>
      <md5 hashdate="2022-02-08T14:46:57.083792-08:00">a905ef013e401b93bd38b345ed9a7c33</md5>
      <md5 hashdate="2022-02-08T14:46:57.132443-08:00">67719b016da2dc1aaf4719da1219c756</md5>
      <md5 hashdate="2022-02-08T14:46:57.133264-08:00">2ef696b05bd9dbbef4e7c4e561b0d02f</md5>
      <md5 hashdate="2022-02-08T14:46:57.193704-08:00">dbbdf624486bce1232692628106bbe99</md5>
      <md5 hashdate="2022-02-08T14:46:57.194401-08:00">291ebdcdf07232e86b1e79fc7982abc2</md5>
      <md5 hashdate="2022-02-08T14:46:57.195028-08:00">c25b1cebea75d06b542d8208193ac97c</md5>

I then ran the create command on the same directory. There was no error about the missing HashFormatType, and the 0002* MHL that was created was given a HashFormatType of 'original' rather than 'verified':

$ grep action 16421225_Day001/ascmhl/0002_16421225_Day001_2022-02-15_005147.mhl 
      <md5 action="original" hashdate="2022-02-14T16:51:47.181396-08:00">9290a2ca3f586cb53da7cb516610fed2</md5>
      <md5 action="original" hashdate="2022-02-14T16:51:47.252141-08:00">4a4d102cb08af8ee4a96076ed5e51c43</md5>
      <md5 action="original" hashdate="2022-02-14T16:51:47.252984-08:00">a905ef013e401b93bd38b345ed9a7c33</md5>
      <md5 action="original" hashdate="2022-02-14T16:51:47.313754-08:00">67719b016da2dc1aaf4719da1219c756</md5>
      <md5 action="original" hashdate="2022-02-14T16:51:47.314558-08:00">2ef696b05bd9dbbef4e7c4e561b0d02f</md5>
      <md5 action="original" hashdate="2022-02-14T16:51:47.384243-08:00">dbbdf624486bce1232692628106bbe99</md5>
      <md5 action="original" hashdate="2022-02-14T16:51:47.385009-08:00">291ebdcdf07232e86b1e79fc7982abc2</md5>
      <md5 action="original" hashdate="2022-02-14T16:51:47.385510-08:00">c25b1cebea75d06b542d8208193ac97c</md5>

The data used for this is under /sources/104_verification_types/104e/ within the dataset on the G-Drive:
https://drive.google.com/drive/folders/1PrAPczRFBQsVfjakbX-fqnDVHsAD-kd1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant