diff --git a/tests/test_key_handling/test_key_derivation/test_tree.py b/tests/test_key_handling/test_key_derivation/test_tree.py index d0bb5d3..8bd6491 100644 --- a/tests/test_key_handling/test_key_derivation/test_tree.py +++ b/tests/test_key_handling/test_key_derivation/test_tree.py @@ -26,6 +26,18 @@ def test_hkdf_mod_r(test) -> None: assert bls.KeyGen(seed) == _HKDF_mod_r(IKM=seed) +@pytest.mark.parametrize( + 'seed', + [b'\x00'*32] +) +@pytest.mark.parametrize( + 'key_info', + [b'\x00'*32, b'\x01\x23\x45\x67\x89\xAB\xBC\xDE\xFF', b'\xFF'*16] +) +def test_hkdf_mod_r_key_info(seed: bytes, key_info:bytes) -> None: + assert bls.KeyGen(seed, key_info) == _HKDF_mod_r(IKM=seed, key_info=key_info) + + @pytest.mark.parametrize( 'test', test_vectors