dynamodb_encryption_sdk.internal.crypto.jce_bridge.encryption
Cipher resource for JCE bridge.
Warning
No guarantee is provided on the modules and APIs within this namespace staying consistent. Directly reference at your own risk.
Classes
|
Defines the encryption cipher, mode, and padding type to use for encryption. |
- class dynamodb_encryption_sdk.internal.crypto.jce_bridge.encryption.JavaCipher(cipher: dynamodb_encryption_sdk.internal.crypto.jce_bridge.primitives.JavaEncryptionAlgorithm, mode: dynamodb_encryption_sdk.internal.crypto.jce_bridge.primitives.JavaMode, padding: dynamodb_encryption_sdk.internal.crypto.jce_bridge.primitives.JavaPadding)[source]
Bases:
object
Defines the encryption cipher, mode, and padding type to use for encryption.
https://docs.oracle.com/javase/8/docs/api/javax/crypto/Cipher.html
- Parameters
cipher (JavaEncryptionAlgorithm) – Encryption algorithm to use
mode (JavaMode) – Encryption mode to use
padding (JavaPadding) – Encryption padding to use
- property transformation
Returns the Java transformation describing this JavaCipher. https://docs.oracle.com/javase/8/docs/api/javax/crypto/Cipher.html https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#Cipher
- Returns
Formatted transformation
- Return type
- classmethod from_transformation(cipher_transformation)[source]
Generates an JavaCipher object from the Java transformation. https://docs.oracle.com/javase/8/docs/api/javax/crypto/Cipher.html https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#Cipher
- Parameters
cipher_transformation (str) – Formatted transformation
- Returns
JavaCipher instance
- Return type