TESTS: add SipHash tests with digestsize controls
Confirms #7143 Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7154)
This commit is contained in:
parent
d0123525cd
commit
2725232132
1 changed files with 32 additions and 0 deletions
|
@ -128,6 +128,38 @@ Key = 000102030405060708090A0B0C0D0E0F
|
|||
Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
|
||||
Output = 5150d1772f50834a503e069a973fbd7c
|
||||
|
||||
# SIPHASH - default values: 2,4 rounds, explicit 8-byte mac
|
||||
|
||||
MAC = SipHash
|
||||
Ctrl = digestsize:8
|
||||
Key = 000102030405060708090A0B0C0D0E0F
|
||||
Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
|
||||
Output = B96AB0B9D449A78A
|
||||
|
||||
# SIPHASH - default values: 2,4 rounds, explicit 16-byte mac
|
||||
|
||||
MAC = SipHash
|
||||
Ctrl = digestsize:16
|
||||
Key = 000102030405060708090A0B0C0D0E0F
|
||||
Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
|
||||
Output = 5150d1772f50834a503e069a973fbd7c
|
||||
|
||||
# SIPHASH - default values: 2,4 rounds, explicit 16-byte mac (set as 0)
|
||||
|
||||
MAC = SipHash
|
||||
Ctrl = digestsize:0
|
||||
Key = 000102030405060708090A0B0C0D0E0F
|
||||
Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
|
||||
Output = 5150d1772f50834a503e069a973fbd7c
|
||||
|
||||
# SIPHASH - default values: 2,4 rounds, explicit 13-byte mac (invalid size)
|
||||
|
||||
MAC = SipHash
|
||||
Ctrl = digestsize:13
|
||||
Key = 000102030405060708090A0B0C0D0E0F
|
||||
Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
|
||||
Output = 5150d1772f50834a503e069a973fbd7c
|
||||
|
||||
Title = HMAC tests (from RFC2104 and others)
|
||||
|
||||
MAC = HMAC
|
||||
|
|
Loading…
Reference in a new issue