aes
index
/tmp/makerelease-pwman-python.ZTvWhNke/pwman-python-2.14/libpwman/aes.py

# AES wrapper
# Copyright (c) 2023-2026 Michael Büsch <m@bues.ch>
# Licensed under the GNU/GPL version 2 or later.

 
Classes
       
builtins.object
AES

 
class AES(builtins.object)
    Abstraction layer for the AES implementation.
 
  Methods defined here:
__init__(self)
Initialize self.  See help(type(self)) for accurate signature.
decryptCBC(self, key, iv, data, legacyPadding=False)
Decrypt data with AES-256-CBC.
decryptGCM(self, key, nonce, data, tag, assocData)
Decrypt data with AES-256-GCM.
encryptGCM(self, key, nonce, data, assocData)
Encrypt data with AES-256-GCM.
Returns a tuple (ciphertext, authTag).

Class methods defined here:
get()
Get the AES singleton.
quickSelfTest()

Data descriptors defined here:
__dict__
dictionary for instance variables
__weakref__
list of weak references to the object

Data and other attributes defined here:
BLOCK_SIZE = 16
GCM_NONCE_SIZE = 32
GCM_TAG_SIZE = 16

 
Data
        __all__ = ['AES']