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
Aes128Cbcimplementation. - aes128_
ccm_ impl - Register the global
Aes128Ccmimplementation. - aes128_
cmac_ impl - Register the global
Aes128Cmacimplementation. - aes128_
ctr_ impl - Register the global
Aes128Ctrimplementation. - aes128_
ecb_ impl - Register the global
Aes128Ecbimplementation. - aes128_
gcm_ impl - Register the global
Aes128Gcmimplementation. - aes256_
cbc_ impl - Register the global
Aes256Cbcimplementation. - aes256_
ccm_ impl - Register the global
Aes256Ccmimplementation. - aes256_
cmac_ impl - Register the global
Aes256Cmacimplementation. - aes256_
ctr_ impl - Register the global
Aes256Ctrimplementation. - aes256_
ecb_ impl - Register the global
Aes256Ecbimplementation. - aes256_
gcm_ impl - Register the global
Aes256Gcmimplementation. - chacha8_
impl - Register the global
ChaCha8implementation. - chacha8_
poly1305_ impl - Register the global
ChaCha8Poly1305implementation. - chacha12_
impl - Register the global
ChaCha12implementation. - chacha12_
poly1305_ impl - Register the global
ChaCha12Poly1305implementation. - chacha20_
impl - Register the global
ChaCha20implementation. - chacha20_
poly1305_ impl - Register the global
ChaCha20Poly1305implementation. - ed25519_
impl - Register the global
Ed25519implementation. - hmac_
sha1_ impl - Register the global
HmacSha1implementation. - hmac_
sha224_ impl - Register the global
HmacSha224implementation. - hmac_
sha256_ impl - Register the global
HmacSha256implementation. - hmac_
sha384_ impl - Register the global
HmacSha384implementation. - hmac_
sha512_ 224_ impl - Register the global
HmacSha512_224implementation. - hmac_
sha512_ 256_ impl - Register the global
HmacSha512_256implementation. - hmac_
sha512_ impl - Register the global
HmacSha512implementation. - md5_
impl - Register the global
Md5implementation. - p256_
arith_ impl - Register the global
P256Arithimplementation. - p256_
ecdh_ impl - Register the global
P256Ecdhimplementation. - p256_
ecdsa_ impl - Register the global
P256Ecdsaimplementation. - p384_
arith_ impl - Register the global
P384Arithimplementation. - p384_
ecdh_ impl - Register the global
P384Ecdhimplementation. - p384_
ecdsa_ impl - Register the global
P384Ecdsaimplementation. - rng_
impl - Register the global
Rngimplementation. - sha1_
impl - Register the global
Sha1implementation. - sha224_
impl - Register the global
Sha224implementation. - sha256_
impl - Register the global
Sha256implementation. - sha384_
impl - Register the global
Sha384implementation. - sha512_
224_ impl - Register the global
Sha512_224implementation. - sha512_
256_ impl - Register the global
Sha512_256implementation. - sha512_
impl - Register the global
Sha512implementation. - x25519_
impl - Register the global
X25519implementation.
Structs§
- Aes128
- AES-128 block cipher.
- Aes256
- AES-256 block cipher.
- Aes128
CbcDecrypt - AES-128 CBC.
- Aes128
CbcEncrypt - AES-128 CBC.
- Aes128
Ccm - AES-128 CCM.
- Aes128
Cmac - AES-128 CMAC.
- Aes128
Ctr - AES-128 CTR.
- Aes128
Gcm - AES-128 GCM.
- Aes256
CbcDecrypt - AES-256 CBC.
- Aes256
CbcEncrypt - AES-256 CBC.
- Aes256
Ccm - AES-256 CCM.
- Aes256
Cmac - AES-256 CMAC.
- Aes256
Ctr - AES-256 CTR.
- Aes256
Gcm - AES-256 GCM.
- ChaCha8
- ChaCha8: ChaCha with 8 rounds.
- ChaCha8
Poly1305 - ChaCha8-Poly1305: ChaCha20-Poly1305 with the 8-round ChaCha8 in place of ChaCha20.
- ChaCha12
- ChaCha12: ChaCha with 12 rounds.
- ChaCha20
- ChaCha20 (RFC 8439).
- ChaCha12
Poly1305 - ChaCha12-Poly1305: ChaCha20-Poly1305 with the 12-round ChaCha12 in place of ChaCha20.
- ChaCha20
Poly1305 - ChaCha20-Poly1305 (RFC 8439).
- Hmac
Sha1 - HMAC-SHA-1.
- Hmac
Sha224 - HMAC-SHA-224.
- Hmac
Sha256 - HMAC-SHA-256.
- Hmac
Sha384 - HMAC-SHA-384.
- Hmac
Sha512 - HMAC-SHA-512.
- Hmac
Sha512_ 224 - HMAC-SHA-512/224.
- Hmac
Sha512_ 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
bufwith cryptographically secure random bytes.