Merge #11516: crypto: Add test cases covering the relevant HMAC-SHA{256,512} key...
commit0e722e8879a8e1eebe02fd14c70c39346c79f95d
authorWladimir J. van der Laan <laanwj@gmail.com>
Tue, 12 Dec 2017 08:53:26 +0000 (12 09:53 +0100)
committerWladimir J. van der Laan <laanwj@gmail.com>
Tue, 12 Dec 2017 08:57:12 +0000 (12 09:57 +0100)
tree6c2a4293bc15772a718267733c07fa81e3364ba8
parentd44535d8189ec2f0e77d445804cca60b869b24a1
parenta3f56578ab79931f3a35a44b6ff43d0da6308602
Merge #11516: crypto: Add test cases covering the relevant HMAC-SHA{256,512} key length boundaries

a3f5657 Add test cases covering the relevant key length boundaries: 64 bytes +/- 1 byte for HMAC-SHA256 and 128 bytes +/- 1 byte for HMAC-SHA512 (practicalswift)

Pull request description:

  * Add test cases covering the relevant key length boundaries: 64 bytes +/- 1 byte for HMAC-SHA256 and 128 bytes +/- 1 byte for HMAC-SHA512.
  * ~~Avoid creating a one-past-the-end pointer in the case of key length 64 (HMAC-SHA256) and key length 128 (HMAC-SHA512).~~
  * ~~Avoid performing a noop memset call (zero length argument) in the case of key length 64 (HMAC-SHA256) and key length 128 (HMAC-SHA512).~~

Tree-SHA512: 48ff9ab79d41aab97b5b8f6496cc08a39955a07eb424f74ada6440d3b168b6204d3527fa677e175c47e40142f9d62c7456ae162e5a2f5b557e90fb353beef1d0
src/test/crypto_tests.cpp