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
While trying to run Wycheproof tests against this library, I noted some failures. In particular, tests 68 & 69 compute a wrong result. For example, for test 68, callipyge returns f6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f instead of 0900000000000000000000000000000000000000000000000000000000000000.
Here is a test case:
lethexdumpa=Array.iter (funb -> Printf.printf "%02x" b) a ;
print_newline ()letfrom_hexs=Hex.to_string (`Hex s)
let()=let pub_hex ="89e10d5701b4337d2d032181538b1064bd4084401ceca1fd12663a1959388000"inlet priv_hex ="a0a4f130b98a5be4b1cedb7cb85584a3520e142d474dc9ccb909a073a976bf63"inlet public =Callipyge.public_key_of_string @@ from_hex pub_hex inlet secret =Callipyge.secret_key_of_string @@ from_hex priv_hex inlet out =Array.make 320inCallipyge.ecdh_inplace ~out~secret~public ;
hexdump out
FYI, here is a piece of code that computes the same thing with openssl using pyca/cryptography:
Hi,
While trying to run Wycheproof tests against this library, I noted some failures. In particular, tests 68 & 69 compute a wrong result. For example, for test 68, callipyge returns
f6ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f
instead of0900000000000000000000000000000000000000000000000000000000000000
.Here is a test case:
FYI, here is a piece of code that computes the same thing with openssl using pyca/cryptography:
With openssl 1.1.1a, this one computes the correct value.
See openssl/openssl#6687 for a related failure in openssl itself.
Thanks!
The text was updated successfully, but these errors were encountered: