Package tlslite :: Package utils :: Module poly1305 :: Class Poly1305
[hide private]
[frames] | no frames]

type Poly1305

source code


Poly1305 authenticator

Instance Methods [hide private]
 
__init__(self, key)
Set the authenticator key
source code
 
create_tag(self, data)
Calculate authentication tag for data
source code
Static Methods [hide private]
 
le_bytes_to_num(data)
Convert a number from little endian byte format
source code
 
num_to_16_le_bytes(num)
Convert number to 16 bytes in little endian format
source code
Class Variables [hide private]
  P = 1361129467683753853853498429727072845819
Method Details [hide private]

__init__(self, key)
(Constructor)

source code 

Set the authenticator key

Overrides: object.__init__