Skip to content

Commit a524025

Browse files
authored
docs: Fix minor spec bugs (#176)
1 parent d4a0424 commit a524025

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

DynamoDbEncryption/dafny/DynamoDbItemEncryptor/src/AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorOperations.dfy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ module AwsCryptographyDbEncryptionSdkDynamoDbItemEncryptorOperations refines Abs
497497
//= specification/dynamodb-encryption-client/decrypt-item.md#determining-plaintext-items
498498
//= type=implication
499499
//# An item MUST be determined to be plaintext if it does not contain
500-
//# attributes with the names "aws_dbe_header" and "aws_dbe_footer".
500+
//# attributes with the names "aws_dbe_head" and "aws_dbe_foot".
501501
predicate method IsPlaintextItem(ddbItem: ComAmazonawsDynamodbTypes.AttributeMap) {
502502
&& StructuredEncryptionUtil.HeaderField !in ddbItem.Keys
503503
&& StructuredEncryptionUtil.FooterField !in ddbItem.Keys

DynamoDbEncryption/dafny/StructuredEncryption/src/Header.dfy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ module StructuredEncryptionHeader {
6262
//# [DBE supported algorithm suite](../../submodules/MaterialProviders/aws-encryption-sdk-specification/framework/algorithm-suites.md#supported-algorithm-suites-enum).
6363
// | Value | Algorithm Suite ID | Algorithm Suite Enum |
6464
// |---|---|---|
65-
// | 0x01 | 0x67 0x01 | ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_SYMSIG_HMAC_SHA384 |
66-
// | 0x00 | 0x67 0x00 | ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_ECDSA_P384_SYMSIG_HMAC_SHA384 |
65+
// | 0x00 | 0x67 0x00 | ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_SYMSIG_HMAC_SHA384 |
66+
// | 0x01 | 0x67 0x01 | ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_ECDSA_P384_SYMSIG_HMAC_SHA384 |
6767
predicate method ValidFlavor(x : uint8) {
6868
x in [0, 1]
6969
}

specification/dynamodb-encryption-client/decrypt-item.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ although the DynamoDbEncryptor allows callers to configure custom names for thes
155155
### Determining Plaintext Items
156156

157157
An item MUST be determined to be plaintext if it does not contain
158-
attributes with the names "aws_dbe_header" and "aws_dbe_footer".
158+
attributes with the names "aws_dbe_head" and "aws_dbe_foot".
159159

160160
Note that this does not conflict with the [legacy item](#determining-legacy-items) definition,
161161
as there is no configuration state which needs to be able to distinguish

specification/structured-encryption/header.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ The algorithm suite indicated by the flavor MUST be a
5050

5151
| Value | Algorithm Suite ID | Algorithm Suite Enum |
5252
|---|---|---|
53-
| 0x01 | 0x67 0x01 | ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_SYMSIG_HMAC_SHA384 |
54-
| 0x00 | 0x67 0x00 | ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_ECDSA_P384_SYMSIG_HMAC_SHA384 |
53+
| 0x00 | 0x67 0x00 | ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_SYMSIG_HMAC_SHA384 |
54+
| 0x01 | 0x67 0x01 | ALG_AES_256_GCM_HKDF_SHA512_COMMIT_KEY_ECDSA_P384_SYMSIG_HMAC_SHA384 |
5555

5656
### Message ID
5757

0 commit comments

Comments
 (0)