Skip to content

The Caching CMM should never cache materials if the plaintext length is not know #80

@seebees

Description

@seebees

https://github.com/awslabs/aws-encryption-sdk-specification/blob/master/framework/caching-cmm.md#get-encryption-materials

Since there is a maximum amount of data that can be safely encrypted under a single data key, if we do not know the amount of data, we can not safely encrypt under a cached data key.

An Example:
If I only want to encrypt 5K under a single data key,
and I have a cached key that has 4.999K already used,
a 10B message will exhaust my margin.
Therefore if I do not know how large a given message is,
I can not safely encrypt it under this key.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Doc impactRequires a change to AWS documentation

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions