Skip to content

Commit b84f7a1

Browse files
authored
remove hkdf extract subtests (#13005)
they have no real value and force us to expose internal impl details we can hide in an upcoming rust version
1 parent 0484950 commit b84f7a1

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

tests/hazmat/primitives/utils.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -344,20 +344,6 @@ def hkdf_derive_test(backend, algorithm, params):
344344
assert okm == binascii.unhexlify(params["okm"])
345345

346346

347-
def hkdf_extract_test(backend, algorithm, params):
348-
hkdf = HKDF(
349-
algorithm,
350-
int(params["l"]),
351-
salt=binascii.unhexlify(params["salt"]) or None,
352-
info=binascii.unhexlify(params["info"]) or None,
353-
backend=backend,
354-
)
355-
356-
prk = hkdf._extract(binascii.unhexlify(params["ikm"]))
357-
358-
assert prk == binascii.unhexlify(params["prk"])
359-
360-
361347
def hkdf_expand_test(backend, algorithm, params):
362348
hkdf = HKDFExpand(
363349
algorithm,
@@ -374,8 +360,6 @@ def hkdf_expand_test(backend, algorithm, params):
374360
def generate_hkdf_test(param_loader, path, file_names, algorithm):
375361
def test_hkdf(self, backend, subtests):
376362
for params in _load_all_params(path, file_names, param_loader):
377-
with subtests.test():
378-
hkdf_extract_test(backend, algorithm, params)
379363
with subtests.test():
380364
hkdf_expand_test(backend, algorithm, params)
381365
with subtests.test():

0 commit comments

Comments
 (0)