Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: for test vectors, use SetToSequenceSorted #1034

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading