mirror of
https://gitlab.com/pulsechaincom/staking-deposit-cli.git
synced 2024-12-23 11:57:19 +00:00
Test key_info != b''
This commit is contained in:
parent
ba585f8b8e
commit
dbfbaccca9
@ -26,6 +26,18 @@ def test_hkdf_mod_r(test) -> None:
|
|||||||
assert bls.KeyGen(seed) == _HKDF_mod_r(IKM=seed)
|
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(
|
@pytest.mark.parametrize(
|
||||||
'test',
|
'test',
|
||||||
test_vectors
|
test_vectors
|
||||||
|
Loading…
Reference in New Issue
Block a user