Client SDK Version 1.8.1
Ionic Security client SDK for Python users
Public Member Functions | List of all members
ionicsdk.cryptocipher.AesGcmCipher Class Reference

Cipher class that implements AES GCM. More...

Inheritance diagram for ionicsdk.cryptocipher.AesGcmCipher:
ionicsdk.cryptocipher.CryptoCipherBase

Public Member Functions

def __init__ (self, keydata, authdata)
 Constructs a cipher with key and auth data. More...
 
- Public Member Functions inherited from ionicsdk.cryptocipher.CryptoCipherBase
def __init__ (self)
 Constructs a cipher with default values.
 
def encryptstr (self, plaintext)
 Encrypts a Unicode or UTF-8 encoded string in memory. More...
 
def encryptbytes (self, plaintextbytes)
 Encrypts a byte array in memory. More...
 
def decryptstr (self, ciphertext)
 Decrypts ciphertext in memory to a unicode string. More...
 
def decryptbytes (self, ciphertext)
 Decrypts ciphertext in memory to a byte array. More...
 

Detailed Description

Cipher class that implements AES GCM.

The authentication tag is 16 bytes and will be appended to the end of the ciphertext.

Constructor & Destructor Documentation

◆ __init__()

def ionicsdk.cryptocipher.AesGcmCipher.__init__ (   self,
  keydata,
  authdata 
)

Constructs a cipher with key and auth data.

Parameters
authdata(bytes): The AES GCM Additional Authenticated Data (AAD).
keydata(bytes): The key to use for encryption or decryption.

The documentation for this class was generated from the following file: