Skip to content

Commit

Permalink
fix: for test vectors, use SetToSequenceSorted (#1034)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajewellamz authored Nov 21, 2024
1 parent 5a7ddbf commit 21ad206
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ module {:options "-functionSyntax:4"} AllDefaultCmm {
encryptDescription := RawAesKeyring,
decryptDescription := RawAesKeyring,
encryptionContext := encryptionContext,
requiredEncryptionContextKeys := Some(SortedSets.ComputeSetToSequence(requiredEncryptionContextKeys)),
requiredEncryptionContextKeys := Some(SortedSets.ComputeSetToOrderedSequence2(requiredEncryptionContextKeys, (a, b) => a < b)),
reproducedEncryptionContext := Some(reproducedEncryptionContext)
)

Expand Down Expand Up @@ -127,7 +127,7 @@ module {:options "-functionSyntax:4"} AllDefaultCmm {
encryptDescription := RawAesKeyring,
decryptDescription := RawAesKeyring,
encryptionContext := encryptionContext,
requiredEncryptionContextKeys := Some(SortedSets.ComputeSetToSequence(requiredEncryptionContextKeys)),
requiredEncryptionContextKeys := Some(SortedSets.ComputeSetToOrderedSequence2(requiredEncryptionContextKeys, (a, b) => a < b)),
reproducedEncryptionContext := Some(reproducedEncryptionContext)
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,17 @@ module {:options "-functionSyntax:4"} AllRequiredEncryptionContextCmm {
encryptDescription := KeyVectorsTypes.RequiredEncryptionContext(
KeyVectorsTypes.RequiredEncryptionContextCMM(
underlying := AllDefaultCmm.RawAesKeyring,
requiredEncryptionContextKeys := SortedSets.ComputeSetToSequence(requiredEncryptionContextKeys)
requiredEncryptionContextKeys := SortedSets.ComputeSetToOrderedSequence2(requiredEncryptionContextKeys, (a, b) => a < b)
)
),
decryptDescription := KeyVectorsTypes.RequiredEncryptionContext(
KeyVectorsTypes.RequiredEncryptionContextCMM(
underlying := AllDefaultCmm.RawAesKeyring,
requiredEncryptionContextKeys := SortedSets.ComputeSetToSequence(requiredEncryptionContextKeys)
requiredEncryptionContextKeys := SortedSets.ComputeSetToOrderedSequence2(requiredEncryptionContextKeys, (a, b) => a < b)
)
),
encryptionContext := encryptionContext,
requiredEncryptionContextKeys := Some(SortedSets.ComputeSetToSequence(requiredEncryptionContextKeys)),
requiredEncryptionContextKeys := Some(SortedSets.ComputeSetToOrderedSequence2(requiredEncryptionContextKeys, (a, b) => a < b)),
reproducedEncryptionContext := Some(reproducedEncryptionContext)
)

Expand Down Expand Up @@ -102,17 +102,17 @@ module {:options "-functionSyntax:4"} AllRequiredEncryptionContextCmm {
encryptDescription := KeyVectorsTypes.RequiredEncryptionContext(
KeyVectorsTypes.RequiredEncryptionContextCMM(
underlying := AllDefaultCmm.RawAesKeyring,
requiredEncryptionContextKeys := SortedSets.ComputeSetToSequence(requiredEncryptionContextKeys)
requiredEncryptionContextKeys := SortedSets.ComputeSetToOrderedSequence2(requiredEncryptionContextKeys, (a, b) => a < b)
)
),
decryptDescription := KeyVectorsTypes.RequiredEncryptionContext(
KeyVectorsTypes.RequiredEncryptionContextCMM(
underlying := AllDefaultCmm.RawAesKeyring,
requiredEncryptionContextKeys := SortedSets.ComputeSetToSequence(requiredEncryptionContextKeys)
requiredEncryptionContextKeys := SortedSets.ComputeSetToOrderedSequence2(requiredEncryptionContextKeys, (a, b) => a < b)
)
),
encryptionContext := encryptionContext,
requiredEncryptionContextKeys := Some(SortedSets.ComputeSetToSequence(requiredEncryptionContextKeys)),
requiredEncryptionContextKeys := Some(SortedSets.ComputeSetToOrderedSequence2(requiredEncryptionContextKeys, (a, b) => a < b)),
reproducedEncryptionContext := Some(reproducedEncryptionContext)
)
// These are only required encryption context vectors with static aes keyrings
Expand Down

0 comments on commit 21ad206

Please sign in to comment.