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

Class 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

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
 
divceil(divident, divisor)
Integer division with rounding up
source code
 
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
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, key)
(Constructor)

source code 

Set the authenticator key

Overrides: object.__init__