Expand description
Low level Aranya cryptography.
§Warning
The cryptography in this crate is low-level and can very
easily be misused. Unless you explicitly know what you’re
doing, use aranya-crypto instead.
Re-exports§
pub use buggy;pub use generic_array;pub use subtle;pub use typenum;
Modules§
- aead
- Authenticated Encryption with Additional Associated Data per RFC 5116.
- asn1
- ASN.1 utility routines.
- block
- Operations on blocks.
- csprng
- Cryptographically Secure Random Number Generators.
- default
- Default implementations.
- ec
- Elliptic curve utilities.
- ed25519
- Ed25519 key generation, signatures, and verification using ed25519-dalek.
- hash
- Cryptographic hash functions.
- hex
- Constant time hexadecimal encoding and decoding.
- hkdf
- HKDF per RFC 5869.
- hmac
- HMAC per FIPS PUB 198-1
- hpke
- Hybrid Public Key Encryption per RFC 9180.
- import
- Importing and exporting data.
- kdf
- Key Derivation Functions.
- kem
- Key Encapsulation Mechanisms.
- keys
- Basic keys and key material.
- mac
- Message Authentication Codes.
- oid
- ISO/IEC OIDs.
- rust
- RustCrypto cryptography.
- signer
- Digital Signatures.
- test_
util test_util - Utilities for testing cryptography implementations.
- zeroize
- Securely zero memory.
Macros§
- assert_
ct_ eq test_util - Like
assert_eq!, but forChoice. - assert_
ct_ ne test_util - Like
assert_ne!, but forChoice. - dhkem_
impl - Implement
Kemfor anEcdh. - extend_
oid - Extends a constant
Oidat compile time. - for_
each_ aead_ test test_util - Invokes
callbackfor each AEAD test. - for_
each_ hash_ test test_util - Invokes
callbackfor each hash test. - for_
each_ hpke_ test test_util - Invokes
callbackfor each HPKE test. - for_
each_ kdf_ test test_util - Invokes
callbackfor each KDF test. - for_
each_ mac_ test test_util - Invokes
callbackfor each MAC test. - for_
each_ signer_ test test_util - Invokes
callbackfor each signer test. - hkdf_
impl - Implements
Hkdf. - hmac_
impl - Implements
Hmac. - hte_
aead committing-aead - Implements the Hash-then-Encrypt (HtE) transform to turn a CMT-1 AEAD into a CMT-4 AEAD.
- oid
- Creates a constant
Oidat compile time. - raw_key
- Creates a “raw” (i.e., a byte array) key.
- test_
aead test_util - Performs all of the tests in this module.
- test_
hash test_util - Performs all of the tests in this module.
- test_
hpke test_util - Performs all of the tests in this module.
- test_
kdf test_util - Performs all of the tests in this module.
- test_
mac test_util - Performs all of the tests in this module.
- test_
signer test_util - Performs all of the tests in this module.
- utc_
aead committing-aead - Implements the UNAE-Then-Commit (UtC) transform to turn a standard AEAD into a CMT-1 AEAD.