Crate spideroak_crypto

Crate spideroak_crypto 

Source
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_utiltest_util
Utilities for testing cryptography implementations.
zeroize
Securely zero memory.

Macros§

assert_ct_eqtest_util
Like assert_eq!, but for Choice.
assert_ct_netest_util
Like assert_ne!, but for Choice.
dhkem_impl
Implement Kem for an Ecdh.
extend_oid
Extends a constant Oid at compile time.
for_each_aead_testtest_util
Invokes callback for each AEAD test.
for_each_hash_testtest_util
Invokes callback for each hash test.
for_each_hpke_testtest_util
Invokes callback for each HPKE test.
for_each_kdf_testtest_util
Invokes callback for each KDF test.
for_each_mac_testtest_util
Invokes callback for each MAC test.
for_each_signer_testtest_util
Invokes callback for each signer test.
hkdf_impl
Implements Hkdf.
hmac_impl
Implements Hmac.
hte_aeadcommitting-aead
Implements the Hash-then-Encrypt (HtE) transform to turn a CMT-1 AEAD into a CMT-4 AEAD.
oid
Creates a constant Oid at compile time.
raw_key
Creates a “raw” (i.e., a byte array) key.
test_aeadtest_util
Performs all of the tests in this module.
test_hashtest_util
Performs all of the tests in this module.
test_hpketest_util
Performs all of the tests in this module.
test_kdftest_util
Performs all of the tests in this module.
test_mactest_util
Performs all of the tests in this module.
test_signertest_util
Performs all of the tests in this module.
utc_aeadcommitting-aead
Implements the UNAE-Then-Commit (UtC) transform to turn a standard AEAD into a CMT-1 AEAD.