curv icon indicating copy to clipboard operation
curv copied to clipboard

Write smart tests for hash functions

Open omershlo opened this issue 6 years ago • 2 comments

unit test for hash functions should use test vectors and compare results. Right not we are just doing sanity checking.

omershlo avatar Aug 18 '19 14:08 omershlo

Extending these tests https://github.com/KZen-networks/curv/blob/ab4aed0e13425e8d6ba19819227b60e8085fb701/src/cryptographic_primitives/hashing/hash_sha256.rs#L40

https://github.com/KZen-networks/curv/blob/ab4aed0e13425e8d6ba19819227b60e8085fb701/src/cryptographic_primitives/hashing/hash_sha512.rs#L40

?

amanusk avatar Aug 18 '19 14:08 amanusk

yes

omershlo avatar Aug 18 '19 14:08 omershlo