Skip to content

Commit f1cefb8

Browse files
RaccoonLegrandin
authored andcommitted
Fix typo from SP 800-180 to SP 800-108
1 parent 942b630 commit f1cefb8

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Doc/src/protocol/dh.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ not password-based. For instance, some reasonable choices are:
140140

141141
* :ref:`hkdf`
142142
* :ref:`shake128` or :ref:`shake256`
143-
* :ref:`sp800-180-counter`
143+
* :ref:`sp800-108-counter`
144144
* :ref:`tuplehash128` or :ref:`tuplehash256`
145145

146146
KDFs are typically fed with multiple inputs,

Doc/src/protocol/kdf.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ Example, for deriving two AES256 keys::
125125

126126
.. autofunction:: Crypto.Protocol.KDF.HKDF
127127

128-
.. _sp800-180-counter:
128+
.. _sp800-108-counter:
129129

130-
SP 800-180 Counter Mode
130+
SP 800-108 Counter Mode
131131
++++++++++++++++++++++++
132132

133133
A KDF can be generically constructed with a pseudorandom function (PRF).

lib/Crypto/SelfTest/Protocol/test_KDF.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def load_hash_by_name(hash_name):
714714
return __import__("Crypto.Hash." + hash_name, globals(), locals(), ["new"])
715715

716716

717-
class SP800_180_Counter_Tests(unittest.TestCase):
717+
class SP800_108_Counter_Tests(unittest.TestCase):
718718

719719
def test_negative_zeroes(self):
720720
def prf(s, x):
@@ -781,7 +781,7 @@ def kdf_test(self, prf=prf, kin=tv.kin, label=tv.label,
781781
setattr(cls, "test_kdf_sp800_108_counter_%d" % idx, kdf_test)
782782

783783

784-
add_tests_sp800_108_counter(SP800_180_Counter_Tests)
784+
add_tests_sp800_108_counter(SP800_108_Counter_Tests)
785785

786786

787787
def get_tests(config={}):
@@ -799,7 +799,7 @@ def get_tests(config={}):
799799
tests += [TestVectorsHKDFWycheproof(wycheproof_warnings)]
800800
tests += list_test_cases(scrypt_Tests)
801801
tests += list_test_cases(bcrypt_Tests)
802-
tests += list_test_cases(SP800_180_Counter_Tests)
802+
tests += list_test_cases(SP800_108_Counter_Tests)
803803

804804
return tests
805805

test_vectors/pycryptodome_test_vectors/Protocol/KDF_SP800_108_COUNTER.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Test vectors for NIST SP-800 180, KDF in Counter mode
2+
# Test vectors for NIST SP-800 108, KDF in Counter mode
33
# Generated with Botan v2.19.1
44
#
55

test_vectors/src/sp800_108.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using namespace std;
88

99
/*
10-
* Generate test vectors for SP 800-180 using the Botan library.
10+
* Generate test vectors for SP 800-108 using the Botan library.
1111
*
1212
* Input key: 16 bytes
1313
* PRF: HMAC-256, HMAC-384, HMAC-512
@@ -74,7 +74,7 @@ int main(void)
7474
unsigned count = 0;
7575

7676
printf("#\n");
77-
printf("# Test vectors for NIST SP-800 180, KDF in Counter mode\n");
77+
printf("# Test vectors for NIST SP-800 108, KDF in Counter mode\n");
7878
printf("# Generated with Botan v%d.%d.%d\n", BOTAN_VERSION_MAJOR, BOTAN_VERSION_MINOR, BOTAN_VERSION_PATCH);
7979
printf("#\n");
8080

0 commit comments

Comments
 (0)