Skip to main content

Module crypto

Module crypto 

Source
Expand description

Symmetric-crypto primitives for Python: HMAC, PBKDF2, AES-CBC, 3DES-CBC, PKCS#7 padding helpers, and the Fernet authenticated-encryption scheme.

All operations are delegated to synta-certificate’s backend traits so that no direct openssl::* imports are needed here.

Structs§

PyFernet
Fernet symmetric authenticated encryption.
PyHmacDigest
Incremental HMAC computation.

Functions§

aes_cbc_decrypt
Decrypt data using AES-CBC.
aes_cbc_encrypt
Encrypt data using AES-CBC.
aes_gcm_decrypt
Decrypt and verify data using AES-GCM.
aes_gcm_encrypt
Encrypt data using AES-GCM (authenticated encryption with associated data).
des3_cbc_decrypt
Decrypt data using 3DES-EDE-CBC.
des3_cbc_encrypt
Encrypt data using 3DES-EDE-CBC.
hkdf_expand_py
HKDF-Expand (RFC 5869 §2.3).
hkdf_extract_py
HKDF-Extract (RFC 5869 §2.2).
hmac_digest
Compute an HMAC digest and return the raw MAC bytes.
hmac_verify
Verify an HMAC digest in constant time.
pbkdf2_hmac
Derive a key using PBKDF2-HMAC.
pkcs7_pad
Apply PKCS#7 padding to data.
pkcs7_unpad
Remove PKCS#7 padding from data.
register_crypto_module
Register the synta.crypto submodule.