crocs-muni / CryptoStreams

Tool for generation of data from cryptoprimitives (block and stream ciphers, hash functions). Cryptoprimitives are round-reduced and the data can be configured for multiple testing scenarios.
MIT License
13 stars 9 forks source link

Data length in bits/bytes repeatedly divided by 8 #90

Closed Bender250 closed 6 years ago

Bender250 commented 6 years ago

https://github.com/crocs-muni/CryptoStreams/blob/e9ef5a6c164cfb456899d40569d5b1738f2a2ccc/streams/hash/others/hash_functions/sha2/sha256_factory.cpp#L25

There is double division by 8 using all-in-one hash method.

Bender250 commented 6 years ago

Check other functions in /streams/hash/other.