]> git.tdb.fi Git - libs/crypto.git/commit
Account for SHA-512 asking for a 128-bit message length
authorMikko Rasa <tdb@tdb.fi>
Sat, 16 Apr 2016 12:44:30 +0000 (15:44 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 16 Apr 2016 12:44:30 +0000 (15:44 +0300)
commit52c9b0b8aacb973b6138ba0eb0e36e0c0cc23f80
tree847e0dd750d7497b68efca328ec7f36376e0a158
parent6511a62c3cec0a64bbdd7ac8e3588d39c164af09
Account for SHA-512 asking for a 128-bit message length

The upper 64 bits are filled with zeroes because 128-bit integers are not
available everywhere and it will be a while before lengths overflowing 64
bits are realistically possible.
source/sha2.cpp
source/sha2.h