Expand description
Crate-level KMS encrypt/decrypt API for cross-service callers.
Real AES-256-GCM with a fresh 12-byte IV per call and an authenticated tag. Envelope format:
| key_arn_len:u16_be | key_arn_utf8 | iv:12 | ciphertext_with_tag |The key ARN is embedded so decryption callers can pass opaque ciphertext back without tracking the key separately — matching how AWS’s KMS blob format self-describes.
Enums§
Functions§
- decrypt_
blob - Decrypt a blob produced by
encrypt_blob. - encrypt_
blob - Encrypt
plaintextunder the AES-256 key derived fromkey_ref(key id or ARN). Returns an envelope thatdecrypt_blobaccepts without needing the key-ref passed again.