tlslite.utils.poly1305 module
Implementation of Poly1305 authenticator for RFC 7539
- class tlslite.utils.poly1305.Poly1305(key)
Bases:
object
Poly1305 authenticator
- P = 1361129467683753853853498429727072845819
- __init__(key)
Set the authenticator key
- create_tag(data)
Calculate authentication tag for data
- static le_bytes_to_num(data)
Convert a number from little endian byte format
- static num_to_16_le_bytes(num)
Convert number to 16 bytes in little endian format