awslabs / aws-encryption-sdk-specification

AWS Encryption SDK Specification
Other
30 stars 27 forks source link

provide public API for unpacking a header without decrypting a message #236

Open farleyb-amazon opened 2 years ago

farleyb-amazon commented 2 years ago

We have had requests from customers to be able to unpack the header without attempting to decrypt the message, in order to make a decision about whether or not decryption should be attempted or how that decryption should be configured.

Related:

jalaziz commented 2 years ago

Just ran into a need for this myself.

seebees commented 2 years ago

This does not yet exist for every runtime, but you can use the ESDK-JS serialize package to do this

https://github.com/aws/aws-encryption-sdk-javascript/tree/master/modules/serialize https://www.npmjs.com/package/@aws-crypto/serialize