aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorColin Metcalf <cmetcalf111@gmail.com>2018-12-08 17:25:18 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2018-12-08 20:25:18 -0500
commitbddcd52eadba275770bbc2070799314c1b5b179b (patch)
treeb2fa1fce77ded988432fcad76c3bccc4d93e549a /docs
parentfbbd54fe017717706ffe48b168ff0639e88f4b43 (diff)
downloadcryptography-bddcd52eadba275770bbc2070799314c1b5b179b.tar.gz
cryptography-bddcd52eadba275770bbc2070799314c1b5b179b.tar.bz2
cryptography-bddcd52eadba275770bbc2070799314c1b5b179b.zip
Updated BLAKE2s and BLAKE2b error messages from unsupportedalgorithm … (#4519)
* Updated BLAKE2s and BLAKE2b error messages from unsupportedalgorithm exception to an explicit error. The error is now "ValueError: Digest size must be 32" (or 64 for BLAKE2b) This was done to give a more contextual error message and should be in place until OpenSSL supports variable lengths. * Updated if statements in hashes.py so that they no longer wrap to separate line. Updated test_hashes.py to unclude a test for non 32 or 64 digest_sizes that fall between 0-32/64. * Removed the new tests in test_hashes.py as the old ones were satisfactory. This also solved misaligned tabs and spaces. * Removed dead code in hashes.py that could no longer be reached after error message updates. * pep8 fix * remove superfluous parens
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions