Expand description
Primitive cryptographic operations used across various age components.
Functionsยง
- aead_
decrypt decrypt[key](ciphertext)- decrypts a message of an expected fixed size.- aead_
encrypt encrypt[key](plaintext)- encrypts a message with a one-time key.- bech32_
decode - Decodes a Bech32-encoded string, checks its HRP, and returns its contained data.
- bech32_
encode - Encodes data as a Bech32-encoded string with the given HRP.
- bech32_
encode_ to_ fmt - Encodes data to a format writer as a Bech32-encoded string with the given HRP.
- hkdf
HKDF[salt, label](key, 32)- hpke_
open HPKE.OpenBase(enc, sk_recip, info, aad = "", ciphertext)- hpke_
seal HPKE.SealBase(pk_recip, info, aad = "", plaintext)