Support for XChaCha20 and XChaCha20-Poly1305

This commit is contained in:
Helder Eijs 2019-06-04 15:30:13 +02:00
parent 14528bd87a
commit c09ed08d76
9 changed files with 271 additions and 67 deletions

View file

@ -56,7 +56,7 @@ class Poly1305_MAC(object):
def __init__(self, r, s, data):
if len(r) != 16:
raise ValueError("Paramater r is not 16 bytes long")
raise ValueError("Parameter r is not 16 bytes long")
if len(s) != 16:
raise ValueError("Parameter s is not 16 bytes long")