Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz committed Jan 28, 2025
1 parent 6e88995 commit 9e1c922
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,8 @@ module AwsKmsMrkKeyring {
Materials.DecryptionMaterialsWithoutPlaintextDataKey(materials),
Types.AwsCryptographicMaterialProvidersException( message := "Keyring received decryption materials that already contain a plaintext data key."));

:- OkForDecrypt(awsKmsArn, awsKmsKey);

//= aws-encryption-sdk-specification/framework/aws-kms/aws-kms-mrk-keyring.md#ondecrypt
//# The set of encrypted data keys MUST first be filtered to match this
//# keyring’s configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ module AwsKmsRsaKeyring {
Types.AwsCryptographicMaterialProvidersException(
message := "Keyring received decryption materials that already contain a plaintext data key."));

:- AwsKmsUtils.OkForDecrypt(awsKmsArn, awsKmsKey);

:- Need(
input.materials.algorithmSuite.signature.None?,
Types.AwsCryptographicMaterialProvidersException(
Expand Down

0 comments on commit 9e1c922

Please sign in to comment.