Codebase list openssl / 2725232
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) Richard Levitte 5 years ago
1 changed file(s) with 32 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
127127 Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
128128 Output = 5150d1772f50834a503e069a973fbd7c
129129
130 # SIPHASH - default values: 2,4 rounds, explicit 8-byte mac
131
132 MAC = SipHash
133 Ctrl = digestsize:8
134 Key = 000102030405060708090A0B0C0D0E0F
135 Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
136 Output = B96AB0B9D449A78A
137
138 # SIPHASH - default values: 2,4 rounds, explicit 16-byte mac
139
140 MAC = SipHash
141 Ctrl = digestsize:16
142 Key = 000102030405060708090A0B0C0D0E0F
143 Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
144 Output = 5150d1772f50834a503e069a973fbd7c
145
146 # SIPHASH - default values: 2,4 rounds, explicit 16-byte mac (set as 0)
147
148 MAC = SipHash
149 Ctrl = digestsize:0
150 Key = 000102030405060708090A0B0C0D0E0F
151 Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
152 Output = 5150d1772f50834a503e069a973fbd7c
153
154 # SIPHASH - default values: 2,4 rounds, explicit 13-byte mac (invalid size)
155
156 MAC = SipHash
157 Ctrl = digestsize:13
158 Key = 000102030405060708090A0B0C0D0E0F
159 Input = 000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425262728292A2B2C2D2E2F303132333435363738393A3B3C3D3E
160 Output = 5150d1772f50834a503e069a973fbd7c
161
130162 Title = HMAC tests (from RFC2104 and others)
131163
132164 MAC = HMAC