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

Source Code for Module tlslite.utils.python_aesgcm

 1  # Author: Google 
 2  # See the LICENSE file for legal information regarding use of this file. 
 3   
 4  """Pure-Python AES-GCM implementation.""" 
 5   
 6  from .aesgcm import AESGCM 
 7  from .rijndael import rijndael 
 8   
9 -def new(key):
10 return AESGCM(key, "python", rijndael(key, 16).encrypt)
11