We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example, crypto_data_hash gives the same hash value for keys [1,0,1] and [1]. I notice that strlen is used to calculate the key length:
crypto_data_hash
[1,0,1]
[1]
strlen
packages-ssl/crypto4pl.c
Line 396 in acb9607
Line 407 in acb9607
?- Key = [1], crypto_data_hash(`foo`, Hash, [algorithm(sha256),hmac(Key)]). Key = [1], Hash = '63a592e348d812a8027985ecfc6e0df958e9177437e59a182037ada35a4636e8'. ?- Key = [1,0,1], crypto_data_hash(`foo`, Hash, [algorithm(sha256),hmac(Key)]). Key = [1, 0, 1], Hash = '63a592e348d812a8027985ecfc6e0df958e9177437e59a182037ada35a4636e8'.
The text was updated successfully, but these errors were encountered:
This issue has been mentioned on SWI-Prolog. There might be relevant details there:
https://swi-prolog.discourse.group/t/wrong-hmac-values-from-crypto-data-hash/7256/1
Sorry, something went wrong.
367724a
No branches or pull requests
For example,
crypto_data_hash
gives the same hash value for keys[1,0,1]
and[1]
. I notice thatstrlen
is used to calculate the key length:packages-ssl/crypto4pl.c
Line 396 in acb9607
packages-ssl/crypto4pl.c
Line 407 in acb9607
The text was updated successfully, but these errors were encountered: