mirror of
https://github.com/Legrandin/pycryptodome.git
synced 2025-10-19 16:03:45 +00:00
Fix typo from SP 800-180 to SP 800-108
This commit is contained in:
parent
942b630c18
commit
f1cefb8fd0
5 changed files with 9 additions and 9 deletions
|
@ -140,7 +140,7 @@ not password-based. For instance, some reasonable choices are:
|
||||||
|
|
||||||
* :ref:`hkdf`
|
* :ref:`hkdf`
|
||||||
* :ref:`shake128` or :ref:`shake256`
|
* :ref:`shake128` or :ref:`shake256`
|
||||||
* :ref:`sp800-180-counter`
|
* :ref:`sp800-108-counter`
|
||||||
* :ref:`tuplehash128` or :ref:`tuplehash256`
|
* :ref:`tuplehash128` or :ref:`tuplehash256`
|
||||||
|
|
||||||
KDFs are typically fed with multiple inputs,
|
KDFs are typically fed with multiple inputs,
|
||||||
|
|
|
@ -125,9 +125,9 @@ Example, for deriving two AES256 keys::
|
||||||
|
|
||||||
.. autofunction:: Crypto.Protocol.KDF.HKDF
|
.. autofunction:: Crypto.Protocol.KDF.HKDF
|
||||||
|
|
||||||
.. _sp800-180-counter:
|
.. _sp800-108-counter:
|
||||||
|
|
||||||
SP 800-180 Counter Mode
|
SP 800-108 Counter Mode
|
||||||
++++++++++++++++++++++++
|
++++++++++++++++++++++++
|
||||||
|
|
||||||
A KDF can be generically constructed with a pseudorandom function (PRF).
|
A KDF can be generically constructed with a pseudorandom function (PRF).
|
||||||
|
|
|
@ -714,7 +714,7 @@ def load_hash_by_name(hash_name):
|
||||||
return __import__("Crypto.Hash." + hash_name, globals(), locals(), ["new"])
|
return __import__("Crypto.Hash." + hash_name, globals(), locals(), ["new"])
|
||||||
|
|
||||||
|
|
||||||
class SP800_180_Counter_Tests(unittest.TestCase):
|
class SP800_108_Counter_Tests(unittest.TestCase):
|
||||||
|
|
||||||
def test_negative_zeroes(self):
|
def test_negative_zeroes(self):
|
||||||
def prf(s, x):
|
def prf(s, x):
|
||||||
|
@ -781,7 +781,7 @@ def add_tests_sp800_108_counter(cls):
|
||||||
setattr(cls, "test_kdf_sp800_108_counter_%d" % idx, kdf_test)
|
setattr(cls, "test_kdf_sp800_108_counter_%d" % idx, kdf_test)
|
||||||
|
|
||||||
|
|
||||||
add_tests_sp800_108_counter(SP800_180_Counter_Tests)
|
add_tests_sp800_108_counter(SP800_108_Counter_Tests)
|
||||||
|
|
||||||
|
|
||||||
def get_tests(config={}):
|
def get_tests(config={}):
|
||||||
|
@ -799,7 +799,7 @@ def get_tests(config={}):
|
||||||
tests += [TestVectorsHKDFWycheproof(wycheproof_warnings)]
|
tests += [TestVectorsHKDFWycheproof(wycheproof_warnings)]
|
||||||
tests += list_test_cases(scrypt_Tests)
|
tests += list_test_cases(scrypt_Tests)
|
||||||
tests += list_test_cases(bcrypt_Tests)
|
tests += list_test_cases(bcrypt_Tests)
|
||||||
tests += list_test_cases(SP800_180_Counter_Tests)
|
tests += list_test_cases(SP800_108_Counter_Tests)
|
||||||
|
|
||||||
return tests
|
return tests
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Test vectors for NIST SP-800 180, KDF in Counter mode
|
# Test vectors for NIST SP-800 108, KDF in Counter mode
|
||||||
# Generated with Botan v2.19.1
|
# Generated with Botan v2.19.1
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Generate test vectors for SP 800-180 using the Botan library.
|
* Generate test vectors for SP 800-108 using the Botan library.
|
||||||
*
|
*
|
||||||
* Input key: 16 bytes
|
* Input key: 16 bytes
|
||||||
* PRF: HMAC-256, HMAC-384, HMAC-512
|
* PRF: HMAC-256, HMAC-384, HMAC-512
|
||||||
|
@ -74,7 +74,7 @@ int main(void)
|
||||||
unsigned count = 0;
|
unsigned count = 0;
|
||||||
|
|
||||||
printf("#\n");
|
printf("#\n");
|
||||||
printf("# Test vectors for NIST SP-800 180, KDF in Counter mode\n");
|
printf("# Test vectors for NIST SP-800 108, KDF in Counter mode\n");
|
||||||
printf("# Generated with Botan v%d.%d.%d\n", BOTAN_VERSION_MAJOR, BOTAN_VERSION_MINOR, BOTAN_VERSION_PATCH);
|
printf("# Generated with Botan v%d.%d.%d\n", BOTAN_VERSION_MAJOR, BOTAN_VERSION_MINOR, BOTAN_VERSION_PATCH);
|
||||||
printf("#\n");
|
printf("#\n");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue