|
@@ -98,15 +98,15 @@ class CryptoTestCase(BaseTestCase):
|
|
|
header = b'\x23'
|
|
|
tests = [
|
|
|
# (ciphersuite class, exp_mac, exp_cdata)
|
|
|
- (CHACHA20_POLY1305,
|
|
|
- b'fd08594796e0706cde1e8b461e3e0555',
|
|
|
- b'a093e4b0387526f085d3c40cca84a35230a5c0dd766453b77ba38bcff775',)
|
|
|
]
|
|
|
if not is_libressl:
|
|
|
tests += [
|
|
|
(AES256_OCB,
|
|
|
b'b6909c23c9aaebd9abbe1ff42097652d',
|
|
|
b'877ce46d2f62dee54699cebc3ba41d9ab613f7c486778c1b3636664b1493', ),
|
|
|
+ (CHACHA20_POLY1305,
|
|
|
+ b'fd08594796e0706cde1e8b461e3e0555',
|
|
|
+ b'a093e4b0387526f085d3c40cca84a35230a5c0dd766453b77ba38bcff775', )
|
|
|
]
|
|
|
for cs_cls, exp_mac, exp_cdata in tests:
|
|
|
# print(repr(cs_cls))
|
|
@@ -142,15 +142,15 @@ class CryptoTestCase(BaseTestCase):
|
|
|
header = b'\x12\x34\x56'
|
|
|
tests = [
|
|
|
# (ciphersuite class, exp_mac, exp_cdata)
|
|
|
- (CHACHA20_POLY1305,
|
|
|
- b'b7e7c9a79f2404e14f9aad156bf091dd',
|
|
|
- b'a093e4b0387526f085d3c40cca84a35230a5c0dd766453b77ba38bcff775',)
|
|
|
]
|
|
|
if not is_libressl:
|
|
|
tests += [
|
|
|
(AES256_OCB,
|
|
|
b'f2748c412af1c7ead81863a18c2c1893',
|
|
|
b'877ce46d2f62dee54699cebc3ba41d9ab613f7c486778c1b3636664b1493', ),
|
|
|
+ (CHACHA20_POLY1305,
|
|
|
+ b'b7e7c9a79f2404e14f9aad156bf091dd',
|
|
|
+ b'a093e4b0387526f085d3c40cca84a35230a5c0dd766453b77ba38bcff775', )
|
|
|
]
|
|
|
for cs_cls, exp_mac, exp_cdata in tests:
|
|
|
# print(repr(cs_cls))
|