Skip to main content

Module cryptography

Module cryptography 

Source
Expand description

Cryptographic related functionalitys, enums structs and modules

Modules§

hmac_sign
The hmac module provides functionality for generating, managing, and verifying digital hmacs, supporting various algorithms including post-quantum secure schemes.

Structs§

CipherAES
Represents the AES cipher for encryption and decryption processes. It holds cryptographic information and a shared secret for operations.
CipherAesCtr
CipherAesGcmSiv
CipherAesXts
CipherChaCha
Represents the XChaCha20 cipher for encryption and decryption processes. It includes cryptographic information, a nonce for the operation, and a shared secret.
CipherChaChaPoly
Represents the XChaCha20Poly1305 cipher for encryption and decryption processes. It includes cryptographic information, a nonce for the operation, and a shared secret.
CryptographicInformation
Contains information necessary for performing cryptographic operations, including the content to be encrypted or decrypted, a passphrase, metadata defining the operation context, and a flag indicating whether the content should be saved securely.
CryptographicMetadata
Holds metadata for cryptographic operations, specifying the process, encryption type, key encapsulation mechanism, and content type.

Enums§

ContentType
Enumerates the types of content that can be encrypted or decrypted, such as messages or files.
CryptographicMechanism
Enumerates the cryptographic mechanisms supported, such as AES and XChaCha20.
KeyEncapMechanism
Enumerates the key encapsulation mechanisms supported, such as Kyber1024.
Process
Enumerates the cryptographic processes, such as encryption and decryption.