SymmetricCrypto Class
Properties Methods Events Configuration Settings Errors
The SymmetricCrypto class supports encrypting and decrypting messages.
Syntax
class secureblackboxlite.SymmetricCrypto
Remarks
SymmetricCrypto allows you to encrypt and decrypt messages.
Property List
The following is the full list of the properties of the class with short descriptions. Click on the links for further details.
associated_data | Provides Associated Data for AEAD algorithms. |
block_size | The block size of the chosen symmetric cipher. |
encryption_algorithm | The encryption algorithm to use for encrypting the data. |
hash_algorithm | The hash algorithm to use during encryption. |
input_encoding | The encoding to apply to the input data. |
key_algorithm | The algorithm of the cryptographic key. |
key_bits | The length of the key in bits. |
key_exportable | Returns True if the key is exportable (can be serialized into an array of bytes), and False otherwise. |
key_handle | Allows to get or set a 'handle', a unique identifier of the underlying property object. |
key_id | Provides access to a storage-specific key identifier. |
key_iv | The initialization vector (IV) of a symmetric key. |
key_key | The byte array representation of the key. |
key_nonce | A nonce value associated with a key. |
key_private | Returns True if the object hosts a private key, and False otherwise. |
key_public | Returns True if the object hosts a public key, and False otherwise. |
key_subject | Returns the key subject. |
key_symmetric | Returns True if the object contains a symmetric key, and False otherwise. |
key_valid | Returns True if this key is valid. |
key_size | Returns the cryptographic key size in bytes. |
mac_algorithm | The (H)MAC algorithm to use during encryption. |
mode | Specifies the symmetric cipher mode of operation. |
nonce | Specifies the Nonce value to employ. |
output_encoding | The encoding to apply to the output data. |
padding | The padding type to apply to the encrypted data. |
payload_size | Specifies the payload size, in bytes. |
stream_cipher | Returns true if the selected algorithms works as a stream cipher. |
tag_size | Specifies the AEAD tag size, in bytes. |
Method List
The following is the full list of the methods of the class with short descriptions. Click on the links for further details.
config | Sets or retrieves a configuration setting. |
decrypt | Decrypts a buffer. |
decrypt_file | Decrypts a file. |
decrypt_final | Finalization of decryption by blocks. |
decrypt_init | Initializes a per-block decryption process. |
decrypt_update | Decrypts the next block of encrypted data. |
encrypt | Encrypts a buffer. |
encrypt_file | Encrypts a file. |
encrypt_final | Finalization of encryption by blocks. |
encrypt_init | Initializes a per-block encryption process. |
encrypt_update | Encrypts the next block of data. |
Event List
The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.
on_error | Reports errors during encryption or decryption. |
on_notification | This event notifies the application about an underlying control flow event. |
on_progress | Reports the data encryption/decryption progress. |
Configuration Settings
The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.
Compress | Specifies whether the JSON output should be compressed. |
CTRLittleEndian | Specifies whether the little-endian representation should be employed in CTR mode. |
TempPath | Path for storing temporary files. |