Ref: https://learn.cantrill.io/courses/2022818/lectures/45640673


Envelope Encryption - Key Concepts


Envelope Encryption - Encrypt/Decrypt Processes

Encryption Process

Untitled

  1. Customer generates KMS key, indicates it's for use with S3
  2. S3 wants to encrypt one cat picture, sends request to KMS to generate a DEK
  3. KMS uses KMS key (KEK) to generate a DEK, returns BOTH a plaintext version AND a ciphertext version (wrapped DEK) to S3
  4. S3 uses plaintext DEK to encrypt cat picture, then discards plaintext DEK
  5. S3 stores ciphertext cat picture together with its wrapped DEK
  6. Process repeated for all cat pictures