Skip to content

Commit f3abaf8

Browse files
committed
chore: add MemoryMath to Index.dfy
1 parent 8d2c2b5 commit f3abaf8

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

AwsCryptographicMaterialProviders/dafny/AwsCryptographicMaterialProviders/src/Keyrings/RawAESKeyring.dfy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ module RawAESKeyring {
309309
&& AESDecryptRequest.iv == GetIvFromProvInfo(edk.keyProviderInfo)
310310
)
311311
&& AESDecryptRequest.aad == CanonicalEncryptionContext.EncryptionContextToAAD(input.materials.encryptionContext).value
312-
// Can not prove this at this timbe because there may be wrapping involved.
312+
// Can not prove this at this time because there may be wrapping involved.
313313
// && output.value.materials.plaintextDataKey.value
314314
// == Seq.Last(cryptoPrimitives.History.AESDecrypt).output.value;
315315

@@ -386,7 +386,7 @@ module RawAESKeyring {
386386
//# If no decryption succeeds, the keyring MUST fail and MUST NOT modify
387387
//# the [decryption materials](structures.md#decryption-materials).
388388
return Failure(Types.CollectionOfErrors(list := errors,
389-
message := "Raw AES Keyring was unable to decrypt any encrypted data key. The list of encountered Exceptions is avaible via `list`."));
389+
message := "Raw AES Keyring was unable to decrypt any encrypted data key. The list of encountered Exceptions is available via `list`."));
390390
}
391391

392392
function method SerializeProviderInfo(iv: seq<uint8>): seq<uint8>
@@ -453,7 +453,7 @@ module RawAESKeyring {
453453
ensures DeserializeEDKCiphertext(SerializeEDKCiphertext(encOutput), |encOutput.authTag|) == encOutput
454454
{}
455455

456-
lemma EDKDeserializeSerialze(ciphertext: seq<uint8>, tagLen: nat)
456+
lemma EDKDeserializeSerialize(ciphertext: seq<uint8>, tagLen: nat)
457457
requires tagLen <= |ciphertext|
458458
ensures SerializeEDKCiphertext(DeserializeEDKCiphertext(ciphertext, tagLen)) == ciphertext
459459
{}

AwsCryptographicMaterialProviders/dafny/AwsCryptographyKeyStore/test/TestConfig.dfy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ module TestConfig {
118118
// create and use us-east-2 Keystore and Branch Key
119119
// Assert call to get Branch Key ID succeeds.
120120
// As long as tests are run NOT in us-east-2,
121-
// this prooves that the DDB Client used the region
121+
// this proves that the DDB Client used the region
122122
// from the KMS Key ARN to initialize the DDB Client
123123

124124
var keyStoreConfig := Types.KeyStoreConfig(
@@ -145,7 +145,7 @@ module TestConfig {
145145
// create and use us-east-2 Keystore and Branch Key
146146
// Assert call to get Branch Key ID succeeds.
147147
// As long as tests are run NOT in us-east-2,
148-
// this prooves that the DDB Client used the region
148+
// this proves that the DDB Client used the region
149149
// from the KMS Key ARN to initialize the DDB Client
150150
keyStoreConfig := Types.KeyStoreConfig(
151151
id := None,
@@ -178,7 +178,7 @@ module TestConfig {
178178
// create and use us-east-2 Keystore and Branch Key
179179
// Assert call to get Branch Key ID FAILS.
180180
// As long as tests are run NOT in us-east-2,
181-
// this prooves that the DDB Client used the region
181+
// this proves that the DDB Client used the region
182182
// from the KMS Key ARN to initialize the DDB Client
183183
keyStoreConfig := Types.KeyStoreConfig(
184184
id := None,

StandardLibrary/src/Actions.dfy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ module Actions {
347347
Last(attemptsState).output,
348348
DropLast(attemptsState))
349349
// Attempts are made until there is a success
350-
// so attemps will be amde up of failures
350+
// so attempts will be made up of failures
351351
// with one final Success at the end.
352352
&& forall i
353353
| 0 <= i < |DropLast(attemptsState)|

StandardLibrary/src/Index.dfy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ include "./ConcurrentCall.dfy"
99
include "./FloatCompare.dfy"
1010
include "./GetOpt.dfy"
1111
include "./HexStrings.dfy"
12+
include "./MemoryMath.dfy"
1213
include "./OsLang.dfy"
1314
include "./Sets.dfy"
1415
include "./Sorting.dfy"

0 commit comments

Comments
 (0)