You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taken from the spec regarding the alg field in data-hash-map: (emphasis mine)
? "alg":tstr .size (1..max-tstr-length) ; A string identifying the cryptographic hash algorithm used to compute the hash in this assertion, taken from the C2PA hash algorithm identifier list. If this field is absent, the hash algorithm is taken the alg value of the enclosing structure. If both are present, the field in this structure is used. If no value is present in any of these places, this structure is invalid; there is no default.
However, data_hash.verify_hash() only uses the supplied alg parameter from the claim, not self.alg:
Taken from the spec regarding the
alg
field indata-hash-map
: (emphasis mine)However,
data_hash.verify_hash()
only uses the suppliedalg
parameter from the claim, notself.alg
:c2pa-rs/sdk/src/assertions/data_hash.rs
Line 222 in d7868aa
Notably,
verify_stream_hash()
seems to do it correctly:c2pa-rs/sdk/src/assertions/data_hash.rs
Lines 239 to 245 in d7868aa
The text was updated successfully, but these errors were encountered: