embassy-crypto

Crates

git

Versions

default

Flavors

Skip to main content

Crate embassy_crypto

Crate embassy_crypto 

Source
Expand description

§embassy-crypto

TODO: write readme

Re-exports§

pub use driver::Error;

Modules§

driver
Driver interface
ed25519
Ed25519 (EdDSA over edwards25519, RFC 8032).
p256
NIST P-256 (secp256r1, prime256v1).
p384
NIST P-384 (secp384r1).
x25519
X25519 (Curve25519 ECDH, RFC 7748).

Macros§

aes128_cbc_impl
Register the global Aes128Cbc implementation.
aes128_ccm_impl
Register the global Aes128Ccm implementation.
aes128_cmac_impl
Register the global Aes128Cmac implementation.
aes128_ctr_impl
Register the global Aes128Ctr implementation.
aes128_ecb_impl
Register the global Aes128Ecb implementation.
aes128_gcm_impl
Register the global Aes128Gcm implementation.
aes256_cbc_impl
Register the global Aes256Cbc implementation.
aes256_ccm_impl
Register the global Aes256Ccm implementation.
aes256_cmac_impl
Register the global Aes256Cmac implementation.
aes256_ctr_impl
Register the global Aes256Ctr implementation.
aes256_ecb_impl
Register the global Aes256Ecb implementation.
aes256_gcm_impl
Register the global Aes256Gcm implementation.
chacha8_impl
Register the global ChaCha8 implementation.
chacha8_poly1305_impl
Register the global ChaCha8Poly1305 implementation.
chacha12_impl
Register the global ChaCha12 implementation.
chacha12_poly1305_impl
Register the global ChaCha12Poly1305 implementation.
chacha20_impl
Register the global ChaCha20 implementation.
chacha20_poly1305_impl
Register the global ChaCha20Poly1305 implementation.
ed25519_impl
Register the global Ed25519 implementation.
hmac_sha1_impl
Register the global HmacSha1 implementation.
hmac_sha224_impl
Register the global HmacSha224 implementation.
hmac_sha256_impl
Register the global HmacSha256 implementation.
hmac_sha384_impl
Register the global HmacSha384 implementation.
hmac_sha512_224_impl
Register the global HmacSha512_224 implementation.
hmac_sha512_256_impl
Register the global HmacSha512_256 implementation.
hmac_sha512_impl
Register the global HmacSha512 implementation.
md5_impl
Register the global Md5 implementation.
p256_arith_impl
Register the global P256Arith implementation.
p256_ecdh_impl
Register the global P256Ecdh implementation.
p256_ecdsa_impl
Register the global P256Ecdsa implementation.
p384_arith_impl
Register the global P384Arith implementation.
p384_ecdh_impl
Register the global P384Ecdh implementation.
p384_ecdsa_impl
Register the global P384Ecdsa implementation.
rng_impl
Register the global Rng implementation.
sha1_impl
Register the global Sha1 implementation.
sha224_impl
Register the global Sha224 implementation.
sha256_impl
Register the global Sha256 implementation.
sha384_impl
Register the global Sha384 implementation.
sha512_224_impl
Register the global Sha512_224 implementation.
sha512_256_impl
Register the global Sha512_256 implementation.
sha512_impl
Register the global Sha512 implementation.
x25519_impl
Register the global X25519 implementation.

Structs§

Aes128
AES-128 block cipher.
Aes256
AES-256 block cipher.
Aes128CbcDecrypt
AES-128 CBC.
Aes128CbcEncrypt
AES-128 CBC.
Aes128Ccm
AES-128 CCM.
Aes128Cmac
AES-128 CMAC.
Aes128Ctr
AES-128 CTR.
Aes128Gcm
AES-128 GCM.
Aes256CbcDecrypt
AES-256 CBC.
Aes256CbcEncrypt
AES-256 CBC.
Aes256Ccm
AES-256 CCM.
Aes256Cmac
AES-256 CMAC.
Aes256Ctr
AES-256 CTR.
Aes256Gcm
AES-256 GCM.
ChaCha8
ChaCha8: ChaCha with 8 rounds.
ChaCha8Poly1305
ChaCha8-Poly1305: ChaCha20-Poly1305 with the 8-round ChaCha8 in place of ChaCha20.
ChaCha12
ChaCha12: ChaCha with 12 rounds.
ChaCha20
ChaCha20 (RFC 8439).
ChaCha12Poly1305
ChaCha12-Poly1305: ChaCha20-Poly1305 with the 12-round ChaCha12 in place of ChaCha20.
ChaCha20Poly1305
ChaCha20-Poly1305 (RFC 8439).
HmacSha1
HMAC-SHA-1.
HmacSha224
HMAC-SHA-224.
HmacSha256
HMAC-SHA-256.
HmacSha384
HMAC-SHA-384.
HmacSha512
HMAC-SHA-512.
HmacSha512_224
HMAC-SHA-512/224.
HmacSha512_256
HMAC-SHA-512/256.
Md5
MD5.
Sha1
SHA-1.
Sha224
SHA-224.
Sha256
SHA-256.
Sha384
SHA-384.
Sha512
SHA-512.
Sha512_224
SHA-512/224.
Sha512_256
SHA-512/256.

Functions§

rng_fill_bytes
Fill buf with cryptographically secure random bytes.