Package tlslite :: Package utils :: Module python_chacha20_poly1305
[hide private]
[frames] | no frames]

Source Code for Module tlslite.utils.python_chacha20_poly1305

 1  # Author: Hubert Kario (c) 2015 
 2  # 
 3  # See the LICENSE file for legal information regarding use of this file. 
 4   
 5  """Pure-Python ChaCha20/Poly1305 implementation.""" 
 6   
 7  from .chacha20_poly1305 import CHACHA20_POLY1305 
 8   
9 -def new(key):
10 """Return an AEAD cipher implementation""" 11 return CHACHA20_POLY1305(key, "python")
12