From 0f371e176441d44eeb99bda92b2e2f6995e0096c Mon Sep 17 00:00:00 2001 From: rishav-karanjit Date: Thu, 5 Dec 2024 13:45:51 -0800 Subject: [PATCH 1/4] Rename EncryptionSdk to ESDK --- .../dafny/AwsEncryptionSdk/src/Index.dfy | 2 +- .../test/TestCreateEsdkClient.dfy | 16 +- .../test/TestEncryptDecrypt.dfy | 6 +- .../test/TestReproducedEncContext.dfy | 14 +- .../test/TestRequiredEncryptionContext.dfy | 42 +- .../dafny/TestVectors/src/LibraryIndex.dfy | 2 +- .../VectorsComposition/AllEsdkV4NoReqEc.dfy | 2 +- .../VectorsComposition/AllEsdkV4WithReqEc.dfy | 2 +- .../dafny/TestVectors/src/WriteVectors.dfy | 2 +- .../AllEsdkV4NoReqEc/AllEsdkV4NoReqEc.go | 534 +++++ .../AllEsdkV4WithReqEc/AllEsdkV4WithReqEc.go | 485 ++++ .../EsdkManifestOptions.go | 628 +++++ .../EsdkTestManifests/EsdkTestManifests.go | 1142 +++++++++ .../EsdkTestVectors/EsdkTestVectors.go | 2134 +++++++++++++++++ .../ImplementationFromDafny-go.dtr | 35 + .../ImplementationFromDafny.go | 424 ++++ .../ParseEsdkJsonManifest.go | 1039 ++++++++ .../WrappedESDK/WrappedESDK.go | 449 ++++ .../WrappedESDKMain/WrappedESDKMain.go | 689 ++++++ .../WriteEsdkJsonManifests.go | 683 ++++++ .../WriteVectors/WriteVectors.go | 657 +++++ .../TestWrappedESDKMain.go | 525 ++++ .../TestsFromDafny-go/TestsFromDafny-go.dtr | 5 + .../go/TestsFromDafny-go/TestsFromDafny.go | 489 ++++ 24 files changed, 9962 insertions(+), 44 deletions(-) create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4NoReqEc/AllEsdkV4NoReqEc.go create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4WithReqEc/AllEsdkV4WithReqEc.go create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkManifestOptions/EsdkManifestOptions.go create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestManifests/EsdkTestManifests.go create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestVectors/EsdkTestVectors.go create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny-go.dtr create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny.go create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/ParseEsdkJsonManifest/ParseEsdkJsonManifest.go create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDK/WrappedESDK.go create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDKMain/WrappedESDKMain.go create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/WriteEsdkJsonManifests/WriteEsdkJsonManifests.go create mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/WriteVectors/WriteVectors.go create mode 100644 TestVectors/runtimes/go/TestsFromDafny-go/TestWrappedESDKMain/TestWrappedESDKMain.go create mode 100644 TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny-go.dtr create mode 100644 TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny.go diff --git a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/src/Index.dfy b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/src/Index.dfy index ab851b1a8..736240c08 100644 --- a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/src/Index.dfy +++ b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/src/Index.dfy @@ -5,7 +5,7 @@ include "AwsEncryptionSdkOperations.dfy" module {:extern "software.amazon.cryptography.encryptionsdk.internaldafny" } - EncryptionSdk refines AbstractAwsCryptographyEncryptionSdkService { + ESDK refines AbstractAwsCryptographyEncryptionSdkService { import Operations = AwsEncryptionSdkOperations import Primitives = AtomicPrimitives import MaterialProviders diff --git a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestCreateEsdkClient.dfy b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestCreateEsdkClient.dfy index 7f8ec2943..dbd9bc181 100644 --- a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestCreateEsdkClient.dfy +++ b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestCreateEsdkClient.dfy @@ -6,7 +6,7 @@ include "../src/Index.dfy" module TestCreateEsdkClient { import Types = AwsCryptographyEncryptionSdkTypes import mplTypes = AwsCryptographyMaterialProvidersTypes - import EncryptionSdk + import ESDK import MaterialProviders import opened Wrappers import opened UInt = StandardLibrary.UInt @@ -50,11 +50,11 @@ module TestCreateEsdkClient { ]; method {:test} TestClientCreation() { - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); - var esdk: Types.IAwsEncryptionSdkClient :- expect EncryptionSdk.ESDK(config := defaultConfig); - expect esdk is EncryptionSdk.ESDKClient; - var esdkClient := esdk as EncryptionSdk.ESDKClient; + var esdk: Types.IAwsEncryptionSdkClient :- expect ESDK.ESDK(config := defaultConfig); + expect esdk is ESDK.ESDKClient; + var esdkClient := esdk as ESDK.ESDKClient; expect esdkClient.config.commitmentPolicy == defaultConfig.commitmentPolicy.value; expect esdkClient.config.maxEncryptedDataKeys == defaultConfig.maxEncryptedDataKeys; @@ -82,7 +82,7 @@ module TestCreateEsdkClient { netV4_0_0_RetryPolicy := Some(Types.NetV4_0_0_RetryPolicy.FORBID_RETRY) ); - var noRetryEsdk :- expect EncryptionSdk.ESDK(config := esdkConfig); + var noRetryEsdk :- expect ESDK.ESDK(config := esdkConfig); var expectFailureDecryptOutput := noRetryEsdk.Decrypt(Types.DecryptInput( ciphertext := ESDK_NET_V400_MESSAGE, @@ -95,8 +95,8 @@ module TestCreateEsdkClient { // Decrypt v4.0.0 message with the default configuration which is to retry // and expect decryption to pass - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var decryptOutput := esdk.Decrypt(Types.DecryptInput( ciphertext := ESDK_NET_V400_MESSAGE, diff --git a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestEncryptDecrypt.dfy b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestEncryptDecrypt.dfy index 58f5dc976..e195f96e8 100644 --- a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestEncryptDecrypt.dfy +++ b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestEncryptDecrypt.dfy @@ -9,7 +9,7 @@ module TestEncryptDecrypt { import Types = AwsCryptographyEncryptionSdkTypes import mplTypes = AwsCryptographyMaterialProvidersTypes import MaterialProviders - import EncryptionSdk + import ESDK import opened Wrappers import Fixtures @@ -20,8 +20,8 @@ module TestEncryptDecrypt { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); var clientSupplier :- expect mpl.CreateDefaultClientSupplier(mplTypes.CreateDefaultClientSupplierInput); var kmsClient :- expect clientSupplier.GetClient(mplTypes.GetClientInput(region := "us-west-2")); diff --git a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestReproducedEncContext.dfy b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestReproducedEncContext.dfy index ea074601d..c27eaa1db 100644 --- a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestReproducedEncContext.dfy +++ b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestReproducedEncContext.dfy @@ -9,7 +9,7 @@ module TestReproducedEncryptionContext { import Types = AwsCryptographyEncryptionSdkTypes import mplTypes = AwsCryptographyMaterialProvidersTypes import MaterialProviders - import EncryptionSdk + import ESDK import opened Wrappers import Fixtures @@ -20,8 +20,8 @@ module TestReproducedEncryptionContext { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); var clientSupplier :- expect mpl.CreateDefaultClientSupplier(mplTypes.CreateDefaultClientSupplierInput); var kmsClient :- expect clientSupplier.GetClient(mplTypes.GetClientInput(region := "us-west-2")); @@ -67,8 +67,8 @@ module TestReproducedEncryptionContext { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); var clientSupplier :- expect mpl.CreateDefaultClientSupplier(mplTypes.CreateDefaultClientSupplierInput); var kmsClient :- expect clientSupplier.GetClient(mplTypes.GetClientInput(region := "us-west-2")); @@ -113,8 +113,8 @@ module TestReproducedEncryptionContext { var asdf := [ 97, 115, 100, 102 ]; var namespace, name := Fixtures.NamespaceAndName(0); - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); var rawAESKeyring :- expect mpl.CreateRawAesKeyring(mplTypes.CreateRawAesKeyringInput( keyNamespace := namespace, diff --git a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy index f8b02fbc7..8c78050a2 100644 --- a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy +++ b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy @@ -16,7 +16,7 @@ module TestRequiredEncryptionContext { import KMS = Com.Amazonaws.Kms import DDB = Com.Amazonaws.Dynamodb import DDBTypes = ComAmazonawsDynamodbTypes - import EncryptionSdk + import ESDK import opened Wrappers import UTF8 @@ -35,8 +35,8 @@ module TestRequiredEncryptionContext { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); // get keyrings @@ -120,8 +120,8 @@ module TestRequiredEncryptionContext { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); // get keyrings @@ -229,8 +229,8 @@ module TestRequiredEncryptionContext { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); // get keyrings @@ -411,8 +411,8 @@ module TestRequiredEncryptionContext { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); // get keyrings @@ -586,8 +586,8 @@ module TestRequiredEncryptionContext { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); // get keyrings @@ -711,8 +711,8 @@ module TestRequiredEncryptionContext { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); // get keyrings @@ -814,8 +814,8 @@ module TestRequiredEncryptionContext { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); // get keyrings @@ -918,8 +918,8 @@ module TestRequiredEncryptionContext { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); // get keyrings @@ -1018,8 +1018,8 @@ module TestRequiredEncryptionContext { // The string "asdf" as bytes var asdf := [ 97, 115, 100, 102 ]; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); // get keyrings @@ -1133,8 +1133,8 @@ module TestRequiredEncryptionContext { ensures output.ValidState() && fresh(output) && fresh(output.History) && fresh(output.Modifies) { var kmsKey := Fixtures.keyArn; - var defaultConfig := EncryptionSdk.DefaultAwsEncryptionSdkConfig(); - var esdk :- expect EncryptionSdk.ESDK(config := defaultConfig); + var defaultConfig := ESDK.DefaultAwsEncryptionSdkConfig(); + var esdk :- expect ESDK.ESDK(config := defaultConfig); var mpl :- expect MaterialProviders.MaterialProviders(); var clientSupplier :- expect mpl.CreateDefaultClientSupplier(mplTypes.CreateDefaultClientSupplierInput); var kmsClient :- expect clientSupplier.GetClient(mplTypes.GetClientInput(region := "us-west-2")); diff --git a/TestVectors/dafny/TestVectors/src/LibraryIndex.dfy b/TestVectors/dafny/TestVectors/src/LibraryIndex.dfy index 5a1da5c96..944874abf 100644 --- a/TestVectors/dafny/TestVectors/src/LibraryIndex.dfy +++ b/TestVectors/dafny/TestVectors/src/LibraryIndex.dfy @@ -7,7 +7,7 @@ module {:extern "software.amazon.cryptography.encryptionsdk.internaldafny.wrapped" } WrappedESDK refines WrappedAbstractAwsCryptographyEncryptionSdkService { - import WrappedService = EncryptionSdk + import WrappedService = ESDK function method WrappedDefaultAwsEncryptionSdkConfig(): AwsEncryptionSdkConfig { diff --git a/TestVectors/dafny/TestVectors/src/VectorsComposition/AllEsdkV4NoReqEc.dfy b/TestVectors/dafny/TestVectors/src/VectorsComposition/AllEsdkV4NoReqEc.dfy index 32b45ef0c..5e7fa11cb 100644 --- a/TestVectors/dafny/TestVectors/src/VectorsComposition/AllEsdkV4NoReqEc.dfy +++ b/TestVectors/dafny/TestVectors/src/VectorsComposition/AllEsdkV4NoReqEc.dfy @@ -7,7 +7,7 @@ module {:options "/functionSyntax:4"} AllEsdkV4NoReqEc { import Types = AwsCryptographyEncryptionSdkTypes import mplTypes = AwsCryptographyMaterialProvidersTypes import keyVectorKeyTypes = AwsCryptographyMaterialProvidersTestVectorKeysTypes - import EncryptionSdk + import ESDK import MaterialProviders import opened CompleteVectors import opened KeyDescription diff --git a/TestVectors/dafny/TestVectors/src/VectorsComposition/AllEsdkV4WithReqEc.dfy b/TestVectors/dafny/TestVectors/src/VectorsComposition/AllEsdkV4WithReqEc.dfy index c74b1b460..f89a805c8 100644 --- a/TestVectors/dafny/TestVectors/src/VectorsComposition/AllEsdkV4WithReqEc.dfy +++ b/TestVectors/dafny/TestVectors/src/VectorsComposition/AllEsdkV4WithReqEc.dfy @@ -6,7 +6,7 @@ include "../LibraryIndex.dfy" module {:options "/functionSyntax:4" } AllEsdkV4WithReqEc { import Types = AwsCryptographyEncryptionSdkTypes import mplTypes = AwsCryptographyMaterialProvidersTypes - import EncryptionSdk + import ESDK import MaterialProviders import opened CompleteVectors import opened KeyDescription diff --git a/TestVectors/dafny/TestVectors/src/WriteVectors.dfy b/TestVectors/dafny/TestVectors/src/WriteVectors.dfy index b56b87506..69bd11d68 100644 --- a/TestVectors/dafny/TestVectors/src/WriteVectors.dfy +++ b/TestVectors/dafny/TestVectors/src/WriteVectors.dfy @@ -9,7 +9,7 @@ include "WriteEsdkJsonManifests.dfy" module {:options "-functionSyntax:4"} WriteVectors { import Types = AwsCryptographyEncryptionSdkTypes import mplTypes = AwsCryptographyMaterialProvidersTypes - import EncryptionSdk + import ESDK import MaterialProviders import opened CompleteVectors import opened Wrappers diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4NoReqEc/AllEsdkV4NoReqEc.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4NoReqEc/AllEsdkV4NoReqEc.go new file mode 100644 index 000000000..859e86ff0 --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4NoReqEc/AllEsdkV4NoReqEc.go @@ -0,0 +1,534 @@ +// Package AllEsdkV4NoReqEc +// Dafny module AllEsdkV4NoReqEc compiled into Go + +package AllEsdkV4NoReqEc + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" + m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ +var _ m_WrappedESDK.Dummy__ +var _ m_EsdkManifestOptions.Dummy__ +var _ m_EsdkTestVectors.Dummy__ + +type Dummy__ struct{} + +// Definition of class Default__ +type Default__ struct { + dummy byte +} + +func New_Default___() *Default__ { + _this := Default__{} + + return &_this +} + +type CompanionStruct_Default___ struct { +} + +var Companion_Default___ = CompanionStruct_Default___{} + +func (_this *Default__) Equals(other *Default__) bool { + return _this == other +} + +func (_this *Default__) EqualsGeneric(x interface{}) bool { + other, ok := x.(*Default__) + return ok && _this.Equals(other) +} + +func (*Default__) String() string { + return "AllEsdkV4NoReqEc.Default__" +} +func (_this *Default__) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = &Default__{} + +func (_static *CompanionStruct_Default___) AllPositiveKeyringTestsNoReqCmmNoKmsRsa() _dafny.Set { + return ((((((((((_dafny.SetOf()).Union(m_AllDefaultCmm.Companion_Default___.SuccessTestingRequiredEncryptionContextKeysReproducedEncryptionContext())).Union(m_AllHierarchy.Companion_Default___.Tests())).Union(m_AllKms.Companion_Default___.Tests())).Union(m_AllKmsMrkAware.Companion_Default___.Tests())).Union(m_AllKmsMrkAwareDiscovery.Companion_Default___.Tests())).Union(m_AllRawAES.Companion_Default___.Tests())).Union(m_AllRawRSA.Companion_Default___.Tests())).Union(m_AllMulti.Companion_Default___.Tests())).Union(m_AllRawECDH.Companion_Default___.Tests())).Union(m_AllKmsEcdh.Companion_Default___.Tests()) +} +func (_static *CompanionStruct_Default___) FrameSize() int64 { + return int64(512) +} +func (_static *CompanionStruct_Default___) AllPostiveKeyringTestsNoDBESuiteNoReqEC() _dafny.Set { + return func() _dafny.Set { + var _coll0 = _dafny.NewBuilder() + _ = _coll0 + for _iter0 := _dafny.Iterate((Companion_Default___.AllPositiveKeyringTestsNoReqCmmNoKmsRsa()).Elements()); ; { + _compr_0, _ok0 := _iter0() + if !_ok0 { + break + } + var _0_keyringConfig m_TestVectors.EncryptTestVector + _0_keyringConfig = interface{}(_compr_0).(m_TestVectors.EncryptTestVector) + if ((Companion_Default___.AllPositiveKeyringTestsNoReqCmmNoKmsRsa()).Contains(_0_keyringConfig)) && (!((_0_keyringConfig).Is_NegativeEncryptKeyringVector())) { + for _iter1 := _dafny.Iterate((m_AllAlgorithmSuites.Companion_Default___.ESDKAlgorithmSuites()).Elements()); ; { + _compr_1, _ok1 := _iter1() + if !_ok1 { + break + } + var _1_algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo + _1_algorithmSuite = interface{}(_compr_1).(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) + if (m_AllAlgorithmSuites.Companion_Default___.ESDKAlgorithmSuites()).Contains(_1_algorithmSuite) { + _coll0.Add(m_EsdkTestVectors.Companion_EsdkEncryptTestVector_.Create_PositiveEncryptTestVector_(m_Wrappers.Companion_Option_.Create_None_(), _dafny.IntOfInt64(4), _dafny.SeqOfString(""), _dafny.SeqOfString(""), _dafny.SeqOfString(""), (_0_keyringConfig).Dtor_encryptDescription(), (_0_keyringConfig).Dtor_decryptDescription(), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), m_Wrappers.Companion_Option_.Create_Some_(Companion_Default___.FrameSize()), m_Wrappers.Companion_Option_.Create_Some_(_1_algorithmSuite), (_0_keyringConfig).Dtor_name(), m_Wrappers.Companion_Option_.Create_Some_(int64(1)))) + } + } + } + } + return _coll0.ToSet() + }() +} +func (_static *CompanionStruct_Default___) AwsKmsRsaTests() _dafny.Set { + return m_AllKmsRsa.Companion_Default___.Tests() +} +func (_static *CompanionStruct_Default___) EsdkAlgorithmSuitesKmsRsa() _dafny.Set { + return func() _dafny.Set { + var _coll0 = _dafny.NewBuilder() + _ = _coll0 + for _iter2 := _dafny.Iterate((m_AllAlgorithmSuites.Companion_Default___.AllAlgorithmSuites()).Elements()); ; { + _compr_0, _ok2 := _iter2() + if !_ok2 { + break + } + var _0_suite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo + _0_suite = interface{}(_compr_0).(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) + if m_AlgorithmSuites.Companion_AlgorithmSuite_.Is_(_0_suite) { + if (((m_AllAlgorithmSuites.Companion_Default___.AllAlgorithmSuites()).Contains(_0_suite)) && (!(((_0_suite).Dtor_signature()).Is_ECDSA()))) && (((_0_suite).Dtor_id()).Is_ESDK()) { + _coll0.Add(_0_suite) + } + } + } + return _coll0.ToSet() + }() +} +func (_static *CompanionStruct_Default___) AllPositiveKeyringTestsNoDBEKmsRsa() _dafny.Set { + return func() _dafny.Set { + var _coll0 = _dafny.NewBuilder() + _ = _coll0 + for _iter3 := _dafny.Iterate((Companion_Default___.AwsKmsRsaTests()).Elements()); ; { + _compr_0, _ok3 := _iter3() + if !_ok3 { + break + } + var _0_keyringConfig m_TestVectors.EncryptTestVector + _0_keyringConfig = interface{}(_compr_0).(m_TestVectors.EncryptTestVector) + if ((Companion_Default___.AwsKmsRsaTests()).Contains(_0_keyringConfig)) && (!((_0_keyringConfig).Is_NegativeEncryptKeyringVector())) { + for _iter4 := _dafny.Iterate((Companion_Default___.EsdkAlgorithmSuitesKmsRsa()).Elements()); ; { + _compr_1, _ok4 := _iter4() + if !_ok4 { + break + } + var _1_algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo + _1_algorithmSuite = interface{}(_compr_1).(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) + if (Companion_Default___.EsdkAlgorithmSuitesKmsRsa()).Contains(_1_algorithmSuite) { + _coll0.Add(m_EsdkTestVectors.Companion_EsdkEncryptTestVector_.Create_PositiveEncryptTestVector_(m_Wrappers.Companion_Option_.Create_None_(), _dafny.IntOfInt64(4), _dafny.SeqOfString(""), _dafny.SeqOfString(""), _dafny.SeqOfString(""), (_0_keyringConfig).Dtor_encryptDescription(), (_0_keyringConfig).Dtor_decryptDescription(), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), m_Wrappers.Companion_Option_.Create_Some_(Companion_Default___.FrameSize()), m_Wrappers.Companion_Option_.Create_Some_(_1_algorithmSuite), (_0_keyringConfig).Dtor_name(), m_Wrappers.Companion_Option_.Create_Some_(int64(1)))) + } + } + } + } + return _coll0.ToSet() + }() +} +func (_static *CompanionStruct_Default___) Tests() _dafny.Set { + return (Companion_Default___.AllPostiveKeyringTestsNoDBESuiteNoReqEC()).Union(Companion_Default___.AllPositiveKeyringTestsNoDBEKmsRsa()) +} + +// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4WithReqEc/AllEsdkV4WithReqEc.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4WithReqEc/AllEsdkV4WithReqEc.go new file mode 100644 index 000000000..1f4e73e09 --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4WithReqEc/AllEsdkV4WithReqEc.go @@ -0,0 +1,485 @@ +// Package AllEsdkV4WithReqEc +// Dafny module AllEsdkV4WithReqEc compiled into Go + +package AllEsdkV4WithReqEc + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" + m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" + m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ +var _ m_WrappedESDK.Dummy__ +var _ m_EsdkManifestOptions.Dummy__ +var _ m_EsdkTestVectors.Dummy__ +var _ m_AllEsdkV4NoReqEc.Dummy__ + +type Dummy__ struct{} + +// Definition of class Default__ +type Default__ struct { + dummy byte +} + +func New_Default___() *Default__ { + _this := Default__{} + + return &_this +} + +type CompanionStruct_Default___ struct { +} + +var Companion_Default___ = CompanionStruct_Default___{} + +func (_this *Default__) Equals(other *Default__) bool { + return _this == other +} + +func (_this *Default__) EqualsGeneric(x interface{}) bool { + other, ok := x.(*Default__) + return ok && _this.Equals(other) +} + +func (*Default__) String() string { + return "AllEsdkV4WithReqEc.Default__" +} +func (_this *Default__) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = &Default__{} + +func (_static *CompanionStruct_Default___) AllPositiveReqEcTests() _dafny.Set { + return m_AllRequiredEncryptionContextCmm.Companion_Default___.SuccessTestingRequiredEncryptionContextKeysReproducedEncryptionContext() +} +func (_static *CompanionStruct_Default___) FrameSize() int64 { + return int64(512) +} +func (_static *CompanionStruct_Default___) AllPositiveReqEcEsdkTests() _dafny.Set { + return func() _dafny.Set { + var _coll0 = _dafny.NewBuilder() + _ = _coll0 + for _iter5 := _dafny.Iterate((Companion_Default___.AllPositiveReqEcTests()).Elements()); ; { + _compr_0, _ok5 := _iter5() + if !_ok5 { + break + } + var _0_config m_TestVectors.EncryptTestVector + _0_config = interface{}(_compr_0).(m_TestVectors.EncryptTestVector) + if (Companion_Default___.AllPositiveReqEcTests()).Contains(_0_config) { + for _iter6 := _dafny.Iterate((m_AllAlgorithmSuites.Companion_Default___.ESDKAlgorithmSuites()).Elements()); ; { + _compr_1, _ok6 := _iter6() + if !_ok6 { + break + } + var _1_algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo + _1_algorithmSuite = interface{}(_compr_1).(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) + if (m_AllAlgorithmSuites.Companion_Default___.ESDKAlgorithmSuites()).Contains(_1_algorithmSuite) { + _coll0.Add(m_EsdkTestVectors.Companion_EsdkEncryptTestVector_.Create_PositiveEncryptTestVector_(m_Wrappers.Companion_Option_.Create_None_(), _dafny.IntOfInt64(4), _dafny.SeqOfString(""), _dafny.SeqOfString(""), _dafny.SeqOfString(""), (_0_config).Dtor_encryptDescription(), (_0_config).Dtor_decryptDescription(), m_Wrappers.Companion_Option_.Create_Some_((_0_config).Dtor_encryptionContext()), (_0_config).Dtor_reproducedEncryptionContext(), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), m_Wrappers.Companion_Option_.Create_Some_(Companion_Default___.FrameSize()), m_Wrappers.Companion_Option_.Create_Some_(_1_algorithmSuite), (_0_config).Dtor_name(), m_Wrappers.Companion_Option_.Create_Some_(int64(1)))) + } + } + } + } + return _coll0.ToSet() + }() +} +func (_static *CompanionStruct_Default___) Tests() _dafny.Set { + return Companion_Default___.AllPositiveReqEcEsdkTests() +} + +// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkManifestOptions/EsdkManifestOptions.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkManifestOptions/EsdkManifestOptions.go new file mode 100644 index 000000000..0ecb0f184 --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkManifestOptions/EsdkManifestOptions.go @@ -0,0 +1,628 @@ +// Package EsdkManifestOptions +// Dafny module EsdkManifestOptions compiled into Go + +package EsdkManifestOptions + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ +var _ m_WrappedESDK.Dummy__ + +type Dummy__ struct{} + +// Definition of datatype ManifestOptions +type ManifestOptions struct { + Data_ManifestOptions_ +} + +func (_this ManifestOptions) Get_() Data_ManifestOptions_ { + return _this.Data_ManifestOptions_ +} + +type Data_ManifestOptions_ interface { + isManifestOptions() +} + +type CompanionStruct_ManifestOptions_ struct { +} + +var Companion_ManifestOptions_ = CompanionStruct_ManifestOptions_{} + +type ManifestOptions_Decrypt struct { + ManifestPath _dafny.Sequence + ManifestFileName _dafny.Sequence + TestName m_Wrappers.Option +} + +func (ManifestOptions_Decrypt) isManifestOptions() {} + +func (CompanionStruct_ManifestOptions_) Create_Decrypt_(ManifestPath _dafny.Sequence, ManifestFileName _dafny.Sequence, TestName m_Wrappers.Option) ManifestOptions { + return ManifestOptions{ManifestOptions_Decrypt{ManifestPath, ManifestFileName, TestName}} +} + +func (_this ManifestOptions) Is_Decrypt() bool { + _, ok := _this.Get_().(ManifestOptions_Decrypt) + return ok +} + +type ManifestOptions_Encrypt struct { + ManifestPath _dafny.Sequence + Manifest _dafny.Sequence + DecryptManifestOutput _dafny.Sequence + TestName m_Wrappers.Option +} + +func (ManifestOptions_Encrypt) isManifestOptions() {} + +func (CompanionStruct_ManifestOptions_) Create_Encrypt_(ManifestPath _dafny.Sequence, Manifest _dafny.Sequence, DecryptManifestOutput _dafny.Sequence, TestName m_Wrappers.Option) ManifestOptions { + return ManifestOptions{ManifestOptions_Encrypt{ManifestPath, Manifest, DecryptManifestOutput, TestName}} +} + +func (_this ManifestOptions) Is_Encrypt() bool { + _, ok := _this.Get_().(ManifestOptions_Encrypt) + return ok +} + +type ManifestOptions_DecryptSingle struct { + KeysPath _dafny.Sequence + KeyDescription _dafny.Sequence + Base64Bytes _dafny.Sequence +} + +func (ManifestOptions_DecryptSingle) isManifestOptions() {} + +func (CompanionStruct_ManifestOptions_) Create_DecryptSingle_(KeysPath _dafny.Sequence, KeyDescription _dafny.Sequence, Base64Bytes _dafny.Sequence) ManifestOptions { + return ManifestOptions{ManifestOptions_DecryptSingle{KeysPath, KeyDescription, Base64Bytes}} +} + +func (_this ManifestOptions) Is_DecryptSingle() bool { + _, ok := _this.Get_().(ManifestOptions_DecryptSingle) + return ok +} + +type ManifestOptions_EncryptManifest struct { + EncryptManifestOutput _dafny.Sequence + Version _dafny.Int +} + +func (ManifestOptions_EncryptManifest) isManifestOptions() {} + +func (CompanionStruct_ManifestOptions_) Create_EncryptManifest_(EncryptManifestOutput _dafny.Sequence, Version _dafny.Int) ManifestOptions { + return ManifestOptions{ManifestOptions_EncryptManifest{EncryptManifestOutput, Version}} +} + +func (_this ManifestOptions) Is_EncryptManifest() bool { + _, ok := _this.Get_().(ManifestOptions_EncryptManifest) + return ok +} + +func (CompanionStruct_ManifestOptions_) Default() ManifestOptions { + return Companion_ManifestOptions_.Create_Decrypt_(_dafny.EmptySeq.SetString(), _dafny.EmptySeq.SetString(), m_Wrappers.Companion_Option_.Default()) +} + +func (_this ManifestOptions) Dtor_manifestPath() _dafny.Sequence { + switch data := _this.Get_().(type) { + case ManifestOptions_Decrypt: + return data.ManifestPath + default: + return data.(ManifestOptions_Encrypt).ManifestPath + } +} + +func (_this ManifestOptions) Dtor_manifestFileName() _dafny.Sequence { + return _this.Get_().(ManifestOptions_Decrypt).ManifestFileName +} + +func (_this ManifestOptions) Dtor_testName() m_Wrappers.Option { + switch data := _this.Get_().(type) { + case ManifestOptions_Decrypt: + return data.TestName + default: + return data.(ManifestOptions_Encrypt).TestName + } +} + +func (_this ManifestOptions) Dtor_manifest() _dafny.Sequence { + return _this.Get_().(ManifestOptions_Encrypt).Manifest +} + +func (_this ManifestOptions) Dtor_decryptManifestOutput() _dafny.Sequence { + return _this.Get_().(ManifestOptions_Encrypt).DecryptManifestOutput +} + +func (_this ManifestOptions) Dtor_keysPath() _dafny.Sequence { + return _this.Get_().(ManifestOptions_DecryptSingle).KeysPath +} + +func (_this ManifestOptions) Dtor_keyDescription() _dafny.Sequence { + return _this.Get_().(ManifestOptions_DecryptSingle).KeyDescription +} + +func (_this ManifestOptions) Dtor_base64Bytes() _dafny.Sequence { + return _this.Get_().(ManifestOptions_DecryptSingle).Base64Bytes +} + +func (_this ManifestOptions) Dtor_encryptManifestOutput() _dafny.Sequence { + return _this.Get_().(ManifestOptions_EncryptManifest).EncryptManifestOutput +} + +func (_this ManifestOptions) Dtor_version() _dafny.Int { + return _this.Get_().(ManifestOptions_EncryptManifest).Version +} + +func (_this ManifestOptions) String() string { + switch data := _this.Get_().(type) { + case nil: + return "null" + case ManifestOptions_Decrypt: + { + return "EsdkManifestOptions.ManifestOptions.Decrypt" + "(" + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.ManifestFileName) + ", " + _dafny.String(data.TestName) + ")" + } + case ManifestOptions_Encrypt: + { + return "EsdkManifestOptions.ManifestOptions.Encrypt" + "(" + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.Manifest) + ", " + _dafny.String(data.DecryptManifestOutput) + ", " + _dafny.String(data.TestName) + ")" + } + case ManifestOptions_DecryptSingle: + { + return "EsdkManifestOptions.ManifestOptions.DecryptSingle" + "(" + _dafny.String(data.KeysPath) + ", " + _dafny.String(data.KeyDescription) + ", " + _dafny.String(data.Base64Bytes) + ")" + } + case ManifestOptions_EncryptManifest: + { + return "EsdkManifestOptions.ManifestOptions.EncryptManifest" + "(" + _dafny.String(data.EncryptManifestOutput) + ", " + _dafny.String(data.Version) + ")" + } + default: + { + return "" + } + } +} + +func (_this ManifestOptions) Equals(other ManifestOptions) bool { + switch data1 := _this.Get_().(type) { + case ManifestOptions_Decrypt: + { + data2, ok := other.Get_().(ManifestOptions_Decrypt) + return ok && data1.ManifestPath.Equals(data2.ManifestPath) && data1.ManifestFileName.Equals(data2.ManifestFileName) && data1.TestName.Equals(data2.TestName) + } + case ManifestOptions_Encrypt: + { + data2, ok := other.Get_().(ManifestOptions_Encrypt) + return ok && data1.ManifestPath.Equals(data2.ManifestPath) && data1.Manifest.Equals(data2.Manifest) && data1.DecryptManifestOutput.Equals(data2.DecryptManifestOutput) && data1.TestName.Equals(data2.TestName) + } + case ManifestOptions_DecryptSingle: + { + data2, ok := other.Get_().(ManifestOptions_DecryptSingle) + return ok && data1.KeysPath.Equals(data2.KeysPath) && data1.KeyDescription.Equals(data2.KeyDescription) && data1.Base64Bytes.Equals(data2.Base64Bytes) + } + case ManifestOptions_EncryptManifest: + { + data2, ok := other.Get_().(ManifestOptions_EncryptManifest) + return ok && data1.EncryptManifestOutput.Equals(data2.EncryptManifestOutput) && data1.Version.Cmp(data2.Version) == 0 + } + default: + { + return false // unexpected + } + } +} + +func (_this ManifestOptions) EqualsGeneric(other interface{}) bool { + typed, ok := other.(ManifestOptions) + return ok && _this.Equals(typed) +} + +func Type_ManifestOptions_() _dafny.TypeDescriptor { + return type_ManifestOptions_{} +} + +type type_ManifestOptions_ struct { +} + +func (_this type_ManifestOptions_) Default() interface{} { + return Companion_ManifestOptions_.Default() +} + +func (_this type_ManifestOptions_) String() string { + return "EsdkManifestOptions.ManifestOptions" +} +func (_this ManifestOptions) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = ManifestOptions{} + +// End of datatype ManifestOptions diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestManifests/EsdkTestManifests.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestManifests/EsdkTestManifests.go new file mode 100644 index 000000000..8109f3d7b --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestManifests/EsdkTestManifests.go @@ -0,0 +1,1142 @@ +// Package EsdkTestManifests +// Dafny module EsdkTestManifests compiled into Go + +package EsdkTestManifests + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" + m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" + m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" + m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" + m_ParseEsdkJsonManifest "github.com/aws/aws-encryption-sdk/testvectors/ParseEsdkJsonManifest" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" + m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ +var _ m_WrappedESDK.Dummy__ +var _ m_EsdkManifestOptions.Dummy__ +var _ m_EsdkTestVectors.Dummy__ +var _ m_AllEsdkV4NoReqEc.Dummy__ +var _ m_AllEsdkV4WithReqEc.Dummy__ +var _ m_WriteEsdkJsonManifests.Dummy__ +var _ m_WriteVectors.Dummy__ +var _ m_ParseEsdkJsonManifest.Dummy__ + +type Dummy__ struct{} + +// Definition of class Default__ +type Default__ struct { + dummy byte +} + +func New_Default___() *Default__ { + _this := Default__{} + + return &_this +} + +type CompanionStruct_Default___ struct { +} + +var Companion_Default___ = CompanionStruct_Default___{} + +func (_this *Default__) Equals(other *Default__) bool { + return _this == other +} + +func (_this *Default__) EqualsGeneric(x interface{}) bool { + other, ok := x.(*Default__) + return ok && _this.Equals(other) +} + +func (*Default__) String() string { + return "EsdkTestManifests.Default__" +} +func (_this *Default__) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = &Default__{} + +func (_static *CompanionStruct_Default___) StartDecryptVectors(op m_EsdkManifestOptions.ManifestOptions) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = output + var _0_valueOrError0 m_Wrappers.Result = m_Wrappers.Result{} + _ = _0_valueOrError0 + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = Companion_Default___.GetManifest((op).Dtor_manifestPath(), (op).Dtor_manifestFileName()) + _0_valueOrError0 = _out0 + if !(!((_0_valueOrError0).IsFailure())) { + panic("dafny/TestVectors/src/EsdkTestManifests.dfy(40,27): " + (_0_valueOrError0).String()) + } + var _1_decryptManifest ManifestData + _ = _1_decryptManifest + _1_decryptManifest = (_0_valueOrError0).Extract().(ManifestData) + var _2_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _2_valueOrError1 + _2_valueOrError1 = m_Wrappers.Companion_Default___.Need((_1_decryptManifest).Is_DecryptManifest(), _dafny.SeqOfString("Not a decrypt manifest")) + if (_2_valueOrError1).IsFailure() { + output = (_2_valueOrError1).PropagateFailure() + return output + } + var _3_valueOrError2 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _3_valueOrError2 + _3_valueOrError2 = m_ParseEsdkJsonManifest.Companion_Default___.BuildDecryptTestVector(op, (_1_decryptManifest).Dtor_version(), (_1_decryptManifest).Dtor_keys(), (_1_decryptManifest).Dtor_jsonTests()) + if (_3_valueOrError2).IsFailure() { + output = (_3_valueOrError2).PropagateFailure() + return output + } + var _4_decryptVectors _dafny.Sequence + _ = _4_decryptVectors + _4_decryptVectors = (_3_valueOrError2).Extract().(_dafny.Sequence) + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = Companion_Default___.TestDecrypts((_1_decryptManifest).Dtor_keys(), _4_decryptVectors) + output = _out1 + return output +} +func (_static *CompanionStruct_Default___) TestDecryptVector_q(v m_EsdkTestVectors.EsdkDecryptTestVector) bool { + return (true) && (((v).Dtor_decryptionMethod()).Is_OneShot()) +} +func (_static *CompanionStruct_Default___) TestDecrypts(keys *m_KeyVectors.KeyVectorsClient, vectors _dafny.Sequence) m_Wrappers.Result { + var manifest m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = manifest + _dafny.Print((_dafny.SeqOfString("\n=================== Starting ")).SetString()) + _dafny.Print(_dafny.IntOfUint32((vectors).Cardinality())) + _dafny.Print((_dafny.SeqOfString(" Decrypt Tests =================== \n\n")).SetString()) + var _0_hasFailure bool + _ = _0_hasFailure + _0_hasFailure = false + var _1_skipped _dafny.Int + _ = _1_skipped + _1_skipped = _dafny.Zero + var _hi0 _dafny.Int = _dafny.IntOfUint32((vectors).Cardinality()) + _ = _hi0 + for _2_i := _dafny.Zero; _2_i.Cmp(_hi0) < 0; _2_i = _2_i.Plus(_dafny.One) { + var _3_vector m_EsdkTestVectors.EsdkDecryptTestVector + _ = _3_vector + _3_vector = (vectors).Select((_2_i).Uint32()).(m_EsdkTestVectors.EsdkDecryptTestVector) + if Companion_Default___.TestDecryptVector_q(_3_vector) { + var _4_pass bool + _ = _4_pass + var _out0 bool + _ = _out0 + _out0 = m_EsdkTestVectors.Companion_Default___.TestDecrypt(keys, _3_vector) + _4_pass = _out0 + if !(_4_pass) { + _0_hasFailure = true + } + } else { + _1_skipped = (_1_skipped).Plus(_dafny.One) + _dafny.Print((_dafny.SeqOfString("\nSKIP===> ")).SetString()) + _dafny.Print(((_3_vector).Dtor_id()).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + } + } + _dafny.Print((_dafny.SeqOfString("\n=================== Completed ")).SetString()) + _dafny.Print(_dafny.IntOfUint32((vectors).Cardinality())) + _dafny.Print((_dafny.SeqOfString(" Decrypt Tests =================== \n\n")).SetString()) + if (_1_skipped).Sign() == 1 { + _dafny.Print((_dafny.SeqOfString("Skipped: ")).SetString()) + _dafny.Print(_1_skipped) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + } + if !(!(_0_hasFailure)) { + panic("dafny/TestVectors/src/EsdkTestManifests.dfy(92,4): " + (_dafny.SeqOfString("expectation violation")).String()) + } + manifest = m_Wrappers.Companion_Result_.Create_Success_(_dafny.SeqOf()) + return manifest +} +func (_static *CompanionStruct_Default___) StartEncryptVectors(op m_EsdkManifestOptions.ManifestOptions) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) + _ = output + var _0_valueOrError0 m_Wrappers.Result = m_Wrappers.Result{} + _ = _0_valueOrError0 + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = Companion_Default___.GetManifest((op).Dtor_manifestPath(), (op).Dtor_manifest()) + _0_valueOrError0 = _out0 + if (_0_valueOrError0).IsFailure() { + output = (_0_valueOrError0).PropagateFailure() + return output + } + var _1_encryptManifest ManifestData + _ = _1_encryptManifest + _1_encryptManifest = (_0_valueOrError0).Extract().(ManifestData) + var _2_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _2_valueOrError1 + _2_valueOrError1 = m_Wrappers.Companion_Default___.Need((_1_encryptManifest).Is_EncryptManifest(), _dafny.SeqOfString("Not a encrypt manifest")) + if (_2_valueOrError1).IsFailure() { + output = (_2_valueOrError1).PropagateFailure() + return output + } + var _3_valueOrError2 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _3_valueOrError2 + _3_valueOrError2 = m_ParseEsdkJsonManifest.Companion_Default___.BuildEncryptTestVector(op, (_1_encryptManifest).Dtor_version(), (_1_encryptManifest).Dtor_keys(), (_1_encryptManifest).Dtor_jsonTests()) + if (_3_valueOrError2).IsFailure() { + output = (_3_valueOrError2).PropagateFailure() + return output + } + var _4_encryptVectors _dafny.Sequence + _ = _4_encryptVectors + _4_encryptVectors = (_3_valueOrError2).Extract().(_dafny.Sequence) + var _5_valueOrError3 m_Wrappers.Result = m_Wrappers.Result{} + _ = _5_valueOrError3 + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = m_AtomicPrimitives.Companion_Default___.AtomicPrimitives(m_AtomicPrimitives.Companion_Default___.DefaultCryptoConfig()) + _5_valueOrError3 = _out1 + if !(!((_5_valueOrError3).IsFailure())) { + panic("dafny/TestVectors/src/EsdkTestManifests.dfy(114,13): " + (_5_valueOrError3).String()) + } + var _6_p *m_AtomicPrimitives.AtomicPrimitivesClient + _ = _6_p + _6_p = (_5_valueOrError3).Extract().(*m_AtomicPrimitives.AtomicPrimitivesClient) + var _7_plaintext _dafny.Map + _ = _7_plaintext + _7_plaintext = _dafny.NewMapBuilder().ToMap() + var _hi0 _dafny.Int = _dafny.IntOfUint32(((_1_encryptManifest).Dtor_plaintext()).Cardinality()) + _ = _hi0 + for _8_i := _dafny.Zero; _8_i.Cmp(_hi0) < 0; _8_i = _8_i.Plus(_dafny.One) { + var _let_tmp_rhs0 _dafny.Tuple = ((_1_encryptManifest).Dtor_plaintext()).Select((_8_i).Uint32()).(_dafny.Tuple) + _ = _let_tmp_rhs0 + var _9_name _dafny.Sequence = (*(_let_tmp_rhs0).IndexInt(0)).(_dafny.Sequence) + _ = _9_name + var _10_length int32 = (*(_let_tmp_rhs0).IndexInt(1)).(int32) + _ = _10_length + var _11_valueOrError4 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _11_valueOrError4 + var _out2 m_Wrappers.Result + _ = _out2 + _out2 = (_6_p).GenerateRandomBytes(m_AwsCryptographyPrimitivesTypes.Companion_GenerateRandomBytesInput_.Create_GenerateRandomBytesInput_(_10_length)) + _11_valueOrError4 = _out2 + if !(!((_11_valueOrError4).IsFailure())) { + panic("dafny/TestVectors/src/EsdkTestManifests.dfy(119,18): " + (_11_valueOrError4).String()) + } + var _12_data _dafny.Sequence + _ = _12_data + _12_data = (_11_valueOrError4).Extract().(_dafny.Sequence) + _dafny.Print((_dafny.Companion_Sequence_.Concatenate(_dafny.Companion_Sequence_.Concatenate((op).Dtor_decryptManifestOutput(), m_EsdkTestVectors.Companion_Default___.PlaintextPathRoot()), _9_name)).SetString()) + _dafny.Print((_dafny.SeqOfString("\n\n")).SetString()) + var _13_valueOrError5 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) + _ = _13_valueOrError5 + var _out3 m_Wrappers.Result + _ = _out3 + _out3 = m_EsdkTestVectors.Companion_Default___.WriteVectorsFile(_dafny.Companion_Sequence_.Concatenate(_dafny.Companion_Sequence_.Concatenate((op).Dtor_decryptManifestOutput(), m_EsdkTestVectors.Companion_Default___.PlaintextPathRoot()), _9_name), _12_data) + _13_valueOrError5 = _out3 + if (_13_valueOrError5).IsFailure() { + output = (_13_valueOrError5).PropagateFailure() + return output + } + var _14___v0 _dafny.Tuple + _ = _14___v0 + _14___v0 = (_13_valueOrError5).Extract().(_dafny.Tuple) + _7_plaintext = (_7_plaintext).Merge(_dafny.NewMapBuilder().ToMap().UpdateUnsafe(_9_name, _12_data)) + } + var _15_encryptTests_q m_Wrappers.Result + _ = _15_encryptTests_q + var _out4 m_Wrappers.Result + _ = _out4 + _out4 = Companion_Default___.ToEncryptTests((_1_encryptManifest).Dtor_keys(), _4_encryptVectors) + _15_encryptTests_q = _out4 + var _16_valueOrError6 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _16_valueOrError6 + _16_valueOrError6 = (_15_encryptTests_q).MapFailure(func(coer8 func(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) _dafny.Sequence) func(interface{}) interface{} { + return func(arg10 interface{}) interface{} { + return coer8(arg10.(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error)) + } + }(func(_17_e m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) _dafny.Sequence { + return func(_pat_let6_0 _dafny.Tuple) _dafny.Sequence { + return func(_18___v1 _dafny.Tuple) _dafny.Sequence { + return _dafny.SeqOfString("Cmm failure") + }(_pat_let6_0) + }(m_EsdkTestVectors.Companion_Default___.MplVectorPrintErr(_17_e)) + })) + if (_16_valueOrError6).IsFailure() { + output = (_16_valueOrError6).PropagateFailure() + return output + } + var _19_encryptTests _dafny.Sequence + _ = _19_encryptTests + _19_encryptTests = (_16_valueOrError6).Extract().(_dafny.Sequence) + var _20_valueOrError7 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _20_valueOrError7 + var _out5 m_Wrappers.Result + _ = _out5 + _out5 = Companion_Default___.TestEncrypts(_7_plaintext, (_1_encryptManifest).Dtor_keys(), _19_encryptTests) + _20_valueOrError7 = _out5 + if (_20_valueOrError7).IsFailure() { + output = (_20_valueOrError7).PropagateFailure() + return output + } + var _21_decryptVectors _dafny.Sequence + _ = _21_decryptVectors + _21_decryptVectors = (_20_valueOrError7).Extract().(_dafny.Sequence) + var _22_valueOrError8 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) + _ = _22_valueOrError8 + var _out6 m_Wrappers.Result + _ = _out6 + _out6 = m_WriteVectors.Companion_Default___.WriteDecryptManifest(op, (_1_encryptManifest).Dtor_keys(), _21_decryptVectors) + _22_valueOrError8 = _out6 + if (_22_valueOrError8).IsFailure() { + output = (_22_valueOrError8).PropagateFailure() + return output + } + var _23___v2 _dafny.Tuple + _ = _23___v2 + _23___v2 = (_22_valueOrError8).Extract().(_dafny.Tuple) + output = m_Wrappers.Companion_Result_.Create_Success_(_dafny.TupleOf()) + return output +} +func (_static *CompanionStruct_Default___) TestEncryptVector_q(vector m_EsdkTestVectors.EsdkEncryptTestVector) bool { + return (true) && (!(((vector).Dtor_frameLength()).Is_Some()) || (m_AwsCryptographyEncryptionSdkTypes.Companion_Default___.IsValid__FrameLength(((vector).Dtor_frameLength()).Dtor_value().(int64)))) +} +func (_static *CompanionStruct_Default___) ToEncryptTests(keys *m_KeyVectors.KeyVectorsClient, vectors _dafny.Sequence) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = output + var _0_encryptTests _dafny.Sequence + _ = _0_encryptTests + _0_encryptTests = _dafny.SeqOf() + var _hi0 _dafny.Int = _dafny.IntOfUint32((vectors).Cardinality()) + _ = _hi0 + for _1_i := _dafny.Zero; _1_i.Cmp(_hi0) < 0; _1_i = _1_i.Plus(_dafny.One) { + var _2_valueOrError0 m_Wrappers.Result = m_Wrappers.Result{} + _ = _2_valueOrError0 + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = m_EsdkTestVectors.Companion_Default___.EncryptVectorToEncryptTest(keys, (vectors).Select((_1_i).Uint32()).(m_EsdkTestVectors.EsdkEncryptTestVector)) + _2_valueOrError0 = _out0 + if (_2_valueOrError0).IsFailure() { + output = (_2_valueOrError0).PropagateFailure() + return output + } + var _3_test m_EsdkTestVectors.EncryptTest + _ = _3_test + _3_test = (_2_valueOrError0).Extract().(m_EsdkTestVectors.EncryptTest) + _0_encryptTests = _dafny.Companion_Sequence_.Concatenate(_0_encryptTests, _dafny.SeqOf(_3_test)) + } + output = m_Wrappers.Companion_Result_.Create_Success_(_0_encryptTests) + return output + return output +} +func (_static *CompanionStruct_Default___) TestEncrypts(plaintexts _dafny.Map, keys *m_KeyVectors.KeyVectorsClient, tests _dafny.Sequence) m_Wrappers.Result { + var manifest m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = manifest + _dafny.Print((_dafny.SeqOfString("\n=================== Starting ")).SetString()) + _dafny.Print(_dafny.IntOfUint32((tests).Cardinality())) + _dafny.Print((_dafny.SeqOfString(" Encrypt Tests =================== \n\n")).SetString()) + var _0_hasFailure bool + _ = _0_hasFailure + _0_hasFailure = false + var _1_decryptVectors _dafny.Sequence + _ = _1_decryptVectors + _1_decryptVectors = _dafny.SeqOf() + var _2_skipped _dafny.Sequence + _ = _2_skipped + _2_skipped = _dafny.SeqOf() + var _hi0 _dafny.Int = _dafny.IntOfUint32((tests).Cardinality()) + _ = _hi0 + for _3_i := _dafny.Zero; _3_i.Cmp(_hi0) < 0; _3_i = _3_i.Plus(_dafny.One) { + var _4_test m_EsdkTestVectors.EncryptTest + _ = _4_test + _4_test = (tests).Select((_3_i).Uint32()).(m_EsdkTestVectors.EncryptTest) + var _5_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _5_valueOrError0 + _5_valueOrError0 = m_Wrappers.Companion_Default___.Need((((_4_test).Dtor_vector()).Dtor_id()).Is_Some(), _dafny.SeqOfString("Vector is missing uuid")) + if (_5_valueOrError0).IsFailure() { + manifest = (_5_valueOrError0).PropagateFailure() + return manifest + } + if Companion_Default___.TestEncryptVector_q((_4_test).Dtor_vector()) { + var _6_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _6_valueOrError1 + _6_valueOrError1 = m_Wrappers.Companion_Default___.Need(((((_4_test).Dtor_vector()).Dtor_algorithmSuiteId()).Is_Some()) && ((((((_4_test).Dtor_vector()).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)).Dtor_id()).Is_ESDK()), _dafny.SeqOfString("Vector is using an algorithm suite other than ESDK")) + if (_6_valueOrError1).IsFailure() { + manifest = (_6_valueOrError1).PropagateFailure() + return manifest + } + var _7_valueOrError2 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(m_EsdkTestVectors.Companion_EncryptTestOutput_.Default()) + _ = _7_valueOrError2 + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = m_EsdkTestVectors.Companion_Default___.TestEncrypt(plaintexts, keys, _4_test) + _7_valueOrError2 = _out0 + if (_7_valueOrError2).IsFailure() { + manifest = (_7_valueOrError2).PropagateFailure() + return manifest + } + var _8_pass m_EsdkTestVectors.EncryptTestOutput + _ = _8_pass + _8_pass = (_7_valueOrError2).Extract().(m_EsdkTestVectors.EncryptTestOutput) + if !((_8_pass).Dtor_output()) { + _0_hasFailure = true + } else if ((_8_pass).Dtor_vector()).Is_Some() { + _1_decryptVectors = _dafny.Companion_Sequence_.Concatenate(_1_decryptVectors, _dafny.SeqOf(((_8_pass).Dtor_vector()).Dtor_value().(m_EsdkTestVectors.EsdkDecryptTestVector))) + } + } else { + _2_skipped = _dafny.Companion_Sequence_.Concatenate(_2_skipped, _dafny.SeqOf(_dafny.Companion_Sequence_.Concatenate((((_4_test).Dtor_vector()).Dtor_id()).Dtor_value().(_dafny.Sequence), _dafny.SeqOfString("\n")))) + _dafny.Print((_dafny.SeqOfString("\nSKIP===> ")).SetString()) + _dafny.Print(((((_4_test).Dtor_vector()).Dtor_id()).Dtor_value().(_dafny.Sequence)).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + } + } + _dafny.Print((_dafny.SeqOfString("\n=================== Completed ")).SetString()) + _dafny.Print(_dafny.IntOfUint32((tests).Cardinality())) + _dafny.Print((_dafny.SeqOfString(" Encrypt Tests =================== \n\n")).SetString()) + if !(!(_0_hasFailure)) { + panic("dafny/TestVectors/src/EsdkTestManifests.dfy(215,4): " + (_dafny.SeqOfString("expectation violation")).String()) + } + manifest = m_Wrappers.Companion_Result_.Create_Success_(_1_decryptVectors) + return manifest +} +func (_static *CompanionStruct_Default___) GetManifest(manifestPath _dafny.Sequence, manifestFileName _dafny.Sequence) m_Wrappers.Result { + var manifestData m_Wrappers.Result = m_Wrappers.Result{} + _ = manifestData + var _0_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _0_valueOrError0 + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = m_FileIO.Companion_Default___.ReadBytesFromFile(_dafny.Companion_Sequence_.Concatenate(manifestPath, manifestFileName)) + _0_valueOrError0 = _out0 + if (_0_valueOrError0).IsFailure() { + manifestData = (_0_valueOrError0).PropagateFailure() + return manifestData + } + var _1_decryptManifestBv _dafny.Sequence + _ = _1_decryptManifestBv + _1_decryptManifestBv = (_0_valueOrError0).Extract().(_dafny.Sequence) + var _2_decryptManifestBytes _dafny.Sequence + _ = _2_decryptManifestBytes + _2_decryptManifestBytes = m_JSONHelpers.Companion_Default___.BvToBytes(_1_decryptManifestBv) + var _3_valueOrError1 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(m_JSON_Values.Companion_JSON_.Default()) + _ = _3_valueOrError1 + _3_valueOrError1 = (m_JSON_API.Companion_Default___.Deserialize(_2_decryptManifestBytes)).MapFailure(func(coer9 func(m_JSON_Errors.DeserializationError) _dafny.Sequence) func(interface{}) interface{} { + return func(arg11 interface{}) interface{} { + return coer9(arg11.(m_JSON_Errors.DeserializationError)) + } + }(func(_4_e m_JSON_Errors.DeserializationError) _dafny.Sequence { + return (_4_e).ToString() + })) + if (_3_valueOrError1).IsFailure() { + manifestData = (_3_valueOrError1).PropagateFailure() + return manifestData + } + var _5_manifestJson m_JSON_Values.JSON + _ = _5_manifestJson + _5_manifestJson = (_3_valueOrError1).Extract().(m_JSON_Values.JSON) + var _6_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _6_valueOrError2 + _6_valueOrError2 = m_Wrappers.Companion_Default___.Need((_5_manifestJson).Is_Object(), _dafny.SeqOfString("Not a JSON object")) + if (_6_valueOrError2).IsFailure() { + manifestData = (_6_valueOrError2).PropagateFailure() + return manifestData + } + var _7_valueOrError3 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _7_valueOrError3 + _7_valueOrError3 = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("manifest"), (_5_manifestJson).Dtor_obj()) + if (_7_valueOrError3).IsFailure() { + manifestData = (_7_valueOrError3).PropagateFailure() + return manifestData + } + var _8_manifest _dafny.Sequence + _ = _8_manifest + _8_manifest = (_7_valueOrError3).Extract().(_dafny.Sequence) + var _9_valueOrError4 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.Zero) + _ = _9_valueOrError4 + _9_valueOrError4 = m_JSONHelpers.Companion_Default___.GetNat(_dafny.SeqOfString("version"), _8_manifest) + if (_9_valueOrError4).IsFailure() { + manifestData = (_9_valueOrError4).PropagateFailure() + return manifestData + } + var _10_version _dafny.Int + _ = _10_version + _10_version = (_9_valueOrError4).Extract().(_dafny.Int) + var _11_valueOrError5 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq.SetString()) + _ = _11_valueOrError5 + _11_valueOrError5 = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("type"), _8_manifest) + if (_11_valueOrError5).IsFailure() { + manifestData = (_11_valueOrError5).PropagateFailure() + return manifestData + } + var _12_typ _dafny.Sequence + _ = _12_typ + _12_typ = (_11_valueOrError5).Extract().(_dafny.Sequence) + var _13_valueOrError6 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq.SetString()) + _ = _13_valueOrError6 + _13_valueOrError6 = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("keys"), (_5_manifestJson).Dtor_obj()) + if (_13_valueOrError6).IsFailure() { + manifestData = (_13_valueOrError6).PropagateFailure() + return manifestData + } + var _14_keyManifestUri _dafny.Sequence + _ = _14_keyManifestUri + _14_keyManifestUri = (_13_valueOrError6).Extract().(_dafny.Sequence) + var _15_valueOrError7 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _15_valueOrError7 + _15_valueOrError7 = m_Wrappers.Companion_Default___.Need(_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _14_keyManifestUri), _dafny.SeqOfString("Unexpected URI prefix")) + if (_15_valueOrError7).IsFailure() { + manifestData = (_15_valueOrError7).PropagateFailure() + return manifestData + } + var _16_keyManifestPath _dafny.Sequence + _ = _16_keyManifestPath + _16_keyManifestPath = _dafny.Companion_Sequence_.Concatenate(manifestPath, (_14_keyManifestUri).Drop(7)) + var _17_valueOrError8 m_Wrappers.Result = m_Wrappers.Result{} + _ = _17_valueOrError8 + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = m_KeyVectors.Companion_Default___.KeyVectors(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_KeyVectorsConfig_.Create_KeyVectorsConfig_(_16_keyManifestPath)) + _17_valueOrError8 = _out1 + if !(!((_17_valueOrError8).IsFailure())) { + panic("dafny/TestVectors/src/EsdkTestManifests.dfy(263,16): " + (_17_valueOrError8).String()) + } + var _18_keys *m_KeyVectors.KeyVectorsClient + _ = _18_keys + _18_keys = (_17_valueOrError8).Extract().(*m_KeyVectors.KeyVectorsClient) + var _19_valueOrError9 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _19_valueOrError9 + _19_valueOrError9 = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("tests"), (_5_manifestJson).Dtor_obj()) + if (_19_valueOrError9).IsFailure() { + manifestData = (_19_valueOrError9).PropagateFailure() + return manifestData + } + var _20_jsonTests _dafny.Sequence + _ = _20_jsonTests + _20_jsonTests = (_19_valueOrError9).Extract().(_dafny.Sequence) + var _source0 _dafny.Sequence = _12_typ + _ = _source0 + { + { + if (_source0).Equals(_dafny.SeqOfString("awses-decrypt")) { + var _21_valueOrError10 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _21_valueOrError10 + _21_valueOrError10 = m_Wrappers.Companion_Default___.Need(m_EsdkTestVectors.Companion_Default___.SupportedDecryptVersion_q(_10_version), _dafny.SeqOfString("Unsupported manifest version")) + if (_21_valueOrError10).IsFailure() { + manifestData = (_21_valueOrError10).PropagateFailure() + return manifestData + } + var _22_valueOrError11 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(m_JSON_Values.Companion_JSON_.Default()) + _ = _22_valueOrError11 + _22_valueOrError11 = m_JSONHelpers.Companion_Default___.Get(_dafny.SeqOfString("client"), (_5_manifestJson).Dtor_obj()) + if (_22_valueOrError11).IsFailure() { + manifestData = (_22_valueOrError11).PropagateFailure() + return manifestData + } + var _23_client m_JSON_Values.JSON + _ = _23_client + _23_client = (_22_valueOrError11).Extract().(m_JSON_Values.JSON) + manifestData = m_Wrappers.Companion_Result_.Create_Success_(Companion_ManifestData_.Create_DecryptManifest_(_10_version, _18_keys, _23_client, _20_jsonTests)) + goto Lmatch0 + } + } + { + if (_source0).Equals(_dafny.SeqOfString("awses-encrypt")) { + var _24_valueOrError12 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _24_valueOrError12 + _24_valueOrError12 = m_Wrappers.Companion_Default___.Need(m_EsdkTestVectors.Companion_Default___.SupportedEncryptVersion_q(_10_version), _dafny.SeqOfString("Unsupported manifest version")) + if (_24_valueOrError12).IsFailure() { + manifestData = (_24_valueOrError12).PropagateFailure() + return manifestData + } + var _25_valueOrError13 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _25_valueOrError13 + _25_valueOrError13 = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("plaintexts"), (_5_manifestJson).Dtor_obj()) + if (_25_valueOrError13).IsFailure() { + manifestData = (_25_valueOrError13).PropagateFailure() + return manifestData + } + var _26_plaintextsJson _dafny.Sequence + _ = _26_plaintextsJson + _26_plaintextsJson = (_25_valueOrError13).Extract().(_dafny.Sequence) + var _27_valueOrError15 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _27_valueOrError15 + _27_valueOrError15 = m_Seq.Companion_Default___.MapWithResult(func(coer10 func(_dafny.Tuple) m_Wrappers.Result) func(interface{}) m_Wrappers.Result { + return func(arg12 interface{}) m_Wrappers.Result { + return coer10(arg12.(_dafny.Tuple)) + } + }(func(_28_obj _dafny.Tuple) m_Wrappers.Result { + return func(_pat_let7_0 m_Wrappers.Outcome) m_Wrappers.Result { + return func(_29_valueOrError14 m_Wrappers.Outcome) m_Wrappers.Result { + return (func() m_Wrappers.Result { + if (_29_valueOrError14).IsFailure() { + return (_29_valueOrError14).PropagateFailure() + } + return m_Wrappers.Companion_Result_.Create_Success_(_dafny.TupleOf((*(_28_obj).IndexInt(0)).(_dafny.Sequence), ((((*(_28_obj).IndexInt(1)).(m_JSON_Values.JSON)).Dtor_num()).Dtor_n()).Int32())) + })() + }(_pat_let7_0) + }(m_Wrappers.Companion_Default___.Need((((*(_28_obj).IndexInt(1)).(m_JSON_Values.JSON)).Is_Number()) && ((((((*(_28_obj).IndexInt(1)).(m_JSON_Values.JSON)).Dtor_num()).Dtor_n()).Sign() == 1) && (((((*(_28_obj).IndexInt(1)).(m_JSON_Values.JSON)).Dtor_num()).Dtor_n()).Cmp(_dafny.IntOfInt32(m_BoundedInts.Companion_Default___.INT32__MAX())) <= 0)), _dafny.SeqOfString("Size is not a natural number."))) + }), _26_plaintextsJson) + if (_27_valueOrError15).IsFailure() { + manifestData = (_27_valueOrError15).PropagateFailure() + return manifestData + } + var _30_plaintextsLength _dafny.Sequence + _ = _30_plaintextsLength + _30_plaintextsLength = (_27_valueOrError15).Extract().(_dafny.Sequence) + manifestData = m_Wrappers.Companion_Result_.Create_Success_(Companion_ManifestData_.Create_EncryptManifest_(_10_version, _18_keys, _30_plaintextsLength, _20_jsonTests)) + goto Lmatch0 + } + } + { + manifestData = m_Wrappers.Companion_Result_.Create_Failure_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOfString("Unsupported manifest type:"), _12_typ)) + } + goto Lmatch0 + } +Lmatch0: + return manifestData +} + +// End of class Default__ + +// Definition of datatype ManifestData +type ManifestData struct { + Data_ManifestData_ +} + +func (_this ManifestData) Get_() Data_ManifestData_ { + return _this.Data_ManifestData_ +} + +type Data_ManifestData_ interface { + isManifestData() +} + +type CompanionStruct_ManifestData_ struct { +} + +var Companion_ManifestData_ = CompanionStruct_ManifestData_{} + +type ManifestData_DecryptManifest struct { + Version _dafny.Int + Keys *m_KeyVectors.KeyVectorsClient + Client m_JSON_Values.JSON + JsonTests _dafny.Sequence +} + +func (ManifestData_DecryptManifest) isManifestData() {} + +func (CompanionStruct_ManifestData_) Create_DecryptManifest_(Version _dafny.Int, Keys *m_KeyVectors.KeyVectorsClient, Client m_JSON_Values.JSON, JsonTests _dafny.Sequence) ManifestData { + return ManifestData{ManifestData_DecryptManifest{Version, Keys, Client, JsonTests}} +} + +func (_this ManifestData) Is_DecryptManifest() bool { + _, ok := _this.Get_().(ManifestData_DecryptManifest) + return ok +} + +type ManifestData_EncryptManifest struct { + Version _dafny.Int + Keys *m_KeyVectors.KeyVectorsClient + Plaintext _dafny.Sequence + JsonTests _dafny.Sequence +} + +func (ManifestData_EncryptManifest) isManifestData() {} + +func (CompanionStruct_ManifestData_) Create_EncryptManifest_(Version _dafny.Int, Keys *m_KeyVectors.KeyVectorsClient, Plaintext _dafny.Sequence, JsonTests _dafny.Sequence) ManifestData { + return ManifestData{ManifestData_EncryptManifest{Version, Keys, Plaintext, JsonTests}} +} + +func (_this ManifestData) Is_EncryptManifest() bool { + _, ok := _this.Get_().(ManifestData_EncryptManifest) + return ok +} + +func (CompanionStruct_ManifestData_) Default() ManifestData { + return Companion_ManifestData_.Create_DecryptManifest_(_dafny.Zero, (*m_KeyVectors.KeyVectorsClient)(nil), m_JSON_Values.Companion_JSON_.Default(), _dafny.EmptySeq) +} + +func (_this ManifestData) Dtor_version() _dafny.Int { + switch data := _this.Get_().(type) { + case ManifestData_DecryptManifest: + return data.Version + default: + return data.(ManifestData_EncryptManifest).Version + } +} + +func (_this ManifestData) Dtor_keys() *m_KeyVectors.KeyVectorsClient { + switch data := _this.Get_().(type) { + case ManifestData_DecryptManifest: + return data.Keys + default: + return data.(ManifestData_EncryptManifest).Keys + } +} + +func (_this ManifestData) Dtor_client() m_JSON_Values.JSON { + return _this.Get_().(ManifestData_DecryptManifest).Client +} + +func (_this ManifestData) Dtor_jsonTests() _dafny.Sequence { + switch data := _this.Get_().(type) { + case ManifestData_DecryptManifest: + return data.JsonTests + default: + return data.(ManifestData_EncryptManifest).JsonTests + } +} + +func (_this ManifestData) Dtor_plaintext() _dafny.Sequence { + return _this.Get_().(ManifestData_EncryptManifest).Plaintext +} + +func (_this ManifestData) String() string { + switch data := _this.Get_().(type) { + case nil: + return "null" + case ManifestData_DecryptManifest: + { + return "EsdkTestManifests.ManifestData.DecryptManifest" + "(" + _dafny.String(data.Version) + ", " + _dafny.String(data.Keys) + ", " + _dafny.String(data.Client) + ", " + _dafny.String(data.JsonTests) + ")" + } + case ManifestData_EncryptManifest: + { + return "EsdkTestManifests.ManifestData.EncryptManifest" + "(" + _dafny.String(data.Version) + ", " + _dafny.String(data.Keys) + ", " + _dafny.String(data.Plaintext) + ", " + _dafny.String(data.JsonTests) + ")" + } + default: + { + return "" + } + } +} + +func (_this ManifestData) Equals(other ManifestData) bool { + switch data1 := _this.Get_().(type) { + case ManifestData_DecryptManifest: + { + data2, ok := other.Get_().(ManifestData_DecryptManifest) + return ok && data1.Version.Cmp(data2.Version) == 0 && data1.Keys == data2.Keys && data1.Client.Equals(data2.Client) && data1.JsonTests.Equals(data2.JsonTests) + } + case ManifestData_EncryptManifest: + { + data2, ok := other.Get_().(ManifestData_EncryptManifest) + return ok && data1.Version.Cmp(data2.Version) == 0 && data1.Keys == data2.Keys && data1.Plaintext.Equals(data2.Plaintext) && data1.JsonTests.Equals(data2.JsonTests) + } + default: + { + return false // unexpected + } + } +} + +func (_this ManifestData) EqualsGeneric(other interface{}) bool { + typed, ok := other.(ManifestData) + return ok && _this.Equals(typed) +} + +func Type_ManifestData_() _dafny.TypeDescriptor { + return type_ManifestData_{} +} + +type type_ManifestData_ struct { +} + +func (_this type_ManifestData_) Default() interface{} { + return Companion_ManifestData_.Default() +} + +func (_this type_ManifestData_) String() string { + return "EsdkTestManifests.ManifestData" +} +func (_this ManifestData) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = ManifestData{} + +// End of datatype ManifestData diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestVectors/EsdkTestVectors.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestVectors/EsdkTestVectors.go new file mode 100644 index 000000000..dc2ffa156 --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestVectors/EsdkTestVectors.go @@ -0,0 +1,2134 @@ +// Package EsdkTestVectors +// Dafny module EsdkTestVectors compiled into Go + +package EsdkTestVectors + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ +var _ m_WrappedESDK.Dummy__ +var _ m_EsdkManifestOptions.Dummy__ + +type Dummy__ struct{} + +// Definition of class Default__ +type Default__ struct { + dummy byte +} + +func New_Default___() *Default__ { + _this := Default__{} + + return &_this +} + +type CompanionStruct_Default___ struct { +} + +var Companion_Default___ = CompanionStruct_Default___{} + +func (_this *Default__) Equals(other *Default__) bool { + return _this == other +} + +func (_this *Default__) EqualsGeneric(x interface{}) bool { + other, ok := x.(*Default__) + return ok && _this.Equals(other) +} + +func (*Default__) String() string { + return "EsdkTestVectors.Default__" +} +func (_this *Default__) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = &Default__{} + +func (_static *CompanionStruct_Default___) SupportedGenerateManifestVersion_q(v _dafny.Int) bool { + return (false) || ((v).Cmp(_dafny.IntOfInt64(4)) == 0) +} +func (_static *CompanionStruct_Default___) SupportedEncryptVersion_q(v _dafny.Int) bool { + return (((v).Cmp(_dafny.One) == 0) || ((v).Cmp(_dafny.IntOfInt64(4)) == 0)) || ((v).Cmp(_dafny.IntOfInt64(5)) == 0) +} +func (_static *CompanionStruct_Default___) SupportedDecryptVersion_q(v _dafny.Int) bool { + return (((v).Cmp(_dafny.One) == 0) || ((v).Cmp(_dafny.IntOfInt64(2)) == 0)) || ((v).Cmp(_dafny.IntOfInt64(3)) == 0) +} +func (_static *CompanionStruct_Default___) TestDecrypt(keys *m_KeyVectors.KeyVectorsClient, vector EsdkDecryptTestVector) bool { + var output bool = false + _ = output + if ((vector).Dtor_algorithmSuiteId()).Is_Some() { + var _0_id _dafny.Sequence + _ = _0_id + _0_id = m_AllAlgorithmSuites.Companion_Default___.ToHex(((vector).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) + _dafny.Print((_dafny.SeqOfString("\nTEST-DECRYPT===> ")).SetString()) + _dafny.Print(((vector).Dtor_id()).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + _dafny.Print((_0_id).SetString()) + _dafny.Print((_dafny.SeqOfString(" ")).SetString()) + _dafny.Print(((vector).Dtor_description()).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + } else { + _dafny.Print((_dafny.SeqOfString("\nTEST-DECRYPT===> ")).SetString()) + _dafny.Print(((vector).Dtor_id()).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + _dafny.Print(((vector).Dtor_description()).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + } + var _1_test_q m_Wrappers.Result + _ = _1_test_q + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = Companion_Default___.DecryptVectorToDecryptTest(keys, vector) + _1_test_q = _out0 + if (_1_test_q).Is_Failure() { + _dafny.Print((_1_test_q).Dtor_error().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error)) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + _dafny.Print((_dafny.SeqOfString("\nFAILED! <-----------\n")).SetString()) + output = false + return output + } + var _2_test DecryptTest + _ = _2_test + _2_test = (_1_test_q).Dtor_value().(DecryptTest) + var _3_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _3_valueOrError0 + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = Companion_Default___.ReadVectorsFile(_dafny.Companion_Sequence_.Concatenate(((_2_test).Dtor_vector()).Dtor_manifestPath(), ((_2_test).Dtor_vector()).Dtor_ciphertextPath())) + _3_valueOrError0 = _out1 + if !(!((_3_valueOrError0).IsFailure())) { + panic("dafny/TestVectors/src/EsdkTestVectors.dfy(202,22): " + (_3_valueOrError0).String()) + } + var _4_ciphertext _dafny.Sequence + _ = _4_ciphertext + _4_ciphertext = (_3_valueOrError0).Extract().(_dafny.Sequence) + var _5_plaintext _dafny.Sequence = _dafny.EmptySeq + _ = _5_plaintext + if (((_2_test).Dtor_vector()).Is_PositiveDecryptTestVector()) || (((_2_test).Dtor_vector()).Is_PositiveV1OrV2DecryptTestVector()) { + var _6_valueOrError1 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _6_valueOrError1 + var _out2 m_Wrappers.Result + _ = _out2 + _out2 = Companion_Default___.ReadVectorsFile(_dafny.Companion_Sequence_.Concatenate(((_2_test).Dtor_vector()).Dtor_manifestPath(), ((_2_test).Dtor_vector()).Dtor_plaintextPath())) + _6_valueOrError1 = _out2 + if !(!((_6_valueOrError1).IsFailure())) { + panic("dafny/TestVectors/src/EsdkTestVectors.dfy(205,19): " + (_6_valueOrError1).String()) + } + _5_plaintext = (_6_valueOrError1).Extract().(_dafny.Sequence) + } + var _7_input m_AwsCryptographyEncryptionSdkTypes.DecryptInput + _ = _7_input + _7_input = m_AwsCryptographyEncryptionSdkTypes.Companion_DecryptInput_.Create_DecryptInput_(_4_ciphertext, m_Wrappers.Companion_Option_.Create_Some_((_2_test).Dtor_cmm()), m_Wrappers.Companion_Option_.Create_None_(), ((_2_test).Dtor_vector()).Dtor_reproducedEncryptionContext()) + var _8_result m_Wrappers.Result + _ = _8_result + var _out3 m_Wrappers.Result + _ = _out3 + _out3 = ((_2_test).Dtor_client()).Decrypt(_7_input) + _8_result = _out3 + var _source0 EsdkDecryptTestVector = (_2_test).Dtor_vector() + _ = _source0 + { + { + if _source0.Is_PositiveDecryptTestVector() { + output = ((_8_result).Is_Success()) && (_dafny.Companion_Sequence_.Equal(((_8_result).Dtor_value().(m_AwsCryptographyEncryptionSdkTypes.DecryptOutput)).Dtor_plaintext(), _5_plaintext)) + goto Lmatch0 + } + } + { + if _source0.Is_NegativeDecryptTestVector() { + output = (true) && ((_8_result).Is_Failure()) + goto Lmatch0 + } + } + { + output = ((_8_result).Is_Success()) && (_dafny.Companion_Sequence_.Equal(((_8_result).Dtor_value().(m_AwsCryptographyEncryptionSdkTypes.DecryptOutput)).Dtor_plaintext(), _5_plaintext)) + } + goto Lmatch0 + } +Lmatch0: + if !(output) { + if ((((_2_test).Dtor_vector()).Is_PositiveDecryptTestVector()) || (((_2_test).Dtor_vector()).Is_PositiveV1OrV2DecryptTestVector())) && ((_8_result).Is_Failure()) { + _dafny.Print((_8_result).Dtor_error().(m_AwsCryptographyEncryptionSdkTypes.Error)) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + if (((_8_result).Dtor_error().(m_AwsCryptographyEncryptionSdkTypes.Error)).Is_AwsCryptographyMaterialProviders()) && ((((_8_result).Dtor_error().(m_AwsCryptographyEncryptionSdkTypes.Error)).Dtor_AwsCryptographyMaterialProviders()).Is_CollectionOfErrors()) { + _dafny.Print((_dafny.SeqOfString("list:")).SetString()) + _dafny.Print((((_8_result).Dtor_error().(m_AwsCryptographyEncryptionSdkTypes.Error)).Dtor_AwsCryptographyMaterialProviders()).Dtor_list()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + } + } + _dafny.Print((_dafny.SeqOfString("\nFAILED! <-----------\n")).SetString()) + } + return output +} +func (_static *CompanionStruct_Default___) DecryptVectorToDecryptTest(keys *m_KeyVectors.KeyVectorsClient, vector EsdkDecryptTestVector) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Result{} + _ = output + var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _0_valueOrError0 + _0_valueOrError0 = m_Wrappers.Companion_Default___.Need(!((vector).Is_NegativeDecryptTestVector()), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_KeyVectorException_(_dafny.SeqOfString("Negative Test Vectors not supported at this time"))) + if (_0_valueOrError0).IsFailure() { + output = (_0_valueOrError0).PropagateFailure() + return output + } + var _1_valueOrError1 m_Wrappers.Result = m_Wrappers.Result{} + _ = _1_valueOrError1 + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = (keys).CreateWrappedTestVectorCmm(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_TestVectorCmmInput_.Create_TestVectorCmmInput_((vector).Dtor_decryptDescriptions(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_CmmOperation_.Create_DECRYPT_())) + _1_valueOrError1 = _out0 + if (_1_valueOrError1).IsFailure() { + output = (_1_valueOrError1).PropagateFailure() + return output + } + var _2_cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager + _ = _2_cmm + _2_cmm = m_AwsCryptographyMaterialProvidersTypes.Companion_ICryptographicMaterialsManager_.CastTo_((_1_valueOrError1).Extract()) + var _3_commitmentPolicy m_AwsCryptographyMaterialProvidersTypes.CommitmentPolicy + _ = _3_commitmentPolicy + if ((vector).Dtor_algorithmSuiteId()).Is_Some() { + _3_commitmentPolicy = m_AllAlgorithmSuites.Companion_Default___.GetCompatibleCommitmentPolicy(((vector).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) + } else { + _3_commitmentPolicy = m_AwsCryptographyMaterialProvidersTypes.Companion_CommitmentPolicy_.Create_ESDK_(m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_()) + } + var _4_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _4_valueOrError2 + _4_valueOrError2 = m_Wrappers.Companion_Default___.Need((_3_commitmentPolicy).Is_ESDK(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_KeyVectorException_(_dafny.SeqOfString("Compatible commitment policy is not for ESDK"))) + if (_4_valueOrError2).IsFailure() { + output = (_4_valueOrError2).PropagateFailure() + return output + } + var _5_config m_AwsCryptographyEncryptionSdkTypes.AwsEncryptionSdkConfig + _ = _5_config + _5_config = m_WrappedESDK.Companion_Default___.WrappedAwsEncryptionSdkConfigWithSuppliedCommitment((_3_commitmentPolicy).Dtor_ESDK()) + var _6_valueOrError3 m_Wrappers.Result = m_Wrappers.Result{} + _ = _6_valueOrError3 + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = m_WrappedESDK.Companion_Default___.WrappedESDK(_5_config) + _6_valueOrError3 = _out1 + if !(!((_6_valueOrError3).IsFailure())) { + panic("dafny/TestVectors/src/EsdkTestVectors.dfy(281,18): " + (_6_valueOrError3).String()) + } + var _7_client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient + _ = _7_client + _7_client = m_AwsCryptographyEncryptionSdkTypes.Companion_IAwsEncryptionSdkClient_.CastTo_((_6_valueOrError3).Extract()) + var _8_test DecryptTest + _ = _8_test + _8_test = Companion_DecryptTest_.Create_DecryptTest_(_2_cmm, _7_client, vector) + output = m_Wrappers.Companion_Result_.Create_Success_(_8_test) + return output +} +func (_static *CompanionStruct_Default___) TestEncrypt(plaintexts _dafny.Map, keys *m_KeyVectors.KeyVectorsClient, test EncryptTest) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(Companion_EncryptTestOutput_.Default()) + _ = output + var _0_id _dafny.Sequence + _ = _0_id + _0_id = m_AllAlgorithmSuites.Companion_Default___.ToHex((((test).Dtor_vector()).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) + _dafny.Print((_dafny.SeqOfString("\nTEST-ENCRYPT===> ")).SetString()) + _dafny.Print(((((test).Dtor_vector()).Dtor_id()).Dtor_value().(_dafny.Sequence)).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + _dafny.Print((_0_id).SetString()) + _dafny.Print((_dafny.SeqOfString(" ")).SetString()) + _dafny.Print((((test).Dtor_vector()).Dtor_description()).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + var _1_vector EsdkEncryptTestVector + _ = _1_vector + _1_vector = (test).Dtor_vector() + if !((plaintexts).Contains(((test).Dtor_vector()).Dtor_plaintextPath())) { + panic("dafny/TestVectors/src/EsdkTestVectors.dfy(324,4): " + (_dafny.SeqOfString("expectation violation")).String()) + } + var _2_plaintext _dafny.Sequence + _ = _2_plaintext + _2_plaintext = (plaintexts).Get(((test).Dtor_vector()).Dtor_plaintextPath()).(_dafny.Sequence) + var _3_frameLength m_Wrappers.Option + _ = _3_frameLength + _3_frameLength = (_1_vector).Dtor_frameLength() + var _4_input m_AwsCryptographyEncryptionSdkTypes.EncryptInput + _ = _4_input + _4_input = m_AwsCryptographyEncryptionSdkTypes.Companion_EncryptInput_.Create_EncryptInput_(_2_plaintext, ((test).Dtor_vector()).Dtor_encryptionContext(), m_Wrappers.Companion_Option_.Create_Some_((test).Dtor_cmm()), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_Some_((((((test).Dtor_vector()).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)).Dtor_id()).Dtor_ESDK()), _3_frameLength) + var _5_result m_Wrappers.Result + _ = _5_result + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = ((test).Dtor_client()).Encrypt(_4_input) + _5_result = _out0 + if ((_5_result).Is_Success()) && ((((test).Dtor_vector()).Is_PositiveEncryptTestVector()) || (((test).Dtor_vector()).Is_PositiveEncryptNegativeDecryptTestVector())) { + var _6_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(Companion_EsdkDecryptTestVector_.Default()) + _ = _6_valueOrError0 + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = Companion_Default___.EncryptTestToDecryptVector(test, (_5_result).Dtor_value().(m_AwsCryptographyEncryptionSdkTypes.EncryptOutput)) + _6_valueOrError0 = _out1 + if (_6_valueOrError0).IsFailure() { + output = (_6_valueOrError0).PropagateFailure() + return output + } + var _7_decryptVector EsdkDecryptTestVector + _ = _7_decryptVector + _7_decryptVector = (_6_valueOrError0).Extract().(EsdkDecryptTestVector) + output = m_Wrappers.Companion_Result_.Create_Success_(Companion_EncryptTestOutput_.Create_EncryptTestOutput_(true, m_Wrappers.Companion_Option_.Create_Some_(_7_decryptVector))) + } else if ((_5_result).Is_Failure()) && (((test).Dtor_vector()).Is_NegativeEncryptTestVector()) { + output = m_Wrappers.Companion_Result_.Create_Success_(Companion_EncryptTestOutput_.Create_EncryptTestOutput_(true, m_Wrappers.Companion_Option_.Create_None_())) + } else { + output = m_Wrappers.Companion_Result_.Create_Success_(Companion_EncryptTestOutput_.Create_EncryptTestOutput_(false, m_Wrappers.Companion_Option_.Create_None_())) + if (!(((test).Dtor_vector()).Is_NegativeEncryptTestVector())) && ((_5_result).Is_Failure()) { + _dafny.Print((_5_result).Dtor_error().(m_AwsCryptographyEncryptionSdkTypes.Error)) + } + _dafny.Print((_dafny.SeqOfString("\nFAILED! <-----------\n")).SetString()) + } + return output +} +func (_static *CompanionStruct_Default___) EncryptVectorToEncryptTest(keys *m_KeyVectors.KeyVectorsClient, vector EsdkEncryptTestVector) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Result{} + _ = output + var _0_valueOrError0 m_Wrappers.Result = m_Wrappers.Result{} + _ = _0_valueOrError0 + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = (keys).CreateWrappedTestVectorCmm(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_TestVectorCmmInput_.Create_TestVectorCmmInput_((func() m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription { + if (vector).Is_PositiveEncryptTestVector() { + return (vector).Dtor_encryptDescriptions() + } + return (func() m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription { + if (vector).Is_PositiveEncryptNegativeDecryptTestVector() { + return (vector).Dtor_encryptDescriptions() + } + return (vector).Dtor_encryptDescriptions() + })() + })(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_CmmOperation_.Create_ENCRYPT_())) + _0_valueOrError0 = _out0 + if (_0_valueOrError0).IsFailure() { + output = (_0_valueOrError0).PropagateFailure() + return output + } + var _1_cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager + _ = _1_cmm + _1_cmm = m_AwsCryptographyMaterialProvidersTypes.Companion_ICryptographicMaterialsManager_.CastTo_((_0_valueOrError0).Extract()) + var _2_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _2_valueOrError1 + _2_valueOrError1 = m_Wrappers.Companion_Default___.Need(((vector).Dtor_algorithmSuiteId()).Is_Some(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_KeyVectorException_(_dafny.SeqOfString("Missing AlgorithmSuiteId in test vector"))) + if (_2_valueOrError1).IsFailure() { + output = (_2_valueOrError1).PropagateFailure() + return output + } + var _3_commitmentPolicy m_AwsCryptographyMaterialProvidersTypes.CommitmentPolicy + _ = _3_commitmentPolicy + _3_commitmentPolicy = m_AllAlgorithmSuites.Companion_Default___.GetCompatibleCommitmentPolicy(((vector).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) + var _4_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _4_valueOrError2 + _4_valueOrError2 = m_Wrappers.Companion_Default___.Need((_3_commitmentPolicy).Is_ESDK(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_KeyVectorException_(_dafny.SeqOfString("Compatible commitment policy is not for ESDK"))) + if (_4_valueOrError2).IsFailure() { + output = (_4_valueOrError2).PropagateFailure() + return output + } + var _5_config m_AwsCryptographyEncryptionSdkTypes.AwsEncryptionSdkConfig + _ = _5_config + _5_config = m_WrappedESDK.Companion_Default___.WrappedAwsEncryptionSdkConfigWithSuppliedCommitment((_3_commitmentPolicy).Dtor_ESDK()) + var _6_valueOrError3 m_Wrappers.Result = m_Wrappers.Result{} + _ = _6_valueOrError3 + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = m_WrappedESDK.Companion_Default___.WrappedESDK(_5_config) + _6_valueOrError3 = _out1 + if !(!((_6_valueOrError3).IsFailure())) { + panic("dafny/TestVectors/src/EsdkTestVectors.dfy(397,18): " + (_6_valueOrError3).String()) + } + var _7_client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient + _ = _7_client + _7_client = m_AwsCryptographyEncryptionSdkTypes.Companion_IAwsEncryptionSdkClient_.CastTo_((_6_valueOrError3).Extract()) + var _8_test EncryptTest + _ = _8_test + _8_test = Companion_EncryptTest_.Create_EncryptTest_(_1_cmm, _7_client, vector) + output = m_Wrappers.Companion_Result_.Create_Success_(_8_test) + return output +} +func (_static *CompanionStruct_Default___) EncryptTestToDecryptVector(test EncryptTest, result m_AwsCryptographyEncryptionSdkTypes.EncryptOutput) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(Companion_EsdkDecryptTestVector_.Default()) + _ = output + var _source0 EsdkEncryptTestVector = (test).Dtor_vector() + _ = _source0 + { + { + if _source0.Is_PositiveEncryptTestVector() { + output = m_Wrappers.Companion_Result_.Create_Success_(Companion_EsdkDecryptTestVector_.Create_PositiveDecryptTestVector_((((test).Dtor_vector()).Dtor_id()).Dtor_value().(_dafny.Sequence), _dafny.IntOfInt64(3), ((test).Dtor_vector()).Dtor_decryptManifestPath(), Companion_Default___.CiphertextPathPathRoot(), _dafny.Companion_Sequence_.Concatenate(Companion_Default___.PlaintextPathRoot(), ((test).Dtor_vector()).Dtor_plaintextPath()), ((test).Dtor_vector()).Dtor_reproducedEncryptionContext(), ((test).Dtor_vector()).Dtor_decryptDescriptions(), ((test).Dtor_vector()).Dtor_commitmentPolicy(), ((test).Dtor_vector()).Dtor_frameLength(), ((test).Dtor_vector()).Dtor_algorithmSuiteId(), ((test).Dtor_vector()).Dtor_description(), Companion_DecryptionMethod_.Create_OneShot_())) + goto Lmatch0 + } + } + { + output = m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Only postive tests supported")) + } + goto Lmatch0 + } +Lmatch0: + var _0_decryptManifestCiphertext _dafny.Sequence + _ = _0_decryptManifestCiphertext + _0_decryptManifestCiphertext = _dafny.Companion_Sequence_.Concatenate(_dafny.Companion_Sequence_.Concatenate(((test).Dtor_vector()).Dtor_decryptManifestPath(), Companion_Default___.CiphertextPathPathRoot()), (((test).Dtor_vector()).Dtor_id()).Dtor_value().(_dafny.Sequence)) + var _1_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) + _ = _1_valueOrError0 + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = Companion_Default___.WriteVectorsFile(_0_decryptManifestCiphertext, (result).Dtor_ciphertext()) + _1_valueOrError0 = _out0 + if !(!((_1_valueOrError0).IsFailure())) { + panic("dafny/TestVectors/src/EsdkTestVectors.dfy(439,13): " + (_1_valueOrError0).String()) + } + var _2___v52 _dafny.Tuple + _ = _2___v52 + _2___v52 = (_1_valueOrError0).Extract().(_dafny.Tuple) + return output +} +func (_static *CompanionStruct_Default___) MplPrintErr(e m_AwsCryptographyMaterialProvidersTypes.Error) _dafny.Tuple { + var _hresult _dafny.Tuple = _dafny.TupleOf() + _ = _hresult + _dafny.Print(e) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + _hresult = _dafny.TupleOf() + return _hresult + return _hresult +} +func (_static *CompanionStruct_Default___) MplVectorPrintErr(e m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) _dafny.Tuple { + var _hresult _dafny.Tuple = _dafny.TupleOf() + _ = _hresult + _dafny.Print(e) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + _hresult = _dafny.TupleOf() + return _hresult + return _hresult +} +func (_static *CompanionStruct_Default___) KeyDescriptionToCmm(keys *m_KeyVectors.KeyVectorsClient, keyDescriptions _dafny.Sequence) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Result{} + _ = output + var _0_keyringList _dafny.Sequence + _ = _0_keyringList + _0_keyringList = _dafny.SeqOf() + var _hi0 _dafny.Int = _dafny.IntOfUint32((keyDescriptions).Cardinality()) + _ = _hi0 + for _1_i := _dafny.Zero; _1_i.Cmp(_hi0) < 0; _1_i = _1_i.Plus(_dafny.One) { + var _2_keyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription + _ = _2_keyDescription + _2_keyDescription = (keyDescriptions).Select((_1_i).Uint32()).(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) + var _3_valueOrError0 m_Wrappers.Result = m_Wrappers.Result{} + _ = _3_valueOrError0 + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = (keys).CreateWrappedTestVectorKeyring(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_TestVectorKeyringInput_.Create_TestVectorKeyringInput_(_2_keyDescription)) + _3_valueOrError0 = _out0 + if (_3_valueOrError0).IsFailure() { + output = (_3_valueOrError0).PropagateFailure() + return output + } + var _4_keyring m_AwsCryptographyMaterialProvidersTypes.IKeyring + _ = _4_keyring + _4_keyring = m_AwsCryptographyMaterialProvidersTypes.Companion_IKeyring_.CastTo_((_3_valueOrError0).Extract()) + _0_keyringList = _dafny.Companion_Sequence_.Concatenate(_0_keyringList, _dafny.SeqOf(_4_keyring)) + } + var _5_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _5_valueOrError1 + _5_valueOrError1 = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((_0_keyringList).Cardinality())).Cmp(_dafny.One) == 0, m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_KeyVectorException_(_dafny.SeqOfString("Failed to create any keyrings"))) + if (_5_valueOrError1).IsFailure() { + output = (_5_valueOrError1).PropagateFailure() + return output + } + var _6_valueOrError2 m_Wrappers.Result = m_Wrappers.Result{} + _ = _6_valueOrError2 + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = m_WrappedMaterialProviders.Companion_Default___.WrappedMaterialProviders(m_WrappedMaterialProviders.Companion_Default___.WrappedDefaultMaterialProvidersConfig()) + _6_valueOrError2 = _out1 + if !(!((_6_valueOrError2).IsFailure())) { + panic("dafny/TestVectors/src/EsdkTestVectors.dfy(482,15): " + (_6_valueOrError2).String()) + } + var _7_mpl m_AwsCryptographyMaterialProvidersTypes.IAwsCryptographicMaterialProvidersClient + _ = _7_mpl + _7_mpl = m_AwsCryptographyMaterialProvidersTypes.Companion_IAwsCryptographicMaterialProvidersClient_.CastTo_((_6_valueOrError2).Extract()) + var _8_generatorKeyring m_AwsCryptographyMaterialProvidersTypes.IKeyring + _ = _8_generatorKeyring + _8_generatorKeyring = (_0_keyringList).Select(0).(m_AwsCryptographyMaterialProvidersTypes.IKeyring) + var _9_maybeMultiKeyring m_Wrappers.Result + _ = _9_maybeMultiKeyring + var _out2 m_Wrappers.Result + _ = _out2 + _out2 = (_7_mpl).CreateMultiKeyring(m_AwsCryptographyMaterialProvidersTypes.Companion_CreateMultiKeyringInput_.Create_CreateMultiKeyringInput_(m_Wrappers.Companion_Option_.Create_Some_(_8_generatorKeyring), (_0_keyringList).Drop(1))) + _9_maybeMultiKeyring = _out2 + var _10_valueOrError3 m_Wrappers.Result = m_Wrappers.Result{} + _ = _10_valueOrError3 + _10_valueOrError3 = (_9_maybeMultiKeyring).MapFailure(func(coer0 func(m_AwsCryptographyMaterialProvidersTypes.Error) m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) func(interface{}) interface{} { + return func(arg0 interface{}) interface{} { + return coer0(arg0.(m_AwsCryptographyMaterialProvidersTypes.Error)) + } + }(func(_11_e m_AwsCryptographyMaterialProvidersTypes.Error) m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error { + return m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_AwsCryptographyMaterialProviders_(_11_e) + })) + if (_10_valueOrError3).IsFailure() { + output = (_10_valueOrError3).PropagateFailure() + return output + } + var _12_keyring m_AwsCryptographyMaterialProvidersTypes.IKeyring + _ = _12_keyring + _12_keyring = m_AwsCryptographyMaterialProvidersTypes.Companion_IKeyring_.CastTo_((_10_valueOrError3).Extract()) + var _13_maybeCmm m_Wrappers.Result + _ = _13_maybeCmm + var _out3 m_Wrappers.Result + _ = _out3 + _out3 = (_7_mpl).CreateDefaultCryptographicMaterialsManager(m_AwsCryptographyMaterialProvidersTypes.Companion_CreateDefaultCryptographicMaterialsManagerInput_.Create_CreateDefaultCryptographicMaterialsManagerInput_(m_AwsCryptographyMaterialProvidersTypes.Companion_IKeyring_.CastTo_((_9_maybeMultiKeyring).Dtor_value()))) + _13_maybeCmm = _out3 + output = (_13_maybeCmm).MapFailure(func(coer1 func(m_AwsCryptographyMaterialProvidersTypes.Error) m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) func(interface{}) interface{} { + return func(arg1 interface{}) interface{} { + return coer1(arg1.(m_AwsCryptographyMaterialProvidersTypes.Error)) + } + }(func(_14_e m_AwsCryptographyMaterialProvidersTypes.Error) m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error { + return m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_AwsCryptographyMaterialProviders_(_14_e) + })) + return output +} +func (_static *CompanionStruct_Default___) ReadVectorsFile(location _dafny.Sequence) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = output + var _0_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _0_valueOrError0 + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = m_FileIO.Companion_Default___.ReadBytesFromFile(location) + _0_valueOrError0 = _out0 + if (_0_valueOrError0).IsFailure() { + output = (_0_valueOrError0).PropagateFailure() + return output + } + var _1_fileBv _dafny.Sequence + _ = _1_fileBv + _1_fileBv = (_0_valueOrError0).Extract().(_dafny.Sequence) + output = m_Wrappers.Companion_Result_.Create_Success_(m_JSONHelpers.Companion_Default___.BvToBytes(_1_fileBv)) + return output +} +func (_static *CompanionStruct_Default___) WriteVectorsFile(location _dafny.Sequence, bytes _dafny.Sequence) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) + _ = output + var _0_bv _dafny.Sequence + _ = _0_bv + _0_bv = m_JSONHelpers.Companion_Default___.BytesBv(bytes) + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = m_FileIO.Companion_Default___.WriteBytesToFile(location, _0_bv) + output = _out0 + return output +} +func (_static *CompanionStruct_Default___) CiphertextPathPathRoot() _dafny.Sequence { + return _dafny.SeqOfString("ciphertexts/") +} +func (_static *CompanionStruct_Default___) PlaintextPathRoot() _dafny.Sequence { + return _dafny.SeqOfString("plaintexts/") +} + +// End of class Default__ + +// Definition of datatype EncryptTest +type EncryptTest struct { + Data_EncryptTest_ +} + +func (_this EncryptTest) Get_() Data_EncryptTest_ { + return _this.Data_EncryptTest_ +} + +type Data_EncryptTest_ interface { + isEncryptTest() +} + +type CompanionStruct_EncryptTest_ struct { +} + +var Companion_EncryptTest_ = CompanionStruct_EncryptTest_{} + +type EncryptTest_EncryptTest struct { + Cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager + Client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient + Vector EsdkEncryptTestVector +} + +func (EncryptTest_EncryptTest) isEncryptTest() {} + +func (CompanionStruct_EncryptTest_) Create_EncryptTest_(Cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager, Client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient, Vector EsdkEncryptTestVector) EncryptTest { + return EncryptTest{EncryptTest_EncryptTest{Cmm, Client, Vector}} +} + +func (_this EncryptTest) Is_EncryptTest() bool { + _, ok := _this.Get_().(EncryptTest_EncryptTest) + return ok +} + +func (CompanionStruct_EncryptTest_) Default() EncryptTest { + return Companion_EncryptTest_.Create_EncryptTest_((m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager)(nil), (m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient)(nil), Companion_EsdkEncryptTestVector_.Default()) +} + +func (_this EncryptTest) Dtor_cmm() m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager { + return _this.Get_().(EncryptTest_EncryptTest).Cmm +} + +func (_this EncryptTest) Dtor_client() m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient { + return _this.Get_().(EncryptTest_EncryptTest).Client +} + +func (_this EncryptTest) Dtor_vector() EsdkEncryptTestVector { + return _this.Get_().(EncryptTest_EncryptTest).Vector +} + +func (_this EncryptTest) String() string { + switch data := _this.Get_().(type) { + case nil: + return "null" + case EncryptTest_EncryptTest: + { + return "EsdkTestVectors.EncryptTest.EncryptTest" + "(" + _dafny.String(data.Cmm) + ", " + _dafny.String(data.Client) + ", " + _dafny.String(data.Vector) + ")" + } + default: + { + return "" + } + } +} + +func (_this EncryptTest) Equals(other EncryptTest) bool { + switch data1 := _this.Get_().(type) { + case EncryptTest_EncryptTest: + { + data2, ok := other.Get_().(EncryptTest_EncryptTest) + return ok && _dafny.AreEqual(data1.Cmm, data2.Cmm) && _dafny.AreEqual(data1.Client, data2.Client) && data1.Vector.Equals(data2.Vector) + } + default: + { + return false // unexpected + } + } +} + +func (_this EncryptTest) EqualsGeneric(other interface{}) bool { + typed, ok := other.(EncryptTest) + return ok && _this.Equals(typed) +} + +func Type_EncryptTest_() _dafny.TypeDescriptor { + return type_EncryptTest_{} +} + +type type_EncryptTest_ struct { +} + +func (_this type_EncryptTest_) Default() interface{} { + return Companion_EncryptTest_.Default() +} + +func (_this type_EncryptTest_) String() string { + return "EsdkTestVectors.EncryptTest" +} +func (_this EncryptTest) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = EncryptTest{} + +// End of datatype EncryptTest + +// Definition of datatype DecryptTest +type DecryptTest struct { + Data_DecryptTest_ +} + +func (_this DecryptTest) Get_() Data_DecryptTest_ { + return _this.Data_DecryptTest_ +} + +type Data_DecryptTest_ interface { + isDecryptTest() +} + +type CompanionStruct_DecryptTest_ struct { +} + +var Companion_DecryptTest_ = CompanionStruct_DecryptTest_{} + +type DecryptTest_DecryptTest struct { + Cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager + Client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient + Vector EsdkDecryptTestVector +} + +func (DecryptTest_DecryptTest) isDecryptTest() {} + +func (CompanionStruct_DecryptTest_) Create_DecryptTest_(Cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager, Client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient, Vector EsdkDecryptTestVector) DecryptTest { + return DecryptTest{DecryptTest_DecryptTest{Cmm, Client, Vector}} +} + +func (_this DecryptTest) Is_DecryptTest() bool { + _, ok := _this.Get_().(DecryptTest_DecryptTest) + return ok +} + +func (CompanionStruct_DecryptTest_) Default() DecryptTest { + return Companion_DecryptTest_.Create_DecryptTest_((m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager)(nil), (m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient)(nil), Companion_EsdkDecryptTestVector_.Default()) +} + +func (_this DecryptTest) Dtor_cmm() m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager { + return _this.Get_().(DecryptTest_DecryptTest).Cmm +} + +func (_this DecryptTest) Dtor_client() m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient { + return _this.Get_().(DecryptTest_DecryptTest).Client +} + +func (_this DecryptTest) Dtor_vector() EsdkDecryptTestVector { + return _this.Get_().(DecryptTest_DecryptTest).Vector +} + +func (_this DecryptTest) String() string { + switch data := _this.Get_().(type) { + case nil: + return "null" + case DecryptTest_DecryptTest: + { + return "EsdkTestVectors.DecryptTest.DecryptTest" + "(" + _dafny.String(data.Cmm) + ", " + _dafny.String(data.Client) + ", " + _dafny.String(data.Vector) + ")" + } + default: + { + return "" + } + } +} + +func (_this DecryptTest) Equals(other DecryptTest) bool { + switch data1 := _this.Get_().(type) { + case DecryptTest_DecryptTest: + { + data2, ok := other.Get_().(DecryptTest_DecryptTest) + return ok && _dafny.AreEqual(data1.Cmm, data2.Cmm) && _dafny.AreEqual(data1.Client, data2.Client) && data1.Vector.Equals(data2.Vector) + } + default: + { + return false // unexpected + } + } +} + +func (_this DecryptTest) EqualsGeneric(other interface{}) bool { + typed, ok := other.(DecryptTest) + return ok && _this.Equals(typed) +} + +func Type_DecryptTest_() _dafny.TypeDescriptor { + return type_DecryptTest_{} +} + +type type_DecryptTest_ struct { +} + +func (_this type_DecryptTest_) Default() interface{} { + return Companion_DecryptTest_.Default() +} + +func (_this type_DecryptTest_) String() string { + return "EsdkTestVectors.DecryptTest" +} +func (_this DecryptTest) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = DecryptTest{} + +// End of datatype DecryptTest + +// Definition of class SupportedGenerateManifestVersion +type SupportedGenerateManifestVersion struct { +} + +func New_SupportedGenerateManifestVersion_() *SupportedGenerateManifestVersion { + _this := SupportedGenerateManifestVersion{} + + return &_this +} + +type CompanionStruct_SupportedGenerateManifestVersion_ struct { +} + +var Companion_SupportedGenerateManifestVersion_ = CompanionStruct_SupportedGenerateManifestVersion_{} + +func (*SupportedGenerateManifestVersion) String() string { + return "EsdkTestVectors.SupportedGenerateManifestVersion" +} +func (_this *CompanionStruct_SupportedGenerateManifestVersion_) Witness() _dafny.Int { + return _dafny.IntOfInt64(4) +} + +// End of class SupportedGenerateManifestVersion + +func Type_SupportedGenerateManifestVersion_() _dafny.TypeDescriptor { + return type_SupportedGenerateManifestVersion_{} +} + +type type_SupportedGenerateManifestVersion_ struct { +} + +func (_this type_SupportedGenerateManifestVersion_) Default() interface{} { + return Companion_SupportedGenerateManifestVersion_.Witness() +} + +func (_this type_SupportedGenerateManifestVersion_) String() string { + return "EsdkTestVectors.SupportedGenerateManifestVersion" +} + +// Definition of class SupportedEncryptVersion +type SupportedEncryptVersion struct { +} + +func New_SupportedEncryptVersion_() *SupportedEncryptVersion { + _this := SupportedEncryptVersion{} + + return &_this +} + +type CompanionStruct_SupportedEncryptVersion_ struct { +} + +var Companion_SupportedEncryptVersion_ = CompanionStruct_SupportedEncryptVersion_{} + +func (*SupportedEncryptVersion) String() string { + return "EsdkTestVectors.SupportedEncryptVersion" +} +func (_this *CompanionStruct_SupportedEncryptVersion_) Witness() _dafny.Int { + return _dafny.One +} + +// End of class SupportedEncryptVersion + +func Type_SupportedEncryptVersion_() _dafny.TypeDescriptor { + return type_SupportedEncryptVersion_{} +} + +type type_SupportedEncryptVersion_ struct { +} + +func (_this type_SupportedEncryptVersion_) Default() interface{} { + return Companion_SupportedEncryptVersion_.Witness() +} + +func (_this type_SupportedEncryptVersion_) String() string { + return "EsdkTestVectors.SupportedEncryptVersion" +} + +// Definition of datatype EsdkEncryptTestVector +type EsdkEncryptTestVector struct { + Data_EsdkEncryptTestVector_ +} + +func (_this EsdkEncryptTestVector) Get_() Data_EsdkEncryptTestVector_ { + return _this.Data_EsdkEncryptTestVector_ +} + +type Data_EsdkEncryptTestVector_ interface { + isEsdkEncryptTestVector() +} + +type CompanionStruct_EsdkEncryptTestVector_ struct { +} + +var Companion_EsdkEncryptTestVector_ = CompanionStruct_EsdkEncryptTestVector_{} + +type EsdkEncryptTestVector_PositiveEncryptTestVector struct { + Id m_Wrappers.Option + Version _dafny.Int + ManifestPath _dafny.Sequence + DecryptManifestPath _dafny.Sequence + PlaintextPath _dafny.Sequence + EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription + DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription + EncryptionContext m_Wrappers.Option + ReproducedEncryptionContext m_Wrappers.Option + CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy + FrameLength m_Wrappers.Option + AlgorithmSuiteId m_Wrappers.Option + Description _dafny.Sequence + MaxEncryptedDataKeys m_Wrappers.Option +} + +func (EsdkEncryptTestVector_PositiveEncryptTestVector) isEsdkEncryptTestVector() {} + +func (CompanionStruct_EsdkEncryptTestVector_) Create_PositiveEncryptTestVector_(Id m_Wrappers.Option, Version _dafny.Int, ManifestPath _dafny.Sequence, DecryptManifestPath _dafny.Sequence, PlaintextPath _dafny.Sequence, EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, EncryptionContext m_Wrappers.Option, ReproducedEncryptionContext m_Wrappers.Option, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, Description _dafny.Sequence, MaxEncryptedDataKeys m_Wrappers.Option) EsdkEncryptTestVector { + return EsdkEncryptTestVector{EsdkEncryptTestVector_PositiveEncryptTestVector{Id, Version, ManifestPath, DecryptManifestPath, PlaintextPath, EncryptDescriptions, DecryptDescriptions, EncryptionContext, ReproducedEncryptionContext, CommitmentPolicy, FrameLength, AlgorithmSuiteId, Description, MaxEncryptedDataKeys}} +} + +func (_this EsdkEncryptTestVector) Is_PositiveEncryptTestVector() bool { + _, ok := _this.Get_().(EsdkEncryptTestVector_PositiveEncryptTestVector) + return ok +} + +type EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector struct { + Id m_Wrappers.Option + Version _dafny.Int + ManifestPath _dafny.Sequence + DecryptManifestPath _dafny.Sequence + PlaintextPath _dafny.Sequence + EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription + DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription + EncryptionContext m_Wrappers.Option + ReproducedEncryptionContext m_Wrappers.Option + CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy + FrameLength m_Wrappers.Option + AlgorithmSuiteId m_Wrappers.Option + DecryptErrorDescription _dafny.Sequence + Description _dafny.Sequence + MaxEncryptedDataKeys m_Wrappers.Option +} + +func (EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector) isEsdkEncryptTestVector() {} + +func (CompanionStruct_EsdkEncryptTestVector_) Create_PositiveEncryptNegativeDecryptTestVector_(Id m_Wrappers.Option, Version _dafny.Int, ManifestPath _dafny.Sequence, DecryptManifestPath _dafny.Sequence, PlaintextPath _dafny.Sequence, EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, EncryptionContext m_Wrappers.Option, ReproducedEncryptionContext m_Wrappers.Option, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, DecryptErrorDescription _dafny.Sequence, Description _dafny.Sequence, MaxEncryptedDataKeys m_Wrappers.Option) EsdkEncryptTestVector { + return EsdkEncryptTestVector{EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector{Id, Version, ManifestPath, DecryptManifestPath, PlaintextPath, EncryptDescriptions, DecryptDescriptions, EncryptionContext, ReproducedEncryptionContext, CommitmentPolicy, FrameLength, AlgorithmSuiteId, DecryptErrorDescription, Description, MaxEncryptedDataKeys}} +} + +func (_this EsdkEncryptTestVector) Is_PositiveEncryptNegativeDecryptTestVector() bool { + _, ok := _this.Get_().(EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector) + return ok +} + +type EsdkEncryptTestVector_NegativeEncryptTestVector struct { + Id m_Wrappers.Option + Version _dafny.Int + ManifestPath _dafny.Sequence + PlaintextPath _dafny.Sequence + EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription + EncryptionContext m_Wrappers.Option + ReproducedEncryptionContext m_Wrappers.Option + CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy + FrameLength m_Wrappers.Option + AlgorithmSuiteId m_Wrappers.Option + ErrorDescription _dafny.Sequence + Description _dafny.Sequence + MaxEncryptedDataKeys m_Wrappers.Option +} + +func (EsdkEncryptTestVector_NegativeEncryptTestVector) isEsdkEncryptTestVector() {} + +func (CompanionStruct_EsdkEncryptTestVector_) Create_NegativeEncryptTestVector_(Id m_Wrappers.Option, Version _dafny.Int, ManifestPath _dafny.Sequence, PlaintextPath _dafny.Sequence, EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, EncryptionContext m_Wrappers.Option, ReproducedEncryptionContext m_Wrappers.Option, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, ErrorDescription _dafny.Sequence, Description _dafny.Sequence, MaxEncryptedDataKeys m_Wrappers.Option) EsdkEncryptTestVector { + return EsdkEncryptTestVector{EsdkEncryptTestVector_NegativeEncryptTestVector{Id, Version, ManifestPath, PlaintextPath, EncryptDescriptions, EncryptionContext, ReproducedEncryptionContext, CommitmentPolicy, FrameLength, AlgorithmSuiteId, ErrorDescription, Description, MaxEncryptedDataKeys}} +} + +func (_this EsdkEncryptTestVector) Is_NegativeEncryptTestVector() bool { + _, ok := _this.Get_().(EsdkEncryptTestVector_NegativeEncryptTestVector) + return ok +} + +func (CompanionStruct_EsdkEncryptTestVector_) Default() EsdkEncryptTestVector { + return Companion_EsdkEncryptTestVector_.Create_PositiveEncryptTestVector_(m_Wrappers.Companion_Option_.Default(), Companion_SupportedEncryptVersion_.Witness(), _dafny.EmptySeq.SetString(), _dafny.EmptySeq.SetString(), _dafny.EmptySeq.SetString(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_KeyDescription_.Default(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_KeyDescription_.Default(), m_Wrappers.Companion_Option_.Default(), m_Wrappers.Companion_Option_.Default(), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Default(), m_Wrappers.Companion_Option_.Default(), m_Wrappers.Companion_Option_.Default(), _dafny.EmptySeq.SetString(), m_Wrappers.Companion_Option_.Default()) +} + +func (_this EsdkEncryptTestVector) Dtor_id() m_Wrappers.Option { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.Id + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.Id + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).Id + } +} + +func (_this EsdkEncryptTestVector) Dtor_version() _dafny.Int { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.Version + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.Version + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).Version + } +} + +func (_this EsdkEncryptTestVector) Dtor_manifestPath() _dafny.Sequence { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.ManifestPath + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.ManifestPath + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).ManifestPath + } +} + +func (_this EsdkEncryptTestVector) Dtor_decryptManifestPath() _dafny.Sequence { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.DecryptManifestPath + default: + return data.(EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector).DecryptManifestPath + } +} + +func (_this EsdkEncryptTestVector) Dtor_plaintextPath() _dafny.Sequence { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.PlaintextPath + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.PlaintextPath + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).PlaintextPath + } +} + +func (_this EsdkEncryptTestVector) Dtor_encryptDescriptions() m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.EncryptDescriptions + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.EncryptDescriptions + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).EncryptDescriptions + } +} + +func (_this EsdkEncryptTestVector) Dtor_decryptDescriptions() m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.DecryptDescriptions + default: + return data.(EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector).DecryptDescriptions + } +} + +func (_this EsdkEncryptTestVector) Dtor_encryptionContext() m_Wrappers.Option { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.EncryptionContext + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.EncryptionContext + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).EncryptionContext + } +} + +func (_this EsdkEncryptTestVector) Dtor_reproducedEncryptionContext() m_Wrappers.Option { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.ReproducedEncryptionContext + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.ReproducedEncryptionContext + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).ReproducedEncryptionContext + } +} + +func (_this EsdkEncryptTestVector) Dtor_commitmentPolicy() m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.CommitmentPolicy + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.CommitmentPolicy + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).CommitmentPolicy + } +} + +func (_this EsdkEncryptTestVector) Dtor_frameLength() m_Wrappers.Option { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.FrameLength + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.FrameLength + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).FrameLength + } +} + +func (_this EsdkEncryptTestVector) Dtor_algorithmSuiteId() m_Wrappers.Option { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.AlgorithmSuiteId + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.AlgorithmSuiteId + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).AlgorithmSuiteId + } +} + +func (_this EsdkEncryptTestVector) Dtor_description() _dafny.Sequence { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.Description + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.Description + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).Description + } +} + +func (_this EsdkEncryptTestVector) Dtor_maxEncryptedDataKeys() m_Wrappers.Option { + switch data := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + return data.MaxEncryptedDataKeys + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + return data.MaxEncryptedDataKeys + default: + return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).MaxEncryptedDataKeys + } +} + +func (_this EsdkEncryptTestVector) Dtor_decryptErrorDescription() _dafny.Sequence { + return _this.Get_().(EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector).DecryptErrorDescription +} + +func (_this EsdkEncryptTestVector) Dtor_errorDescription() _dafny.Sequence { + return _this.Get_().(EsdkEncryptTestVector_NegativeEncryptTestVector).ErrorDescription +} + +func (_this EsdkEncryptTestVector) String() string { + switch data := _this.Get_().(type) { + case nil: + return "null" + case EsdkEncryptTestVector_PositiveEncryptTestVector: + { + return "EsdkTestVectors.EsdkEncryptTestVector.PositiveEncryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.DecryptManifestPath) + ", " + _dafny.String(data.PlaintextPath) + ", " + _dafny.String(data.EncryptDescriptions) + ", " + _dafny.String(data.DecryptDescriptions) + ", " + _dafny.String(data.EncryptionContext) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.MaxEncryptedDataKeys) + ")" + } + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + { + return "EsdkTestVectors.EsdkEncryptTestVector.PositiveEncryptNegativeDecryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.DecryptManifestPath) + ", " + _dafny.String(data.PlaintextPath) + ", " + _dafny.String(data.EncryptDescriptions) + ", " + _dafny.String(data.DecryptDescriptions) + ", " + _dafny.String(data.EncryptionContext) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.DecryptErrorDescription) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.MaxEncryptedDataKeys) + ")" + } + case EsdkEncryptTestVector_NegativeEncryptTestVector: + { + return "EsdkTestVectors.EsdkEncryptTestVector.NegativeEncryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.PlaintextPath) + ", " + _dafny.String(data.EncryptDescriptions) + ", " + _dafny.String(data.EncryptionContext) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.ErrorDescription) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.MaxEncryptedDataKeys) + ")" + } + default: + { + return "" + } + } +} + +func (_this EsdkEncryptTestVector) Equals(other EsdkEncryptTestVector) bool { + switch data1 := _this.Get_().(type) { + case EsdkEncryptTestVector_PositiveEncryptTestVector: + { + data2, ok := other.Get_().(EsdkEncryptTestVector_PositiveEncryptTestVector) + return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.DecryptManifestPath.Equals(data2.DecryptManifestPath) && data1.PlaintextPath.Equals(data2.PlaintextPath) && data1.EncryptDescriptions.Equals(data2.EncryptDescriptions) && data1.DecryptDescriptions.Equals(data2.DecryptDescriptions) && data1.EncryptionContext.Equals(data2.EncryptionContext) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.Description.Equals(data2.Description) && data1.MaxEncryptedDataKeys.Equals(data2.MaxEncryptedDataKeys) + } + case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: + { + data2, ok := other.Get_().(EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector) + return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.DecryptManifestPath.Equals(data2.DecryptManifestPath) && data1.PlaintextPath.Equals(data2.PlaintextPath) && data1.EncryptDescriptions.Equals(data2.EncryptDescriptions) && data1.DecryptDescriptions.Equals(data2.DecryptDescriptions) && data1.EncryptionContext.Equals(data2.EncryptionContext) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.DecryptErrorDescription.Equals(data2.DecryptErrorDescription) && data1.Description.Equals(data2.Description) && data1.MaxEncryptedDataKeys.Equals(data2.MaxEncryptedDataKeys) + } + case EsdkEncryptTestVector_NegativeEncryptTestVector: + { + data2, ok := other.Get_().(EsdkEncryptTestVector_NegativeEncryptTestVector) + return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.PlaintextPath.Equals(data2.PlaintextPath) && data1.EncryptDescriptions.Equals(data2.EncryptDescriptions) && data1.EncryptionContext.Equals(data2.EncryptionContext) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.ErrorDescription.Equals(data2.ErrorDescription) && data1.Description.Equals(data2.Description) && data1.MaxEncryptedDataKeys.Equals(data2.MaxEncryptedDataKeys) + } + default: + { + return false // unexpected + } + } +} + +func (_this EsdkEncryptTestVector) EqualsGeneric(other interface{}) bool { + typed, ok := other.(EsdkEncryptTestVector) + return ok && _this.Equals(typed) +} + +func Type_EsdkEncryptTestVector_() _dafny.TypeDescriptor { + return type_EsdkEncryptTestVector_{} +} + +type type_EsdkEncryptTestVector_ struct { +} + +func (_this type_EsdkEncryptTestVector_) Default() interface{} { + return Companion_EsdkEncryptTestVector_.Default() +} + +func (_this type_EsdkEncryptTestVector_) String() string { + return "EsdkTestVectors.EsdkEncryptTestVector" +} +func (_this EsdkEncryptTestVector) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = EsdkEncryptTestVector{} + +// End of datatype EsdkEncryptTestVector + +// Definition of class SupportedDecryptVersion +type SupportedDecryptVersion struct { +} + +func New_SupportedDecryptVersion_() *SupportedDecryptVersion { + _this := SupportedDecryptVersion{} + + return &_this +} + +type CompanionStruct_SupportedDecryptVersion_ struct { +} + +var Companion_SupportedDecryptVersion_ = CompanionStruct_SupportedDecryptVersion_{} + +func (*SupportedDecryptVersion) String() string { + return "EsdkTestVectors.SupportedDecryptVersion" +} +func (_this *CompanionStruct_SupportedDecryptVersion_) Witness() _dafny.Int { + return _dafny.One +} + +// End of class SupportedDecryptVersion + +func Type_SupportedDecryptVersion_() _dafny.TypeDescriptor { + return type_SupportedDecryptVersion_{} +} + +type type_SupportedDecryptVersion_ struct { +} + +func (_this type_SupportedDecryptVersion_) Default() interface{} { + return Companion_SupportedDecryptVersion_.Witness() +} + +func (_this type_SupportedDecryptVersion_) String() string { + return "EsdkTestVectors.SupportedDecryptVersion" +} + +// Definition of datatype EsdkDecryptTestVector +type EsdkDecryptTestVector struct { + Data_EsdkDecryptTestVector_ +} + +func (_this EsdkDecryptTestVector) Get_() Data_EsdkDecryptTestVector_ { + return _this.Data_EsdkDecryptTestVector_ +} + +type Data_EsdkDecryptTestVector_ interface { + isEsdkDecryptTestVector() +} + +type CompanionStruct_EsdkDecryptTestVector_ struct { +} + +var Companion_EsdkDecryptTestVector_ = CompanionStruct_EsdkDecryptTestVector_{} + +type EsdkDecryptTestVector_PositiveDecryptTestVector struct { + Id _dafny.Sequence + Version _dafny.Int + ManifestPath _dafny.Sequence + CiphertextPath _dafny.Sequence + PlaintextPath _dafny.Sequence + ReproducedEncryptionContext m_Wrappers.Option + DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription + CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy + FrameLength m_Wrappers.Option + AlgorithmSuiteId m_Wrappers.Option + Description _dafny.Sequence + DecryptionMethod DecryptionMethod +} + +func (EsdkDecryptTestVector_PositiveDecryptTestVector) isEsdkDecryptTestVector() {} + +func (CompanionStruct_EsdkDecryptTestVector_) Create_PositiveDecryptTestVector_(Id _dafny.Sequence, Version _dafny.Int, ManifestPath _dafny.Sequence, CiphertextPath _dafny.Sequence, PlaintextPath _dafny.Sequence, ReproducedEncryptionContext m_Wrappers.Option, DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, Description _dafny.Sequence, DecryptionMethod DecryptionMethod) EsdkDecryptTestVector { + return EsdkDecryptTestVector{EsdkDecryptTestVector_PositiveDecryptTestVector{Id, Version, ManifestPath, CiphertextPath, PlaintextPath, ReproducedEncryptionContext, DecryptDescriptions, CommitmentPolicy, FrameLength, AlgorithmSuiteId, Description, DecryptionMethod}} +} + +func (_this EsdkDecryptTestVector) Is_PositiveDecryptTestVector() bool { + _, ok := _this.Get_().(EsdkDecryptTestVector_PositiveDecryptTestVector) + return ok +} + +type EsdkDecryptTestVector_NegativeDecryptTestVector struct { + Id _dafny.Sequence + Version _dafny.Int + ManifestPath _dafny.Sequence + CiphertextPath _dafny.Sequence + ErrorDescription _dafny.Sequence + ReproducedEncryptionContext m_Wrappers.Option + DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription + CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy + FrameLength m_Wrappers.Option + AlgorithmSuiteId m_Wrappers.Option + Description _dafny.Sequence + DecryptionMethod DecryptionMethod +} + +func (EsdkDecryptTestVector_NegativeDecryptTestVector) isEsdkDecryptTestVector() {} + +func (CompanionStruct_EsdkDecryptTestVector_) Create_NegativeDecryptTestVector_(Id _dafny.Sequence, Version _dafny.Int, ManifestPath _dafny.Sequence, CiphertextPath _dafny.Sequence, ErrorDescription _dafny.Sequence, ReproducedEncryptionContext m_Wrappers.Option, DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, Description _dafny.Sequence, DecryptionMethod DecryptionMethod) EsdkDecryptTestVector { + return EsdkDecryptTestVector{EsdkDecryptTestVector_NegativeDecryptTestVector{Id, Version, ManifestPath, CiphertextPath, ErrorDescription, ReproducedEncryptionContext, DecryptDescriptions, CommitmentPolicy, FrameLength, AlgorithmSuiteId, Description, DecryptionMethod}} +} + +func (_this EsdkDecryptTestVector) Is_NegativeDecryptTestVector() bool { + _, ok := _this.Get_().(EsdkDecryptTestVector_NegativeDecryptTestVector) + return ok +} + +type EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector struct { + Id _dafny.Sequence + Version _dafny.Int + ManifestPath _dafny.Sequence + CiphertextPath _dafny.Sequence + PlaintextPath _dafny.Sequence + ReproducedEncryptionContext m_Wrappers.Option + RequiredEncryptionContextKeys m_Wrappers.Option + DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription + CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy + FrameLength m_Wrappers.Option + AlgorithmSuiteId m_Wrappers.Option + Description _dafny.Sequence + DecryptionMethod DecryptionMethod +} + +func (EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector) isEsdkDecryptTestVector() {} + +func (CompanionStruct_EsdkDecryptTestVector_) Create_PositiveV1OrV2DecryptTestVector_(Id _dafny.Sequence, Version _dafny.Int, ManifestPath _dafny.Sequence, CiphertextPath _dafny.Sequence, PlaintextPath _dafny.Sequence, ReproducedEncryptionContext m_Wrappers.Option, RequiredEncryptionContextKeys m_Wrappers.Option, DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, Description _dafny.Sequence, DecryptionMethod DecryptionMethod) EsdkDecryptTestVector { + return EsdkDecryptTestVector{EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector{Id, Version, ManifestPath, CiphertextPath, PlaintextPath, ReproducedEncryptionContext, RequiredEncryptionContextKeys, DecryptDescriptions, CommitmentPolicy, FrameLength, AlgorithmSuiteId, Description, DecryptionMethod}} +} + +func (_this EsdkDecryptTestVector) Is_PositiveV1OrV2DecryptTestVector() bool { + _, ok := _this.Get_().(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector) + return ok +} + +func (CompanionStruct_EsdkDecryptTestVector_) Default() EsdkDecryptTestVector { + return Companion_EsdkDecryptTestVector_.Create_PositiveDecryptTestVector_(_dafny.EmptySeq.SetString(), Companion_SupportedDecryptVersion_.Witness(), _dafny.EmptySeq.SetString(), _dafny.EmptySeq.SetString(), _dafny.EmptySeq.SetString(), m_Wrappers.Companion_Option_.Default(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_KeyDescription_.Default(), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Default(), m_Wrappers.Companion_Option_.Default(), m_Wrappers.Companion_Option_.Default(), _dafny.EmptySeq.SetString(), Companion_DecryptionMethod_.Default()) +} + +func (_this EsdkDecryptTestVector) Dtor_id() _dafny.Sequence { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.Id + case EsdkDecryptTestVector_NegativeDecryptTestVector: + return data.Id + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).Id + } +} + +func (_this EsdkDecryptTestVector) Dtor_version() _dafny.Int { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.Version + case EsdkDecryptTestVector_NegativeDecryptTestVector: + return data.Version + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).Version + } +} + +func (_this EsdkDecryptTestVector) Dtor_manifestPath() _dafny.Sequence { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.ManifestPath + case EsdkDecryptTestVector_NegativeDecryptTestVector: + return data.ManifestPath + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).ManifestPath + } +} + +func (_this EsdkDecryptTestVector) Dtor_ciphertextPath() _dafny.Sequence { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.CiphertextPath + case EsdkDecryptTestVector_NegativeDecryptTestVector: + return data.CiphertextPath + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).CiphertextPath + } +} + +func (_this EsdkDecryptTestVector) Dtor_plaintextPath() _dafny.Sequence { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.PlaintextPath + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).PlaintextPath + } +} + +func (_this EsdkDecryptTestVector) Dtor_reproducedEncryptionContext() m_Wrappers.Option { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.ReproducedEncryptionContext + case EsdkDecryptTestVector_NegativeDecryptTestVector: + return data.ReproducedEncryptionContext + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).ReproducedEncryptionContext + } +} + +func (_this EsdkDecryptTestVector) Dtor_decryptDescriptions() m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.DecryptDescriptions + case EsdkDecryptTestVector_NegativeDecryptTestVector: + return data.DecryptDescriptions + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).DecryptDescriptions + } +} + +func (_this EsdkDecryptTestVector) Dtor_commitmentPolicy() m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.CommitmentPolicy + case EsdkDecryptTestVector_NegativeDecryptTestVector: + return data.CommitmentPolicy + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).CommitmentPolicy + } +} + +func (_this EsdkDecryptTestVector) Dtor_frameLength() m_Wrappers.Option { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.FrameLength + case EsdkDecryptTestVector_NegativeDecryptTestVector: + return data.FrameLength + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).FrameLength + } +} + +func (_this EsdkDecryptTestVector) Dtor_algorithmSuiteId() m_Wrappers.Option { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.AlgorithmSuiteId + case EsdkDecryptTestVector_NegativeDecryptTestVector: + return data.AlgorithmSuiteId + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).AlgorithmSuiteId + } +} + +func (_this EsdkDecryptTestVector) Dtor_description() _dafny.Sequence { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.Description + case EsdkDecryptTestVector_NegativeDecryptTestVector: + return data.Description + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).Description + } +} + +func (_this EsdkDecryptTestVector) Dtor_decryptionMethod() DecryptionMethod { + switch data := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + return data.DecryptionMethod + case EsdkDecryptTestVector_NegativeDecryptTestVector: + return data.DecryptionMethod + default: + return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).DecryptionMethod + } +} + +func (_this EsdkDecryptTestVector) Dtor_errorDescription() _dafny.Sequence { + return _this.Get_().(EsdkDecryptTestVector_NegativeDecryptTestVector).ErrorDescription +} + +func (_this EsdkDecryptTestVector) Dtor_requiredEncryptionContextKeys() m_Wrappers.Option { + return _this.Get_().(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).RequiredEncryptionContextKeys +} + +func (_this EsdkDecryptTestVector) String() string { + switch data := _this.Get_().(type) { + case nil: + return "null" + case EsdkDecryptTestVector_PositiveDecryptTestVector: + { + return "EsdkTestVectors.EsdkDecryptTestVector.PositiveDecryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.CiphertextPath) + ", " + _dafny.String(data.PlaintextPath) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.DecryptDescriptions) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.DecryptionMethod) + ")" + } + case EsdkDecryptTestVector_NegativeDecryptTestVector: + { + return "EsdkTestVectors.EsdkDecryptTestVector.NegativeDecryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.CiphertextPath) + ", " + _dafny.String(data.ErrorDescription) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.DecryptDescriptions) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.DecryptionMethod) + ")" + } + case EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector: + { + return "EsdkTestVectors.EsdkDecryptTestVector.PositiveV1OrV2DecryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.CiphertextPath) + ", " + _dafny.String(data.PlaintextPath) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.RequiredEncryptionContextKeys) + ", " + _dafny.String(data.DecryptDescriptions) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.DecryptionMethod) + ")" + } + default: + { + return "" + } + } +} + +func (_this EsdkDecryptTestVector) Equals(other EsdkDecryptTestVector) bool { + switch data1 := _this.Get_().(type) { + case EsdkDecryptTestVector_PositiveDecryptTestVector: + { + data2, ok := other.Get_().(EsdkDecryptTestVector_PositiveDecryptTestVector) + return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.CiphertextPath.Equals(data2.CiphertextPath) && data1.PlaintextPath.Equals(data2.PlaintextPath) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.DecryptDescriptions.Equals(data2.DecryptDescriptions) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.Description.Equals(data2.Description) && data1.DecryptionMethod.Equals(data2.DecryptionMethod) + } + case EsdkDecryptTestVector_NegativeDecryptTestVector: + { + data2, ok := other.Get_().(EsdkDecryptTestVector_NegativeDecryptTestVector) + return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.CiphertextPath.Equals(data2.CiphertextPath) && data1.ErrorDescription.Equals(data2.ErrorDescription) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.DecryptDescriptions.Equals(data2.DecryptDescriptions) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.Description.Equals(data2.Description) && data1.DecryptionMethod.Equals(data2.DecryptionMethod) + } + case EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector: + { + data2, ok := other.Get_().(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector) + return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.CiphertextPath.Equals(data2.CiphertextPath) && data1.PlaintextPath.Equals(data2.PlaintextPath) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.RequiredEncryptionContextKeys.Equals(data2.RequiredEncryptionContextKeys) && data1.DecryptDescriptions.Equals(data2.DecryptDescriptions) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.Description.Equals(data2.Description) && data1.DecryptionMethod.Equals(data2.DecryptionMethod) + } + default: + { + return false // unexpected + } + } +} + +func (_this EsdkDecryptTestVector) EqualsGeneric(other interface{}) bool { + typed, ok := other.(EsdkDecryptTestVector) + return ok && _this.Equals(typed) +} + +func Type_EsdkDecryptTestVector_() _dafny.TypeDescriptor { + return type_EsdkDecryptTestVector_{} +} + +type type_EsdkDecryptTestVector_ struct { +} + +func (_this type_EsdkDecryptTestVector_) Default() interface{} { + return Companion_EsdkDecryptTestVector_.Default() +} + +func (_this type_EsdkDecryptTestVector_) String() string { + return "EsdkTestVectors.EsdkDecryptTestVector" +} +func (_this EsdkDecryptTestVector) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = EsdkDecryptTestVector{} + +// End of datatype EsdkDecryptTestVector + +// Definition of datatype DecryptionMethod +type DecryptionMethod struct { + Data_DecryptionMethod_ +} + +func (_this DecryptionMethod) Get_() Data_DecryptionMethod_ { + return _this.Data_DecryptionMethod_ +} + +type Data_DecryptionMethod_ interface { + isDecryptionMethod() +} + +type CompanionStruct_DecryptionMethod_ struct { +} + +var Companion_DecryptionMethod_ = CompanionStruct_DecryptionMethod_{} + +type DecryptionMethod_StreamingUnsignedOnly struct { +} + +func (DecryptionMethod_StreamingUnsignedOnly) isDecryptionMethod() {} + +func (CompanionStruct_DecryptionMethod_) Create_StreamingUnsignedOnly_() DecryptionMethod { + return DecryptionMethod{DecryptionMethod_StreamingUnsignedOnly{}} +} + +func (_this DecryptionMethod) Is_StreamingUnsignedOnly() bool { + _, ok := _this.Get_().(DecryptionMethod_StreamingUnsignedOnly) + return ok +} + +type DecryptionMethod_OneShot struct { +} + +func (DecryptionMethod_OneShot) isDecryptionMethod() {} + +func (CompanionStruct_DecryptionMethod_) Create_OneShot_() DecryptionMethod { + return DecryptionMethod{DecryptionMethod_OneShot{}} +} + +func (_this DecryptionMethod) Is_OneShot() bool { + _, ok := _this.Get_().(DecryptionMethod_OneShot) + return ok +} + +func (CompanionStruct_DecryptionMethod_) Default() DecryptionMethod { + return Companion_DecryptionMethod_.Create_StreamingUnsignedOnly_() +} + +func (_ CompanionStruct_DecryptionMethod_) AllSingletonConstructors() _dafny.Iterator { + i := -1 + return func() (interface{}, bool) { + i++ + switch i { + case 0: + return Companion_DecryptionMethod_.Create_StreamingUnsignedOnly_(), true + case 1: + return Companion_DecryptionMethod_.Create_OneShot_(), true + default: + return DecryptionMethod{}, false + } + } +} + +func (_this DecryptionMethod) String() string { + switch _this.Get_().(type) { + case nil: + return "null" + case DecryptionMethod_StreamingUnsignedOnly: + { + return "EsdkTestVectors.DecryptionMethod.StreamingUnsignedOnly" + } + case DecryptionMethod_OneShot: + { + return "EsdkTestVectors.DecryptionMethod.OneShot" + } + default: + { + return "" + } + } +} + +func (_this DecryptionMethod) Equals(other DecryptionMethod) bool { + switch _this.Get_().(type) { + case DecryptionMethod_StreamingUnsignedOnly: + { + _, ok := other.Get_().(DecryptionMethod_StreamingUnsignedOnly) + return ok + } + case DecryptionMethod_OneShot: + { + _, ok := other.Get_().(DecryptionMethod_OneShot) + return ok + } + default: + { + return false // unexpected + } + } +} + +func (_this DecryptionMethod) EqualsGeneric(other interface{}) bool { + typed, ok := other.(DecryptionMethod) + return ok && _this.Equals(typed) +} + +func Type_DecryptionMethod_() _dafny.TypeDescriptor { + return type_DecryptionMethod_{} +} + +type type_DecryptionMethod_ struct { +} + +func (_this type_DecryptionMethod_) Default() interface{} { + return Companion_DecryptionMethod_.Default() +} + +func (_this type_DecryptionMethod_) String() string { + return "EsdkTestVectors.DecryptionMethod" +} +func (_this DecryptionMethod) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = DecryptionMethod{} + +// End of datatype DecryptionMethod + +// Definition of datatype EncryptTestOutput +type EncryptTestOutput struct { + Data_EncryptTestOutput_ +} + +func (_this EncryptTestOutput) Get_() Data_EncryptTestOutput_ { + return _this.Data_EncryptTestOutput_ +} + +type Data_EncryptTestOutput_ interface { + isEncryptTestOutput() +} + +type CompanionStruct_EncryptTestOutput_ struct { +} + +var Companion_EncryptTestOutput_ = CompanionStruct_EncryptTestOutput_{} + +type EncryptTestOutput_EncryptTestOutput struct { + Output bool + Vector m_Wrappers.Option +} + +func (EncryptTestOutput_EncryptTestOutput) isEncryptTestOutput() {} + +func (CompanionStruct_EncryptTestOutput_) Create_EncryptTestOutput_(Output bool, Vector m_Wrappers.Option) EncryptTestOutput { + return EncryptTestOutput{EncryptTestOutput_EncryptTestOutput{Output, Vector}} +} + +func (_this EncryptTestOutput) Is_EncryptTestOutput() bool { + _, ok := _this.Get_().(EncryptTestOutput_EncryptTestOutput) + return ok +} + +func (CompanionStruct_EncryptTestOutput_) Default() EncryptTestOutput { + return Companion_EncryptTestOutput_.Create_EncryptTestOutput_(false, m_Wrappers.Companion_Option_.Default()) +} + +func (_this EncryptTestOutput) Dtor_output() bool { + return _this.Get_().(EncryptTestOutput_EncryptTestOutput).Output +} + +func (_this EncryptTestOutput) Dtor_vector() m_Wrappers.Option { + return _this.Get_().(EncryptTestOutput_EncryptTestOutput).Vector +} + +func (_this EncryptTestOutput) String() string { + switch data := _this.Get_().(type) { + case nil: + return "null" + case EncryptTestOutput_EncryptTestOutput: + { + return "EsdkTestVectors.EncryptTestOutput.EncryptTestOutput" + "(" + _dafny.String(data.Output) + ", " + _dafny.String(data.Vector) + ")" + } + default: + { + return "" + } + } +} + +func (_this EncryptTestOutput) Equals(other EncryptTestOutput) bool { + switch data1 := _this.Get_().(type) { + case EncryptTestOutput_EncryptTestOutput: + { + data2, ok := other.Get_().(EncryptTestOutput_EncryptTestOutput) + return ok && data1.Output == data2.Output && data1.Vector.Equals(data2.Vector) + } + default: + { + return false // unexpected + } + } +} + +func (_this EncryptTestOutput) EqualsGeneric(other interface{}) bool { + typed, ok := other.(EncryptTestOutput) + return ok && _this.Equals(typed) +} + +func Type_EncryptTestOutput_() _dafny.TypeDescriptor { + return type_EncryptTestOutput_{} +} + +type type_EncryptTestOutput_ struct { +} + +func (_this type_EncryptTestOutput_) Default() interface{} { + return Companion_EncryptTestOutput_.Default() +} + +func (_this type_EncryptTestOutput_) String() string { + return "EsdkTestVectors.EncryptTestOutput" +} +func (_this EncryptTestOutput) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = EncryptTestOutput{} + +// End of datatype EncryptTestOutput diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny-go.dtr b/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny-go.dtr new file mode 100644 index 000000000..bd802532a --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny-go.dtr @@ -0,0 +1,35 @@ +file_format_version = "1.0" +dafny_version = "4.9.1.0" +[options_by_module.WrappedAbstractAwsCryptographyEncryptionSdkService] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" +legacy-module-names = false +[options_by_module.WrappedESDK] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" +legacy-module-names = false +[options_by_module.EsdkManifestOptions] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" +legacy-module-names = false +[options_by_module.EsdkTestVectors] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" +legacy-module-names = false +[options_by_module.AllEsdkV4NoReqEc] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" +legacy-module-names = false +[options_by_module.AllEsdkV4WithReqEc] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" +legacy-module-names = false +[options_by_module.WriteEsdkJsonManifests] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" +legacy-module-names = false +[options_by_module.WriteVectors] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" +legacy-module-names = false +[options_by_module.ParseEsdkJsonManifest] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" +legacy-module-names = false +[options_by_module.EsdkTestManifests] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" +legacy-module-names = false +[options_by_module.WrappedESDKMain] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" +legacy-module-names = false diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny.go new file mode 100644 index 000000000..8fd706e3e --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny.go @@ -0,0 +1,424 @@ +// Dafny program the_program compiled into Go +package main + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" + m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" + m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" + m_EsdkTestManifests "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestManifests" + m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" + m_ParseEsdkJsonManifest "github.com/aws/aws-encryption-sdk/testvectors/ParseEsdkJsonManifest" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m_WrappedESDKMain "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDKMain" + m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" + m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ +var _ m_WrappedESDK.Dummy__ +var _ m_EsdkManifestOptions.Dummy__ +var _ m_EsdkTestVectors.Dummy__ +var _ m_AllEsdkV4NoReqEc.Dummy__ +var _ m_AllEsdkV4WithReqEc.Dummy__ +var _ m_WriteEsdkJsonManifests.Dummy__ +var _ m_WriteVectors.Dummy__ +var _ m_ParseEsdkJsonManifest.Dummy__ +var _ m_EsdkTestManifests.Dummy__ +var _ m_WrappedESDKMain.Dummy__ + +func main() { + defer _dafny.CatchHalt() + m_WrappedMaterialProvidersMain.Companion_Default___.Main(_dafny.FromMainArguments(os.Args)) +} diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/ParseEsdkJsonManifest/ParseEsdkJsonManifest.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/ParseEsdkJsonManifest/ParseEsdkJsonManifest.go new file mode 100644 index 000000000..0e4503178 --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/ParseEsdkJsonManifest/ParseEsdkJsonManifest.go @@ -0,0 +1,1039 @@ +// Package ParseEsdkJsonManifest +// Dafny module ParseEsdkJsonManifest compiled into Go + +package ParseEsdkJsonManifest + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" + m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" + m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" + m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" + m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ +var _ m_WrappedESDK.Dummy__ +var _ m_EsdkManifestOptions.Dummy__ +var _ m_EsdkTestVectors.Dummy__ +var _ m_AllEsdkV4NoReqEc.Dummy__ +var _ m_AllEsdkV4WithReqEc.Dummy__ +var _ m_WriteEsdkJsonManifests.Dummy__ +var _ m_WriteVectors.Dummy__ + +type Dummy__ struct{} + +// Definition of class Default__ +type Default__ struct { + dummy byte +} + +func New_Default___() *Default__ { + _this := Default__{} + + return &_this +} + +type CompanionStruct_Default___ struct { +} + +var Companion_Default___ = CompanionStruct_Default___{} + +func (_this *Default__) Equals(other *Default__) bool { + return _this == other +} + +func (_this *Default__) EqualsGeneric(x interface{}) bool { + other, ok := x.(*Default__) + return ok && _this.Equals(other) +} + +func (*Default__) String() string { + return "ParseEsdkJsonManifest.Default__" +} +func (_this *Default__) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = &Default__{} + +func (_static *CompanionStruct_Default___) BuildDecryptTestVector(op m_EsdkManifestOptions.ManifestOptions, version _dafny.Int, keys *m_KeyVectors.KeyVectorsClient, obj _dafny.Sequence) m_Wrappers.Result { + var _hresult m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _hresult + var _0_i _dafny.Int + _ = _0_i + _0_i = _dafny.IntOfUint32((obj).Cardinality()) + var _1_vectors _dafny.Sequence + _ = _1_vectors + _1_vectors = _dafny.SeqOf() + for (_0_i).Sign() != 0 { + _0_i = (_0_i).Minus(_dafny.One) + var _2_test m_Wrappers.Result + _ = _2_test + _2_test = Companion_Default___.ToDecryptTestVectors(op, version, keys, (*((obj).Select((_0_i).Uint32()).(_dafny.Tuple)).IndexInt(0)).(_dafny.Sequence), (*((obj).Select((_0_i).Uint32()).(_dafny.Tuple)).IndexInt(1)).(m_JSON_Values.JSON)) + if ((_2_test).Is_Failure()) && (!_dafny.Companion_Sequence_.Equal((_2_test).Dtor_error().(_dafny.Sequence), Companion_Default___.NegativeTestVectorFound())) { + _hresult = m_Wrappers.Companion_Result_.Create_Failure_(Companion_Default___.BuildTestVectorError()) + return _hresult + } + if (_2_test).Is_Success() { + _1_vectors = _dafny.Companion_Sequence_.Concatenate(_dafny.SeqOf((_2_test).Dtor_value().(m_EsdkTestVectors.EsdkDecryptTestVector)), _1_vectors) + } + if ((_2_test).Is_Failure()) && (_dafny.Companion_Sequence_.Equal((_2_test).Dtor_error().(_dafny.Sequence), Companion_Default___.NegativeTestVectorFound())) { + _1_vectors = _1_vectors + } + } + _hresult = m_Wrappers.Companion_Result_.Create_Success_(_1_vectors) + return _hresult + return _hresult +} +func (_static *CompanionStruct_Default___) ToDecryptTestVectors(op m_EsdkManifestOptions.ManifestOptions, version _dafny.Int, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, json m_JSON_Values.JSON) m_Wrappers.Result { + var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((json).Is_Object(), _dafny.SeqOfString("Vector is not an object")) + _ = _0_valueOrError0 + if (_0_valueOrError0).IsFailure() { + return (_0_valueOrError0).PropagateFailure() + } else { + var _1_obj _dafny.Sequence = (json).Dtor_obj() + _ = _1_obj + var _source0 _dafny.Int = version + _ = _source0 + { + if (_source0).Cmp(_dafny.IntOfInt64(3)) == 0 { + var _2_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((op).Is_Decrypt(), _dafny.SeqOfString("Err parsing manifest expected Decrypt")) + _ = _2_valueOrError1 + if (_2_valueOrError1).IsFailure() { + return (_2_valueOrError1).PropagateFailure() + } else { + return Companion_Default___.V3ToDecryptTestVector(op, keys, name, _1_obj, version) + } + } + } + { + if (_source0).Cmp(_dafny.IntOfInt64(2)) == 0 { + var _3_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((op).Is_Decrypt(), _dafny.SeqOfString("Err parsing manifest expected Decrypt")) + _ = _3_valueOrError2 + if (_3_valueOrError2).IsFailure() { + return (_3_valueOrError2).PropagateFailure() + } else { + return Companion_Default___.V2ToDecryptTestVector(op, keys, name, _1_obj, version) + } + } + } + { + if (_source0).Cmp(_dafny.One) == 0 { + var _4_valueOrError3 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((op).Is_Decrypt(), _dafny.SeqOfString("Err parsing manifest expected Decrypt")) + _ = _4_valueOrError3 + if (_4_valueOrError3).IsFailure() { + return (_4_valueOrError3).PropagateFailure() + } else { + return Companion_Default___.V1ToDecryptTestVector(op, keys, name, _1_obj, version) + } + } + } + { + return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Version not supported\n")) + } + } +} +func (_static *CompanionStruct_Default___) BuildEncryptTestVector(op m_EsdkManifestOptions.ManifestOptions, version _dafny.Int, keys *m_KeyVectors.KeyVectorsClient, obj _dafny.Sequence) m_Wrappers.Result { + var _hresult m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _hresult + var _0_i _dafny.Int + _ = _0_i + _0_i = _dafny.IntOfUint32((obj).Cardinality()) + var _1_vectors _dafny.Sequence + _ = _1_vectors + _1_vectors = _dafny.SeqOf() + for (_0_i).Sign() != 0 { + _0_i = (_0_i).Minus(_dafny.One) + var _2_test m_Wrappers.Result + _ = _2_test + _2_test = Companion_Default___.ToEncryptTestVector(op, version, keys, (*((obj).Select((_0_i).Uint32()).(_dafny.Tuple)).IndexInt(0)).(_dafny.Sequence), (*((obj).Select((_0_i).Uint32()).(_dafny.Tuple)).IndexInt(1)).(m_JSON_Values.JSON)) + if (_2_test).Is_Failure() { + _hresult = m_Wrappers.Companion_Result_.Create_Failure_((_2_test).Dtor_error().(_dafny.Sequence)) + return _hresult + } + _1_vectors = _dafny.Companion_Sequence_.Concatenate(_dafny.SeqOf((_2_test).Dtor_value().(m_EsdkTestVectors.EsdkEncryptTestVector)), _1_vectors) + } + _hresult = m_Wrappers.Companion_Result_.Create_Success_(_1_vectors) + return _hresult + return _hresult +} +func (_static *CompanionStruct_Default___) ToEncryptTestVector(op m_EsdkManifestOptions.ManifestOptions, version _dafny.Int, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, json m_JSON_Values.JSON) m_Wrappers.Result { + var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((json).Is_Object(), _dafny.SeqOfString("EncryptTestVector not an object")) + _ = _0_valueOrError0 + if (_0_valueOrError0).IsFailure() { + return (_0_valueOrError0).PropagateFailure() + } else { + var _1_obj _dafny.Sequence = (json).Dtor_obj() + _ = _1_obj + var _source0 _dafny.Int = version + _ = _source0 + { + if (_source0).Cmp(_dafny.IntOfInt64(5)) == 0 { + return Companion_Default___.V5ToEncryptTestVector(op, keys, name, _1_obj, version) + } + } + { + return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Version not supported")) + } + } +} +func (_static *CompanionStruct_Default___) V5ToEncryptTestVector(op m_EsdkManifestOptions.ManifestOptions, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, obj _dafny.Sequence, version _dafny.Int) m_Wrappers.Result { + var _0_scenarioString _dafny.Sequence = _dafny.SeqOfString("encryption-scenario") + _ = _0_scenarioString + var _1_valueOrError0 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetObject(_0_scenarioString, obj) + _ = _1_valueOrError0 + if (_1_valueOrError0).IsFailure() { + return (_1_valueOrError0).PropagateFailure() + } else { + var _2_scenario _dafny.Sequence = (_1_valueOrError0).Extract().(_dafny.Sequence) + _ = _2_scenario + var _3_typeString _dafny.Sequence = _dafny.SeqOfString("type") + _ = _3_typeString + var _4_valueOrError1 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_3_typeString, _2_scenario) + _ = _4_valueOrError1 + if (_4_valueOrError1).IsFailure() { + return (_4_valueOrError1).PropagateFailure() + } else { + var _5_typ _dafny.Sequence = (_4_valueOrError1).Extract().(_dafny.Sequence) + _ = _5_typ + var _6_valueOrError2 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(Companion_Default___.PlaintextJsonKey(), _2_scenario) + _ = _6_valueOrError2 + if (_6_valueOrError2).IsFailure() { + return (_6_valueOrError2).PropagateFailure() + } else { + var _7_plaintextLoc _dafny.Sequence = (_6_valueOrError2).Extract().(_dafny.Sequence) + _ = _7_plaintextLoc + var _8_valueOrError3 m_Wrappers.Result = m_ParseJsonManifests.Companion_Default___.GetAlgorithmSuiteInfo(_2_scenario) + _ = _8_valueOrError3 + if (_8_valueOrError3).IsFailure() { + return (_8_valueOrError3).PropagateFailure() + } else { + var _9_algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo = (_8_valueOrError3).Extract().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) + _ = _9_algorithmSuite + var _10_valueOrError4 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need(((_9_algorithmSuite).Dtor_id()).Is_ESDK(), _dafny.SeqOfString("Unsupported algorithmSuiteId")) + _ = _10_valueOrError4 + if (_10_valueOrError4).IsFailure() { + return (_10_valueOrError4).PropagateFailure() + } else { + var _11_valueOrError5 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetOptionalPositiveLong(Companion_Default___.FrameSizeJsonKey(), _2_scenario) + _ = _11_valueOrError5 + if (_11_valueOrError5).IsFailure() { + return (_11_valueOrError5).PropagateFailure() + } else { + var _12_frameLength m_Wrappers.Option = (_11_valueOrError5).Extract().(m_Wrappers.Option) + _ = _12_frameLength + var _13_valueOrError6 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.SmallObjectToStringStringMap(Companion_Default___.EncryptionContextJsonKey(), _2_scenario) + _ = _13_valueOrError6 + if (_13_valueOrError6).IsFailure() { + return (_13_valueOrError6).PropagateFailure() + } else { + var _14_encryptionContextStrings _dafny.Map = (_13_valueOrError6).Extract().(_dafny.Map) + _ = _14_encryptionContextStrings + var _15_valueOrError7 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.Utf8EncodeMap(_14_encryptionContextStrings) + _ = _15_valueOrError7 + if (_15_valueOrError7).IsFailure() { + return (_15_valueOrError7).PropagateFailure() + } else { + var _16_encryptionContext _dafny.Map = (_15_valueOrError7).Extract().(_dafny.Map) + _ = _16_encryptionContext + var _17_valueOrError8 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.SmallObjectToStringStringMap(Companion_Default___.ReproducedEncryptionContextJsonKey(), _2_scenario) + _ = _17_valueOrError8 + if (_17_valueOrError8).IsFailure() { + return (_17_valueOrError8).PropagateFailure() + } else { + var _18_reproducedEncryptionContextString _dafny.Map = (_17_valueOrError8).Extract().(_dafny.Map) + _ = _18_reproducedEncryptionContextString + var _19_valueOrError9 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.Utf8EncodeMap(_18_reproducedEncryptionContextString) + _ = _19_valueOrError9 + if (_19_valueOrError9).IsFailure() { + return (_19_valueOrError9).PropagateFailure() + } else { + var _20_reproducedEncryptionContext _dafny.Map = (_19_valueOrError9).Extract().(_dafny.Map) + _ = _20_reproducedEncryptionContext + var _21_valueOrError10 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("description"), _2_scenario) + _ = _21_valueOrError10 + if (_21_valueOrError10).IsFailure() { + return (_21_valueOrError10).PropagateFailure() + } else { + var _22_description _dafny.Sequence = (_21_valueOrError10).Extract().(_dafny.Sequence) + _ = _22_description + var _source0 _dafny.Sequence = _5_typ + _ = _source0 + { + if (_source0).Equals(_dafny.SeqOfString("positive-esdk")) { + var _23_valueOrError11 m_Wrappers.Result = m_ParseJsonManifests.Companion_Default___.GetKeyDescription(keys, Companion_Default___.EncryptKeyDescription(), _2_scenario) + _ = _23_valueOrError11 + if (_23_valueOrError11).IsFailure() { + return (_23_valueOrError11).PropagateFailure() + } else { + var _24_encryptKeyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription = (_23_valueOrError11).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) + _ = _24_encryptKeyDescription + var _25_valueOrError12 m_Wrappers.Result = m_ParseJsonManifests.Companion_Default___.GetKeyDescription(keys, Companion_Default___.DecryptKeyDescription(), _2_scenario) + _ = _25_valueOrError12 + if (_25_valueOrError12).IsFailure() { + return (_25_valueOrError12).PropagateFailure() + } else { + var _26_decryptKeyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription = (_25_valueOrError12).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) + _ = _26_decryptKeyDescription + return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkTestVectors.Companion_EsdkEncryptTestVector_.Create_PositiveEncryptTestVector_(m_Wrappers.Companion_Option_.Create_Some_(name), version, (op).Dtor_manifestPath(), (op).Dtor_decryptManifestOutput(), _7_plaintextLoc, _24_encryptKeyDescription, _26_decryptKeyDescription, m_Wrappers.Companion_Option_.Create_Some_(_16_encryptionContext), m_Wrappers.Companion_Option_.Create_Some_(_20_reproducedEncryptionContext), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), _12_frameLength, m_Wrappers.Companion_Option_.Create_Some_(_9_algorithmSuite), _22_description, m_Wrappers.Companion_Option_.Create_Some_(int64(1)))) + } + } + } + } + { + return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOfString("Unsupported ESDK TestVector type: "), _5_typ)) + } + } + } + } + } + } + } + } + } + } + } + } +} +func (_static *CompanionStruct_Default___) V1ToDecryptTestVector(op m_EsdkManifestOptions.ManifestOptions, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, obj _dafny.Sequence, version _dafny.Int) m_Wrappers.Result { + var _0_valueOrError0 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("plaintext"), obj) + _ = _0_valueOrError0 + if (_0_valueOrError0).IsFailure() { + return (_0_valueOrError0).PropagateFailure() + } else { + var _1_plaintextLoc _dafny.Sequence = (_0_valueOrError0).Extract().(_dafny.Sequence) + _ = _1_plaintextLoc + var _2_valueOrError1 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("ciphertext"), obj) + _ = _2_valueOrError1 + if (_2_valueOrError1).IsFailure() { + return (_2_valueOrError1).PropagateFailure() + } else { + var _3_ciphertextLoc _dafny.Sequence = (_2_valueOrError1).Extract().(_dafny.Sequence) + _ = _3_ciphertextLoc + var _4_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _3_ciphertextLoc)) && (_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _1_plaintextLoc)), _dafny.SeqOfString("Invalid file prefix in test vector")) + _ = _4_valueOrError2 + if (_4_valueOrError2).IsFailure() { + return (_4_valueOrError2).PropagateFailure() + } else { + var _5_valueOrError3 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetArray(_dafny.SeqOfString("master-keys"), obj) + _ = _5_valueOrError3 + if (_5_valueOrError3).IsFailure() { + return (_5_valueOrError3).PropagateFailure() + } else { + var _6_masterKeys _dafny.Sequence = (_5_valueOrError3).Extract().(_dafny.Sequence) + _ = _6_masterKeys + var _7_valueOrError4 m_Wrappers.Result = Companion_Default___.GetKeyDescriptions(_6_masterKeys, keys) + _ = _7_valueOrError4 + if (_7_valueOrError4).IsFailure() { + return (_7_valueOrError4).PropagateFailure() + } else { + var _8_keyDescriptions _dafny.Sequence = (_7_valueOrError4).Extract().(_dafny.Sequence) + _ = _8_keyDescriptions + var _9_valueOrError5 m_Wrappers.Result = Companion_Default___.ToMultiKeyDescription(_8_keyDescriptions) + _ = _9_valueOrError5 + if (_9_valueOrError5).IsFailure() { + return (_9_valueOrError5).PropagateFailure() + } else { + var _10_keyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription = (_9_valueOrError5).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) + _ = _10_keyDescription + return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkTestVectors.Companion_EsdkDecryptTestVector_.Create_PositiveV1OrV2DecryptTestVector_(name, version, (op).Dtor_manifestPath(), (_3_ciphertextLoc).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), (_1_plaintextLoc).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), _10_keyDescription, m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), name, m_EsdkTestVectors.Companion_DecryptionMethod_.Create_OneShot_())) + } + } + } + } + } + } +} +func (_static *CompanionStruct_Default___) V2ToDecryptTestVector(op m_EsdkManifestOptions.ManifestOptions, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, obj _dafny.Sequence, version _dafny.Int) m_Wrappers.Result { + var _0_valueOrError0 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("result"), obj) + _ = _0_valueOrError0 + if (_0_valueOrError0).IsFailure() { + return (_0_valueOrError0).PropagateFailure() + } else { + var _1_resultLoc _dafny.Sequence = (_0_valueOrError0).Extract().(_dafny.Sequence) + _ = _1_resultLoc + var _2_errorLoc_q m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("error"), _1_resultLoc) + _ = _2_errorLoc_q + if (_2_errorLoc_q).Is_Success() { + return m_Wrappers.Companion_Result_.Create_Failure_(Companion_Default___.NegativeTestVectorFound()) + } else { + var _3_valueOrError1 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("output"), _1_resultLoc) + _ = _3_valueOrError1 + if (_3_valueOrError1).IsFailure() { + return (_3_valueOrError1).PropagateFailure() + } else { + var _4_outputLoc _dafny.Sequence = (_3_valueOrError1).Extract().(_dafny.Sequence) + _ = _4_outputLoc + var _5_valueOrError2 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("plaintext"), _4_outputLoc) + _ = _5_valueOrError2 + if (_5_valueOrError2).IsFailure() { + return (_5_valueOrError2).PropagateFailure() + } else { + var _6_plaintextLoc _dafny.Sequence = (_5_valueOrError2).Extract().(_dafny.Sequence) + _ = _6_plaintextLoc + var _7_valueOrError3 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("ciphertext"), obj) + _ = _7_valueOrError3 + if (_7_valueOrError3).IsFailure() { + return (_7_valueOrError3).PropagateFailure() + } else { + var _8_ciphertextLoc _dafny.Sequence = (_7_valueOrError3).Extract().(_dafny.Sequence) + _ = _8_ciphertextLoc + var _9_valueOrError4 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _8_ciphertextLoc)) && (_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _6_plaintextLoc)), _dafny.SeqOfString("Invalid file prefix in test vector")) + _ = _9_valueOrError4 + if (_9_valueOrError4).IsFailure() { + return (_9_valueOrError4).PropagateFailure() + } else { + var _10_valueOrError5 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetArray(_dafny.SeqOfString("master-keys"), obj) + _ = _10_valueOrError5 + if (_10_valueOrError5).IsFailure() { + return (_10_valueOrError5).PropagateFailure() + } else { + var _11_masterKeys _dafny.Sequence = (_10_valueOrError5).Extract().(_dafny.Sequence) + _ = _11_masterKeys + var _12_valueOrError6 m_Wrappers.Result = Companion_Default___.GetKeyDescriptions(_11_masterKeys, keys) + _ = _12_valueOrError6 + if (_12_valueOrError6).IsFailure() { + return (_12_valueOrError6).PropagateFailure() + } else { + var _13_keyDescriptions _dafny.Sequence = (_12_valueOrError6).Extract().(_dafny.Sequence) + _ = _13_keyDescriptions + var _14_valueOrError7 m_Wrappers.Result = Companion_Default___.ToMultiKeyDescription(_13_keyDescriptions) + _ = _14_valueOrError7 + if (_14_valueOrError7).IsFailure() { + return (_14_valueOrError7).PropagateFailure() + } else { + var _15_keyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription = (_14_valueOrError7).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) + _ = _15_keyDescription + return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkTestVectors.Companion_EsdkDecryptTestVector_.Create_PositiveV1OrV2DecryptTestVector_(name, version, (op).Dtor_manifestPath(), (_8_ciphertextLoc).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), (_6_plaintextLoc).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), _15_keyDescription, m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), name, m_EsdkTestVectors.Companion_DecryptionMethod_.Create_OneShot_())) + } + } + } + } + } + } + } + } + } +} +func (_static *CompanionStruct_Default___) V3ToDecryptTestVector(op m_EsdkManifestOptions.ManifestOptions, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, obj _dafny.Sequence, version _dafny.Int) m_Wrappers.Result { + var _0_scenarioString _dafny.Sequence = _dafny.SeqOfString("decryption-scenario") + _ = _0_scenarioString + var _1_valueOrError0 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetObject(_0_scenarioString, obj) + _ = _1_valueOrError0 + if (_1_valueOrError0).IsFailure() { + return (_1_valueOrError0).PropagateFailure() + } else { + var _2_scenario _dafny.Sequence = (_1_valueOrError0).Extract().(_dafny.Sequence) + _ = _2_scenario + var _3_typeString _dafny.Sequence = _dafny.SeqOfString("type") + _ = _3_typeString + var _4_valueOrError1 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_3_typeString, _2_scenario) + _ = _4_valueOrError1 + if (_4_valueOrError1).IsFailure() { + return (_4_valueOrError1).PropagateFailure() + } else { + var _5_typ _dafny.Sequence = (_4_valueOrError1).Extract().(_dafny.Sequence) + _ = _5_typ + var _6_valueOrError2 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(Companion_Default___.CiphertextJsonKey(), _2_scenario) + _ = _6_valueOrError2 + if (_6_valueOrError2).IsFailure() { + return (_6_valueOrError2).PropagateFailure() + } else { + var _7_ciphertextLoc _dafny.Sequence = (_6_valueOrError2).Extract().(_dafny.Sequence) + _ = _7_ciphertextLoc + var _8_valueOrError3 m_Wrappers.Result = m_ParseJsonManifests.Companion_Default___.GetAlgorithmSuiteInfo(_2_scenario) + _ = _8_valueOrError3 + if (_8_valueOrError3).IsFailure() { + return (_8_valueOrError3).PropagateFailure() + } else { + var _9_algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo = (_8_valueOrError3).Extract().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) + _ = _9_algorithmSuite + var _10_valueOrError4 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need(((_9_algorithmSuite).Dtor_id()).Is_ESDK(), _dafny.SeqOfString("Unsupported algorithmSuiteId")) + _ = _10_valueOrError4 + if (_10_valueOrError4).IsFailure() { + return (_10_valueOrError4).PropagateFailure() + } else { + var _11_valueOrError5 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetOptionalPositiveLong(Companion_Default___.FrameSizeJsonKey(), _2_scenario) + _ = _11_valueOrError5 + if (_11_valueOrError5).IsFailure() { + return (_11_valueOrError5).PropagateFailure() + } else { + var _12_frameLength m_Wrappers.Option = (_11_valueOrError5).Extract().(m_Wrappers.Option) + _ = _12_frameLength + var _13_valueOrError6 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.SmallObjectToStringStringMap(Companion_Default___.ReproducedEncryptionContextJsonKey(), _2_scenario) + _ = _13_valueOrError6 + if (_13_valueOrError6).IsFailure() { + return (_13_valueOrError6).PropagateFailure() + } else { + var _14_reproducedEncryptionContextStrings _dafny.Map = (_13_valueOrError6).Extract().(_dafny.Map) + _ = _14_reproducedEncryptionContextStrings + var _15_valueOrError7 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.Utf8EncodeMap(_14_reproducedEncryptionContextStrings) + _ = _15_valueOrError7 + if (_15_valueOrError7).IsFailure() { + return (_15_valueOrError7).PropagateFailure() + } else { + var _16_reproducedEncryptionContext _dafny.Map = (_15_valueOrError7).Extract().(_dafny.Map) + _ = _16_reproducedEncryptionContext + var _17_valueOrError8 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("description"), _2_scenario) + _ = _17_valueOrError8 + if (_17_valueOrError8).IsFailure() { + return (_17_valueOrError8).PropagateFailure() + } else { + var _18_description _dafny.Sequence = (_17_valueOrError8).Extract().(_dafny.Sequence) + _ = _18_description + var _19_valueOrError9 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("result"), _2_scenario) + _ = _19_valueOrError9 + if (_19_valueOrError9).IsFailure() { + return (_19_valueOrError9).PropagateFailure() + } else { + var _20_result _dafny.Sequence = (_19_valueOrError9).Extract().(_dafny.Sequence) + _ = _20_result + var _21_valueOrError10 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _7_ciphertextLoc)) && (_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _20_result)), _dafny.SeqOfString("Invalid file prefix in test vector")) + _ = _21_valueOrError10 + if (_21_valueOrError10).IsFailure() { + return (_21_valueOrError10).PropagateFailure() + } else { + var _source0 _dafny.Sequence = _5_typ + _ = _source0 + { + if (_source0).Equals(_dafny.SeqOfString("positive-esdk")) { + var _22_valueOrError11 m_Wrappers.Result = m_ParseJsonManifests.Companion_Default___.GetKeyDescription(keys, Companion_Default___.DecryptKeyDescription(), _2_scenario) + _ = _22_valueOrError11 + if (_22_valueOrError11).IsFailure() { + return (_22_valueOrError11).PropagateFailure() + } else { + var _23_decryptKeyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription = (_22_valueOrError11).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) + _ = _23_decryptKeyDescription + return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkTestVectors.Companion_EsdkDecryptTestVector_.Create_PositiveDecryptTestVector_(name, version, (op).Dtor_manifestPath(), (_7_ciphertextLoc).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), (_20_result).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), m_Wrappers.Companion_Option_.Create_Some_(_16_reproducedEncryptionContext), _23_decryptKeyDescription, m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), _12_frameLength, m_Wrappers.Companion_Option_.Create_Some_(_9_algorithmSuite), _18_description, m_EsdkTestVectors.Companion_DecryptionMethod_.Create_OneShot_())) + } + } + } + { + return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOfString("Unsupported ESDK TestVector type: "), _5_typ)) + } + } + } + } + } + } + } + } + } + } + } + } +} +func (_static *CompanionStruct_Default___) GetKeyDescriptions(keyArray _dafny.Sequence, keys *m_KeyVectors.KeyVectorsClient) m_Wrappers.Result { + if (_dafny.IntOfUint32((keyArray).Cardinality())).Sign() == 0 { + return m_Wrappers.Companion_Result_.Create_Success_(_dafny.SeqOf()) + } else { + var _0_currKey m_JSON_Values.JSON = (keyArray).Select(0).(m_JSON_Values.JSON) + _ = _0_currKey + var _1_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_0_currKey).Is_Object(), _dafny.SeqOfString("Not an object")) + _ = _1_valueOrError0 + if (_1_valueOrError0).IsFailure() { + return (_1_valueOrError0).PropagateFailure() + } else { + var _2_valueOrError1 m_Wrappers.Result = (m_JSON_API.Companion_Default___.Serialize(_0_currKey)).MapFailure(func(coer6 func(m_JSON_Errors.SerializationError) _dafny.Sequence) func(interface{}) interface{} { + return func(arg8 interface{}) interface{} { + return coer6(arg8.(m_JSON_Errors.SerializationError)) + } + }(func(_3_e m_JSON_Errors.SerializationError) _dafny.Sequence { + return (_3_e).ToString() + })) + _ = _2_valueOrError1 + if (_2_valueOrError1).IsFailure() { + return (_2_valueOrError1).PropagateFailure() + } else { + var _4_encryptStr _dafny.Sequence = (_2_valueOrError1).Extract().(_dafny.Sequence) + _ = _4_encryptStr + var _5_valueOrError2 m_Wrappers.Result = ((keys).GetKeyDescription(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_GetKeyDescriptionInput_.Create_GetKeyDescriptionInput_(_4_encryptStr))).MapFailure(func(coer7 func(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) _dafny.Sequence) func(interface{}) interface{} { + return func(arg9 interface{}) interface{} { + return coer7(arg9.(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error)) + } + }(m_ParseJsonManifests.Companion_Default___.ErrorToString)) + _ = _5_valueOrError2 + if (_5_valueOrError2).IsFailure() { + return (_5_valueOrError2).PropagateFailure() + } else { + var _6_encryptDecryptKeyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.GetKeyDescriptionOutput = (_5_valueOrError2).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.GetKeyDescriptionOutput) + _ = _6_encryptDecryptKeyDescription + var _7_valueOrError3 m_Wrappers.Result = Companion_Default___.GetKeyDescriptions((keyArray).Drop(1), keys) + _ = _7_valueOrError3 + if (_7_valueOrError3).IsFailure() { + return (_7_valueOrError3).PropagateFailure() + } else { + var _8_tail _dafny.Sequence = (_7_valueOrError3).Extract().(_dafny.Sequence) + _ = _8_tail + return m_Wrappers.Companion_Result_.Create_Success_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOf((_6_encryptDecryptKeyDescription).Dtor_keyDescription()), _8_tail)) + } + } + } + } + } +} +func (_static *CompanionStruct_Default___) ToMultiKeyDescription(keyDescriptions _dafny.Sequence) m_Wrappers.Result { + if (_dafny.IntOfUint32((keyDescriptions).Cardinality())).Cmp(_dafny.One) == 0 { + return m_Wrappers.Companion_Result_.Create_Success_((keyDescriptions).Select(0).(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription)) + } else { + var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((keyDescriptions).Cardinality())).Cmp(_dafny.One) > 0, _dafny.SeqOfString("Received invalid key description length")) + _ = _0_valueOrError0 + if (_0_valueOrError0).IsFailure() { + return (_0_valueOrError0).PropagateFailure() + } else { + return m_Wrappers.Companion_Result_.Create_Success_(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_KeyDescription_.Create_Multi_(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_MultiKeyring_.Create_MultiKeyring_(m_Wrappers.Companion_Option_.Create_Some_((keyDescriptions).Select(0).(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription)), (keyDescriptions).Drop(1)))) + } + } +} +func (_static *CompanionStruct_Default___) GetPath(key _dafny.Sequence, obj _dafny.Sequence) m_Wrappers.Result { + var _0_valueOrError0 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(key, obj) + _ = _0_valueOrError0 + if (_0_valueOrError0).IsFailure() { + return (_0_valueOrError0).PropagateFailure() + } else { + var _1_path _dafny.Sequence = (_0_valueOrError0).Extract().(_dafny.Sequence) + _ = _1_path + var _2_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need(_dafny.Companion_Sequence_.IsProperPrefixOf(Companion_Default___.FILE__PREPEND(), _1_path), _dafny.SeqOfString("Received Invalid location for plaintext or ciphertext.")) + _ = _2_valueOrError1 + if (_2_valueOrError1).IsFailure() { + return (_2_valueOrError1).PropagateFailure() + } else { + return m_Wrappers.Companion_Result_.Create_Success_((_1_path).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32())) + } + } +} +func (_static *CompanionStruct_Default___) Result_q(key _dafny.Sequence) bool { + return (_dafny.Companion_Sequence_.Equal(key, _dafny.SeqOfString("output"))) || (_dafny.Companion_Sequence_.Equal(key, _dafny.SeqOfString("error"))) +} +func (_static *CompanionStruct_Default___) CiphertextJsonKey() _dafny.Sequence { + return _dafny.SeqOfString("ciphertext") +} +func (_static *CompanionStruct_Default___) FrameSizeJsonKey() _dafny.Sequence { + return _dafny.SeqOfString("frame-size") +} +func (_static *CompanionStruct_Default___) ReproducedEncryptionContextJsonKey() _dafny.Sequence { + return _dafny.SeqOfString("reproduced-encryption-context") +} +func (_static *CompanionStruct_Default___) DecryptKeyDescription() _dafny.Sequence { + return _dafny.SeqOfString("decryptKeyDescription") +} +func (_static *CompanionStruct_Default___) FILE__PREPEND() _dafny.Sequence { + return _dafny.SeqOfString("file://") +} +func (_static *CompanionStruct_Default___) NegativeTestVectorFound() _dafny.Sequence { + return _dafny.SeqOfString("Negative test vector found; not supported yet.") +} +func (_static *CompanionStruct_Default___) BuildTestVectorError() _dafny.Sequence { + return _dafny.SeqOfString("Error other than negative test vector found thrown") +} +func (_static *CompanionStruct_Default___) PlaintextJsonKey() _dafny.Sequence { + return _dafny.SeqOfString("plaintext") +} +func (_static *CompanionStruct_Default___) EncryptionContextJsonKey() _dafny.Sequence { + return _dafny.SeqOfString("encryption-context") +} +func (_static *CompanionStruct_Default___) EncryptKeyDescription() _dafny.Sequence { + return _dafny.SeqOfString("encryptKeyDescription") +} +func (_static *CompanionStruct_Default___) MasterKeysJsonKey() _dafny.Sequence { + return _dafny.SeqOfString("master-keys") +} +func (_static *CompanionStruct_Default___) DecryptionMethodJsonKey() _dafny.Sequence { + return _dafny.SeqOfString("decryption-method") +} + +// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDK/WrappedESDK.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDK/WrappedESDK.go new file mode 100644 index 000000000..0e646bbd5 --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDK/WrappedESDK.go @@ -0,0 +1,449 @@ +// Package WrappedESDK +// Dafny module WrappedESDK compiled into Go + +package WrappedESDK + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ + +type Dummy__ struct{} + +// Definition of class Default__ +type Default__ struct { + dummy byte +} + +func New_Default___() *Default__ { + _this := Default__{} + + return &_this +} + +type CompanionStruct_Default___ struct { +} + +var Companion_Default___ = CompanionStruct_Default___{} + +func (_this *Default__) Equals(other *Default__) bool { + return _this == other +} + +func (_this *Default__) EqualsGeneric(x interface{}) bool { + other, ok := x.(*Default__) + return ok && _this.Equals(other) +} + +func (*Default__) String() string { + return "WrappedESDK.Default__" +} +func (_this *Default__) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = &Default__{} + +func (_static *CompanionStruct_Default___) WrappedDefaultAwsEncryptionSdkConfig() m_AwsCryptographyEncryptionSdkTypes.AwsEncryptionSdkConfig { + return m_AwsCryptographyEncryptionSdkTypes.Companion_AwsEncryptionSdkConfig_.Create_AwsEncryptionSdkConfig_(m_Wrappers.Companion_Option_.Create_Some_(m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_REQUIRE__ENCRYPT__REQUIRE__DECRYPT_()), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_()) +} +func (_static *CompanionStruct_Default___) WrappedAwsEncryptionSdkConfigWithSuppliedCommitment(commitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy) m_AwsCryptographyEncryptionSdkTypes.AwsEncryptionSdkConfig { + return m_AwsCryptographyEncryptionSdkTypes.Companion_AwsEncryptionSdkConfig_.Create_AwsEncryptionSdkConfig_(m_Wrappers.Companion_Option_.Create_Some_(commitmentPolicy), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_()) +} +func (_static *CompanionStruct_Default___) WrappedAwsEncryptionSdkConfig(commitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, maxEncryptedDataKeys int64, netV4__0__0__RetryPolicy m_AwsCryptographyEncryptionSdkTypes.NetV4__0__0__RetryPolicy) m_AwsCryptographyEncryptionSdkTypes.AwsEncryptionSdkConfig { + return m_AwsCryptographyEncryptionSdkTypes.Companion_AwsEncryptionSdkConfig_.Create_AwsEncryptionSdkConfig_(m_Wrappers.Companion_Option_.Create_Some_(commitmentPolicy), m_Wrappers.Companion_Option_.Create_Some_(maxEncryptedDataKeys), m_Wrappers.Companion_Option_.Create_Some_(netV4__0__0__RetryPolicy)) +} + +// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDKMain/WrappedESDKMain.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDKMain/WrappedESDKMain.go new file mode 100644 index 000000000..e3ca772e7 --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDKMain/WrappedESDKMain.go @@ -0,0 +1,689 @@ +// Package WrappedESDKMain +// Dafny module WrappedESDKMain compiled into Go + +package WrappedESDKMain + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" + m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" + m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" + m_EsdkTestManifests "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestManifests" + m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" + m_ParseEsdkJsonManifest "github.com/aws/aws-encryption-sdk/testvectors/ParseEsdkJsonManifest" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" + m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ +var _ m_WrappedESDK.Dummy__ +var _ m_EsdkManifestOptions.Dummy__ +var _ m_EsdkTestVectors.Dummy__ +var _ m_AllEsdkV4NoReqEc.Dummy__ +var _ m_AllEsdkV4WithReqEc.Dummy__ +var _ m_WriteEsdkJsonManifests.Dummy__ +var _ m_WriteVectors.Dummy__ +var _ m_ParseEsdkJsonManifest.Dummy__ +var _ m_EsdkTestManifests.Dummy__ + +type Dummy__ struct{} + +// Definition of class Default__ +type Default__ struct { + dummy byte +} + +func New_Default___() *Default__ { + _this := Default__{} + + return &_this +} + +type CompanionStruct_Default___ struct { +} + +var Companion_Default___ = CompanionStruct_Default___{} + +func (_this *Default__) Equals(other *Default__) bool { + return _this == other +} + +func (_this *Default__) EqualsGeneric(x interface{}) bool { + other, ok := x.(*Default__) + return ok && _this.Equals(other) +} + +func (*Default__) String() string { + return "WrappedESDKMain.Default__" +} +func (_this *Default__) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = &Default__{} + +func (_static *CompanionStruct_Default___) Main2(args _dafny.Sequence) { + var _0_vectorOptions m_GetOpt.Options + _ = _0_vectorOptions + _0_vectorOptions = m_GetOpt.Companion_Options_.Create_Options_(_dafny.SeqOfString("test-vectors"), _dafny.SeqOfString("?"), _dafny.SeqOf(m_GetOpt.Companion_Param_.Create_Command_(m_GetOpt.Companion_Options_.Create_Options_(_dafny.SeqOfString("decrypt"), _dafny.SeqOfString("decrypt command for test-vectors"), _dafny.SeqOf(m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("manifest-path"), _dafny.SeqOfString("relative path to the location of the manifest"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_Required_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_()), m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("manifest-name"), _dafny.SeqOfString("name of file that contains the decrypt vectors file"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_Required_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_()), m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("test-name"), _dafny.SeqOfString("id of the test to run"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_UnusedOk_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_())))), m_GetOpt.Companion_Param_.Create_Command_(m_GetOpt.Companion_Options_.Create_Options_(_dafny.SeqOfString("encrypt"), _dafny.SeqOfString("encrypt command for test-vectors"), _dafny.SeqOf(m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("manifest-path"), _dafny.SeqOfString("relative path to the location of the manifest"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_Required_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_()), m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("decrypt-manifest-path"), _dafny.SeqOfString("relative path to the location where the decrypted manifest will be written to."), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_Required_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_()), m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("test-name"), _dafny.SeqOfString("id of the test to run"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_UnusedOk_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_())))), m_GetOpt.Companion_Param_.Create_Command_(m_GetOpt.Companion_Options_.Create_Options_(_dafny.SeqOfString("encrypt-manifest"), _dafny.SeqOfString("encryp manifest command for test-vectors"), _dafny.SeqOf(m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("encrypt-manifest-output"), _dafny.SeqOfString("relative path of where to store the encrypt-manifest produced"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_Required_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_())))))) + if !((_dafny.IntOfUint32((args).Cardinality())).Sign() == 1) { + panic("dafny/TestVectors/src/Index.dfy(40,4): " + (_dafny.SeqOfString("expectation violation")).String()) + } + var _1_parsedOptions_q m_Wrappers.Result + _ = _1_parsedOptions_q + _1_parsedOptions_q = m_GetOpt.Companion_Default___.GetOptions(_0_vectorOptions, args) + if (_1_parsedOptions_q).Is_Success() { + var _2_h m_Wrappers.Option + _ = _2_h + _2_h = m_GetOpt.Companion_Default___.NeedsHelp(_0_vectorOptions, (_1_parsedOptions_q).Dtor_value().(m_GetOpt.Parsed), _dafny.SeqOfString("")) + if (_2_h).Is_Some() { + _dafny.Print(((_2_h).Dtor_value().(_dafny.Sequence)).SetString()) + return + } + var _3_op_q m_Wrappers.Result + _ = _3_op_q + _3_op_q = Companion_Default___.ParseCommandLineOptions((_1_parsedOptions_q).Dtor_value().(m_GetOpt.Parsed)) + if (_3_op_q).Is_Success() { + var _4_op m_EsdkManifestOptions.ManifestOptions + _ = _4_op + _4_op = (_3_op_q).Dtor_value().(m_EsdkManifestOptions.ManifestOptions) + var _source0 m_EsdkManifestOptions.ManifestOptions = _4_op + _ = _source0 + { + { + if _source0.Is_Decrypt() { + var _5_result m_Wrappers.Result + _ = _5_result + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = m_EsdkTestManifests.Companion_Default___.StartDecryptVectors(_4_op) + _5_result = _out0 + if (_5_result).Is_Failure() { + _dafny.Print(((_5_result).Dtor_error().(_dafny.Sequence)).SetString()) + } + if !((_5_result).Is_Success()) { + panic("dafny/TestVectors/src/Index.dfy(59,10): " + (_dafny.SeqOfString("expectation violation")).String()) + } + goto Lmatch0 + } + } + { + if _source0.Is_Encrypt() { + var _6_result m_Wrappers.Result + _ = _6_result + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = m_EsdkTestManifests.Companion_Default___.StartEncryptVectors(_4_op) + _6_result = _out1 + if (_6_result).Is_Failure() { + _dafny.Print(((_6_result).Dtor_error().(_dafny.Sequence)).SetString()) + } + if !((_6_result).Is_Success()) { + panic("dafny/TestVectors/src/Index.dfy(65,10): " + (_dafny.SeqOfString("expectation violation")).String()) + } + goto Lmatch0 + } + } + { + var _7_result m_Wrappers.Result + _ = _7_result + var _out2 m_Wrappers.Result + _ = _out2 + _out2 = m_WriteVectors.Companion_Default___.WriteTestVectors(_4_op) + _7_result = _out2 + if (_7_result).Is_Failure() { + _dafny.Print(((_7_result).Dtor_error().(_dafny.Sequence)).SetString()) + } + if !((_7_result).Is_Success()) { + panic("dafny/TestVectors/src/Index.dfy(71,10): " + (_dafny.SeqOfString("expectation violation")).String()) + } + } + goto Lmatch0 + } + Lmatch0: + } else { + _dafny.Print((_dafny.Companion_Sequence_.Concatenate((_3_op_q).Dtor_error().(_dafny.Sequence), _dafny.SeqOfString("\n"))).SetString()) + _dafny.Print((_dafny.SeqOfString("help\n")).SetString()) + } + } else { + _dafny.Print((_dafny.Companion_Sequence_.Concatenate((_1_parsedOptions_q).Dtor_error().(_dafny.Sequence), _dafny.SeqOfString("\n"))).SetString()) + } +} +func (_static *CompanionStruct_Default___) ParseCommandLineOptions(parsedOptions m_GetOpt.Parsed) m_Wrappers.Result { + var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need(((parsedOptions).Dtor_subcommand()).Is_Some(), _dafny.SeqOfString("Must supply subcommand\n")) + _ = _0_valueOrError0 + if (_0_valueOrError0).IsFailure() { + return (_0_valueOrError0).PropagateFailure() + } else { + var _source0 _dafny.Sequence = (((parsedOptions).Dtor_subcommand()).Dtor_value().(m_GetOpt.Parsed)).Dtor_command() + _ = _source0 + { + if (_source0).Equals(_dafny.SeqOfString("decrypt")) { + return Companion_Default___.ParseDecryptCmd((((parsedOptions).Dtor_subcommand()).Dtor_value().(m_GetOpt.Parsed)).Dtor_params()) + } + } + { + if (_source0).Equals(_dafny.SeqOfString("encrypt")) { + return Companion_Default___.ParseEncryptCmd((((parsedOptions).Dtor_subcommand()).Dtor_value().(m_GetOpt.Parsed)).Dtor_params()) + } + } + { + if (_source0).Equals(_dafny.SeqOfString("encrypt-manifest")) { + return Companion_Default___.ParseEncryptManifestCmd((((parsedOptions).Dtor_subcommand()).Dtor_value().(m_GetOpt.Parsed)).Dtor_params()) + } + } + { + return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Received unknown subcommand")) + } + } +} +func (_static *CompanionStruct_Default___) ParseDecryptCmd(params _dafny.Sequence) m_Wrappers.Result { + var _0_manifestPath_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("manifest-path")) + _ = _0_manifestPath_q + var _1_testName_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("test-name")) + _ = _1_testName_q + var _2_manifestFileName_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("manifest-name")) + _ = _2_manifestFileName_q + var _3_manifestPath _dafny.Sequence = (func() _dafny.Sequence { + if (_0_manifestPath_q).Is_Some() { + return (_0_manifestPath_q).Dtor_value().(_dafny.Sequence) + } + return _dafny.SeqOfString(".") + })() + _ = _3_manifestPath + var _4_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((_3_manifestPath).Cardinality())).Sign() == 1, _dafny.SeqOfString("Invalid manifest path length\n")) + _ = _4_valueOrError0 + if (_4_valueOrError0).IsFailure() { + return (_4_valueOrError0).PropagateFailure() + } else { + var _5_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_2_manifestFileName_q).Is_Some(), _dafny.SeqOfString("Must supply manifest file name")) + _ = _5_valueOrError1 + if (_5_valueOrError1).IsFailure() { + return (_5_valueOrError1).PropagateFailure() + } else { + var _6_manifestFileName _dafny.Sequence = (_2_manifestFileName_q).Dtor_value().(_dafny.Sequence) + _ = _6_manifestFileName + return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_Decrypt_((func() _dafny.Sequence { + if (m_Seq.Companion_Default___.Last(_3_manifestPath).(_dafny.Char)) == (_dafny.Char('/')) { + return _3_manifestPath + } + return _dafny.Companion_Sequence_.Concatenate(_3_manifestPath, _dafny.SeqOfString("/")) + })(), _6_manifestFileName, (func() m_Wrappers.Option { + if (_1_testName_q).Is_Some() { + return _1_testName_q + } + return m_Wrappers.Companion_Option_.Create_None_() + })())) + } + } +} +func (_static *CompanionStruct_Default___) ParseEncryptCmd(params _dafny.Sequence) m_Wrappers.Result { + var _0_manifestPath_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("manifest-path")) + _ = _0_manifestPath_q + var _1_manifestName_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("manifest")) + _ = _1_manifestName_q + var _2_decryptManifestPath_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("decrypt-manifest-path")) + _ = _2_decryptManifestPath_q + var _3_testName_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("test-name")) + _ = _3_testName_q + var _4_manifestPath _dafny.Sequence = (func() _dafny.Sequence { + if (_0_manifestPath_q).Is_Some() { + return (_0_manifestPath_q).Dtor_value().(_dafny.Sequence) + } + return _dafny.SeqOfString(".") + })() + _ = _4_manifestPath + var _5_manifestName _dafny.Sequence = (func() _dafny.Sequence { + if (_1_manifestName_q).Is_Some() { + return (_1_manifestName_q).Dtor_value().(_dafny.Sequence) + } + return _dafny.SeqOfString("encrypt-manifest.json") + })() + _ = _5_manifestName + var _6_decryptManifestPath _dafny.Sequence = (func() _dafny.Sequence { + if (_2_decryptManifestPath_q).Is_Some() { + return (_2_decryptManifestPath_q).Dtor_value().(_dafny.Sequence) + } + return _dafny.SeqOfString(".") + })() + _ = _6_decryptManifestPath + var _7_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need(((_dafny.IntOfUint32((_4_manifestPath).Cardinality())).Sign() == 1) && ((_dafny.IntOfUint32((_6_decryptManifestPath).Cardinality())).Sign() == 1), _dafny.SeqOfString("Invalid manifest or decrypt manifest path length\n")) + _ = _7_valueOrError0 + if (_7_valueOrError0).IsFailure() { + return (_7_valueOrError0).PropagateFailure() + } else { + return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_Encrypt_((func() _dafny.Sequence { + if (m_Seq.Companion_Default___.Last(_4_manifestPath).(_dafny.Char)) == (_dafny.Char('/')) { + return _4_manifestPath + } + return _dafny.Companion_Sequence_.Concatenate(_4_manifestPath, _dafny.SeqOfString("/")) + })(), _5_manifestName, (func() _dafny.Sequence { + if (m_Seq.Companion_Default___.Last(_6_decryptManifestPath).(_dafny.Char)) == (_dafny.Char('/')) { + return _6_decryptManifestPath + } + return _dafny.Companion_Sequence_.Concatenate(_6_decryptManifestPath, _dafny.SeqOfString("/")) + })(), (func() m_Wrappers.Option { + if (_3_testName_q).Is_Some() { + return _3_testName_q + } + return m_Wrappers.Companion_Option_.Create_None_() + })())) + } +} +func (_static *CompanionStruct_Default___) ParseEncryptManifestCmd(params _dafny.Sequence) m_Wrappers.Result { + var _0_encryptManifestOutput_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("encrypt-manifest-output")) + _ = _0_encryptManifestOutput_q + var _1_encryptManifestOutput _dafny.Sequence = (func() _dafny.Sequence { + if (_0_encryptManifestOutput_q).Is_Some() { + return (_0_encryptManifestOutput_q).Dtor_value().(_dafny.Sequence) + } + return _dafny.SeqOfString(".") + })() + _ = _1_encryptManifestOutput + var _2_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((_1_encryptManifestOutput).Cardinality())).Sign() == 1, _dafny.SeqOfString("Invalid encrypt manifest output length")) + _ = _2_valueOrError0 + if (_2_valueOrError0).IsFailure() { + return (_2_valueOrError0).PropagateFailure() + } else { + return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_EncryptManifest_((func() _dafny.Sequence { + if (m_Seq.Companion_Default___.Last(_1_encryptManifestOutput).(_dafny.Char)) == (_dafny.Char('/')) { + return _1_encryptManifestOutput + } + return _dafny.Companion_Sequence_.Concatenate(_1_encryptManifestOutput, _dafny.SeqOfString("/")) + })(), _dafny.IntOfInt64(5))) + } +} + +// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteEsdkJsonManifests/WriteEsdkJsonManifests.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteEsdkJsonManifests/WriteEsdkJsonManifests.go new file mode 100644 index 000000000..4f3af9a3c --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteEsdkJsonManifests/WriteEsdkJsonManifests.go @@ -0,0 +1,683 @@ +// Package WriteEsdkJsonManifests +// Dafny module WriteEsdkJsonManifests compiled into Go + +package WriteEsdkJsonManifests + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" + m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" + m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" + m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_SortedSets "github.com/dafny-lang/DafnyStandardLibGo/SortedSets" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UTF8 "github.com/dafny-lang/DafnyStandardLibGo/UTF8" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ +var _ m_WrappedESDK.Dummy__ +var _ m_EsdkManifestOptions.Dummy__ +var _ m_EsdkTestVectors.Dummy__ +var _ m_AllEsdkV4NoReqEc.Dummy__ +var _ m_AllEsdkV4WithReqEc.Dummy__ + +type Dummy__ struct{} + +// Definition of class Default__ +type Default__ struct { + dummy byte +} + +func New_Default___() *Default__ { + _this := Default__{} + + return &_this +} + +type CompanionStruct_Default___ struct { +} + +var Companion_Default___ = CompanionStruct_Default___{} + +func (_this *Default__) Equals(other *Default__) bool { + return _this == other +} + +func (_this *Default__) EqualsGeneric(x interface{}) bool { + other, ok := x.(*Default__) + return ok && _this.Equals(other) +} + +func (*Default__) String() string { + return "WriteEsdkJsonManifests.Default__" +} +func (_this *Default__) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = &Default__{} + +func (_static *CompanionStruct_Default___) EncryptionContextKeysToJson(keys m_Wrappers.Option) m_Wrappers.Result { + if (keys).Is_Some() { + var _0_valueOrError0 m_Wrappers.Result = m_Seq.Companion_Default___.MapWithResult(func(coer2 func(_dafny.Sequence) m_Wrappers.Result) func(interface{}) m_Wrappers.Result { + return func(arg2 interface{}) m_Wrappers.Result { + return coer2(arg2.(_dafny.Sequence)) + } + }(func(_1_bytes _dafny.Sequence) m_Wrappers.Result { + return func(_pat_let0_0 m_Wrappers.Result) m_Wrappers.Result { + return func(_2_valueOrError1 m_Wrappers.Result) m_Wrappers.Result { + return (func() m_Wrappers.Result { + if (_2_valueOrError1).IsFailure() { + return (_2_valueOrError1).PropagateFailure() + } + return func(_pat_let1_0 _dafny.Sequence) m_Wrappers.Result { + return func(_3_key _dafny.Sequence) m_Wrappers.Result { + return m_Wrappers.Companion_Result_.Create_Success_(m_JSON_Values.Companion_JSON_.Create_String_(_3_key)) + }(_pat_let1_0) + }((_2_valueOrError1).Extract().(_dafny.Sequence)) + })() + }(_pat_let0_0) + }(m_UTF8.Decode(_1_bytes)) + }), (keys).Dtor_value().(_dafny.Sequence)) + _ = _0_valueOrError0 + if (_0_valueOrError0).IsFailure() { + return (_0_valueOrError0).PropagateFailure() + } else { + var _4_tmp _dafny.Sequence = (_0_valueOrError0).Extract().(_dafny.Sequence) + _ = _4_tmp + return m_Wrappers.Companion_Result_.Create_Success_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("requiredEncryptionContextKeys"), m_JSON_Values.Companion_JSON_.Create_Array_(_4_tmp)))) + } + } else { + return m_Wrappers.Companion_Result_.Create_Success_(_dafny.SeqOf()) + } +} +func (_static *CompanionStruct_Default___) EncryptionContextToJson(key _dafny.Sequence, m _dafny.Map) m_Wrappers.Result { + var _0_keys _dafny.Sequence = m_SortedSets.SetToOrderedSequence2((m).Keys(), func(coer3 func(uint8, uint8) bool) func(interface{}, interface{}) bool { + return func(arg3 interface{}, arg4 interface{}) bool { + return coer3(arg3.(uint8), arg4.(uint8)) + } + }(func(_1_a uint8, _2_b uint8) bool { + return (_1_a) < (_2_b) + })) + _ = _0_keys + var _3_valueOrError0 m_Wrappers.Result = m_Seq.Companion_Default___.MapWithResult(func(coer4 func(_dafny.Sequence) m_Wrappers.Result) func(interface{}) m_Wrappers.Result { + return func(arg5 interface{}) m_Wrappers.Result { + return coer4(arg5.(_dafny.Sequence)) + } + }((func(_4_m _dafny.Map) func(_dafny.Sequence) m_Wrappers.Result { + return func(_5_k _dafny.Sequence) m_Wrappers.Result { + return func(_pat_let2_0 m_Wrappers.Result) m_Wrappers.Result { + return func(_6_valueOrError1 m_Wrappers.Result) m_Wrappers.Result { + return (func() m_Wrappers.Result { + if (_6_valueOrError1).IsFailure() { + return (_6_valueOrError1).PropagateFailure() + } + return func(_pat_let3_0 _dafny.Sequence) m_Wrappers.Result { + return func(_7_key _dafny.Sequence) m_Wrappers.Result { + return func(_pat_let4_0 m_Wrappers.Result) m_Wrappers.Result { + return func(_8_valueOrError2 m_Wrappers.Result) m_Wrappers.Result { + return (func() m_Wrappers.Result { + if (_8_valueOrError2).IsFailure() { + return (_8_valueOrError2).PropagateFailure() + } + return func(_pat_let5_0 _dafny.Sequence) m_Wrappers.Result { + return func(_9_value _dafny.Sequence) m_Wrappers.Result { + return m_Wrappers.Companion_Result_.Create_Success_(_dafny.TupleOf(_7_key, m_JSON_Values.Companion_JSON_.Create_String_(_9_value))) + }(_pat_let5_0) + }((_8_valueOrError2).Extract().(_dafny.Sequence)) + })() + }(_pat_let4_0) + }(m_UTF8.Decode((_4_m).Get(_5_k).(_dafny.Sequence))) + }(_pat_let3_0) + }((_6_valueOrError1).Extract().(_dafny.Sequence)) + })() + }(_pat_let2_0) + }(m_UTF8.Decode(_5_k)) + } + })(m)), _0_keys) + _ = _3_valueOrError0 + if (_3_valueOrError0).IsFailure() { + return (_3_valueOrError0).PropagateFailure() + } else { + var _10_pairsBytes _dafny.Sequence = (_3_valueOrError0).Extract().(_dafny.Sequence) + _ = _10_pairsBytes + return m_Wrappers.Companion_Result_.Create_Success_(_dafny.SeqOf(_dafny.TupleOf(key, m_JSON_Values.Companion_JSON_.Create_Object_(_10_pairsBytes)))) + } +} +func (_static *CompanionStruct_Default___) PrintJson(j m_JSON_Values.JSON) _dafny.Tuple { + var _hresult _dafny.Tuple = _dafny.TupleOf() + _ = _hresult + _dafny.Print(j) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + _hresult = _dafny.TupleOf() + return _hresult + return _hresult +} +func (_static *CompanionStruct_Default___) EncryptTestVectorToJson(test m_EsdkTestVectors.EsdkEncryptTestVector) m_Wrappers.Result { + var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((((test).Dtor_algorithmSuiteId()).Is_Some()) && (((test).Dtor_frameLength()).Is_Some()), _dafny.SeqOfString("test is missing algorithmSuite ID, or frameLength")) + _ = _0_valueOrError0 + if (_0_valueOrError0).IsFailure() { + return (_0_valueOrError0).PropagateFailure() + } else { + var _1_id _dafny.Sequence = m_AllAlgorithmSuites.Companion_Default___.ToHex(((test).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) + _ = _1_id + var _2_valueOrError1 m_Wrappers.Result = (func() m_Wrappers.Result { + if ((test).Dtor_encryptionContext()).Is_Some() { + return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("encryption-context"), ((test).Dtor_encryptionContext()).Dtor_value().(_dafny.Map)) + } + return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("encryption-context"), _dafny.NewMapBuilder().ToMap()) + })() + _ = _2_valueOrError1 + if (_2_valueOrError1).IsFailure() { + return (_2_valueOrError1).PropagateFailure() + } else { + var _3_encryptionContext _dafny.Sequence = (_2_valueOrError1).Extract().(_dafny.Sequence) + _ = _3_encryptionContext + var _4_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((_3_encryptionContext).Cardinality())).Cmp(_dafny.One) == 0, _dafny.SeqOfString("Error parsing encryption context")) + _ = _4_valueOrError2 + if (_4_valueOrError2).IsFailure() { + return (_4_valueOrError2).PropagateFailure() + } else { + var _5_valueOrError3 m_Wrappers.Result = (func() m_Wrappers.Result { + if ((test).Dtor_reproducedEncryptionContext()).Is_Some() { + return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("reproduced-encryption-context"), ((test).Dtor_reproducedEncryptionContext()).Dtor_value().(_dafny.Map)) + } + return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("reproduced-encryption-context"), _dafny.NewMapBuilder().ToMap()) + })() + _ = _5_valueOrError3 + if (_5_valueOrError3).IsFailure() { + return (_5_valueOrError3).PropagateFailure() + } else { + var _6_reproducedEncryptionContext _dafny.Sequence = (_5_valueOrError3).Extract().(_dafny.Sequence) + _ = _6_reproducedEncryptionContext + var _7_optionalValues _dafny.Sequence = _dafny.Companion_Sequence_.Concatenate(_3_encryptionContext, _6_reproducedEncryptionContext) + _ = _7_optionalValues + var _source0 m_EsdkTestVectors.EsdkEncryptTestVector = test + _ = _source0 + { + if _source0.Is_PositiveEncryptTestVector() { + var _8_valueOrError4 m_Wrappers.Result = m_KeyDescription.Companion_Default___.ToJson((test).Dtor_encryptDescriptions(), _dafny.IntOfInt64(3)) + _ = _8_valueOrError4 + if (_8_valueOrError4).IsFailure() { + return (_8_valueOrError4).PropagateFailure() + } else { + var _9_encrypt m_JSON_Values.JSON = (_8_valueOrError4).Extract().(m_JSON_Values.JSON) + _ = _9_encrypt + var _10_valueOrError5 m_Wrappers.Result = m_KeyDescription.Companion_Default___.ToJson((test).Dtor_decryptDescriptions(), _dafny.IntOfInt64(3)) + _ = _10_valueOrError5 + if (_10_valueOrError5).IsFailure() { + return (_10_valueOrError5).PropagateFailure() + } else { + var _11_decrypt m_JSON_Values.JSON = (_10_valueOrError5).Extract().(m_JSON_Values.JSON) + _ = _11_decrypt + var _12_scenario m_JSON_Values.JSON = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("type"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("positive-esdk"))), _dafny.TupleOf(_dafny.SeqOfString("plaintext"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("small"))), _dafny.TupleOf(_dafny.SeqOfString("description"), m_JSON_Values.Companion_JSON_.Create_String_((test).Dtor_description())), _dafny.TupleOf(_dafny.SeqOfString("algorithmSuiteId"), m_JSON_Values.Companion_JSON_.Create_String_(_1_id)), _dafny.TupleOf(_dafny.SeqOfString("frame-size"), m_JSON_Values.Companion_JSON_.Create_Number_(m_JSON_Values.Companion_Default___.Int(_dafny.IntOfInt64(((test).Dtor_frameLength()).Dtor_value().(int64))))), _dafny.TupleOf(_dafny.SeqOfString("encryptKeyDescription"), _9_encrypt), _dafny.TupleOf(_dafny.SeqOfString("decryptKeyDescription"), _11_decrypt)), _7_optionalValues)) + _ = _12_scenario + return m_Wrappers.Companion_Result_.Create_Success_(m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("encryption-scenario"), _12_scenario)))) + } + } + } + } + { + return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Only Positive Tests supported :(")) + } + } + } + } + } +} +func (_static *CompanionStruct_Default___) OptionalBytes(key _dafny.Sequence, secret m_Wrappers.Option) _dafny.Sequence { + if (secret).Is_Some() { + var _0_base64 _dafny.Sequence = m_Base64.Companion_Default___.Encode((secret).Dtor_value().(_dafny.Sequence)) + _ = _0_base64 + return _dafny.SeqOf(_dafny.TupleOf(key, m_JSON_Values.Companion_JSON_.Create_String_(_0_base64))) + } else { + return _dafny.SeqOf() + } +} +func (_static *CompanionStruct_Default___) DecryptTestVectorToJson(test m_EsdkTestVectors.EsdkDecryptTestVector) m_Wrappers.Result { + var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((((test).Dtor_algorithmSuiteId()).Is_Some()) && (((test).Dtor_frameLength()).Is_Some()), _dafny.SeqOfString("test is missing algorithmSuite ID, or frameLength")) + _ = _0_valueOrError0 + if (_0_valueOrError0).IsFailure() { + return (_0_valueOrError0).PropagateFailure() + } else { + var _1_id _dafny.Sequence = m_AllAlgorithmSuites.Companion_Default___.ToHex(((test).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) + _ = _1_id + var _2_description _dafny.Sequence = _dafny.Companion_Sequence_.Concatenate(_dafny.Companion_Sequence_.Concatenate((test).Dtor_description(), _dafny.SeqOfString(" ")), _1_id) + _ = _2_description + var _3_valueOrError1 m_Wrappers.Result = (func() m_Wrappers.Result { + if ((test).Dtor_reproducedEncryptionContext()).Is_Some() { + return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("reproduced-encryption-context"), ((test).Dtor_reproducedEncryptionContext()).Dtor_value().(_dafny.Map)) + } + return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("reproduced-encryption-context"), _dafny.NewMapBuilder().ToMap()) + })() + _ = _3_valueOrError1 + if (_3_valueOrError1).IsFailure() { + return (_3_valueOrError1).PropagateFailure() + } else { + var _4_reproducedEncryptionContext _dafny.Sequence = (_3_valueOrError1).Extract().(_dafny.Sequence) + _ = _4_reproducedEncryptionContext + var _5_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((_4_reproducedEncryptionContext).Cardinality())).Cmp(_dafny.One) == 0, _dafny.SeqOfString("Error parsing encryption context")) + _ = _5_valueOrError2 + if (_5_valueOrError2).IsFailure() { + return (_5_valueOrError2).PropagateFailure() + } else { + var _6_optionalValues _dafny.Sequence = _4_reproducedEncryptionContext + _ = _6_optionalValues + var _source0 m_EsdkTestVectors.EsdkDecryptTestVector = test + _ = _source0 + { + if _source0.Is_PositiveDecryptTestVector() { + var _7_valueOrError3 m_Wrappers.Result = m_KeyDescription.Companion_Default___.ToJson((test).Dtor_decryptDescriptions(), _dafny.IntOfInt64(3)) + _ = _7_valueOrError3 + if (_7_valueOrError3).IsFailure() { + return (_7_valueOrError3).PropagateFailure() + } else { + var _8_decrypt m_JSON_Values.JSON = (_7_valueOrError3).Extract().(m_JSON_Values.JSON) + _ = _8_decrypt + var _9_scenario m_JSON_Values.JSON = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("type"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("positive-esdk"))), _dafny.TupleOf(_dafny.SeqOfString("ciphertext"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOfString("file://ciphertexts/"), (test).Dtor_id()))), _dafny.TupleOf(_dafny.SeqOfString("result"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOfString("file://"), (test).Dtor_plaintextPath()))), _dafny.TupleOf(_dafny.SeqOfString("algorithmSuiteId"), m_JSON_Values.Companion_JSON_.Create_String_(_1_id)), _dafny.TupleOf(_dafny.SeqOfString("frame-size"), m_JSON_Values.Companion_JSON_.Create_Number_(m_JSON_Values.Companion_Default___.Int(_dafny.IntOfInt64(((test).Dtor_frameLength()).Dtor_value().(int64))))), _dafny.TupleOf(_dafny.SeqOfString("description"), m_JSON_Values.Companion_JSON_.Create_String_((test).Dtor_description())), _dafny.TupleOf(_dafny.SeqOfString("decryptKeyDescription"), _8_decrypt)), _6_optionalValues)) + _ = _9_scenario + return m_Wrappers.Companion_Result_.Create_Success_(m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("decryption-scenario"), _9_scenario)))) + } + } + } + { + return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Only Positive Tests supported :(")) + } + } + } + } +} + +// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteVectors/WriteVectors.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteVectors/WriteVectors.go new file mode 100644 index 000000000..1ec43f0fd --- /dev/null +++ b/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteVectors/WriteVectors.go @@ -0,0 +1,657 @@ +// Package WriteVectors +// Dafny module WriteVectors compiled into Go + +package WriteVectors + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" + m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" + m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" + m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_SortedSets "github.com/dafny-lang/DafnyStandardLibGo/SortedSets" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UUID "github.com/dafny-lang/DafnyStandardLibGo/UUID" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ +var _ m_WrappedESDK.Dummy__ +var _ m_EsdkManifestOptions.Dummy__ +var _ m_EsdkTestVectors.Dummy__ +var _ m_AllEsdkV4NoReqEc.Dummy__ +var _ m_AllEsdkV4WithReqEc.Dummy__ +var _ m_WriteEsdkJsonManifests.Dummy__ + +type Dummy__ struct{} + +// Definition of class Default__ +type Default__ struct { + dummy byte +} + +func New_Default___() *Default__ { + _this := Default__{} + + return &_this +} + +type CompanionStruct_Default___ struct { +} + +var Companion_Default___ = CompanionStruct_Default___{} + +func (_this *Default__) Equals(other *Default__) bool { + return _this == other +} + +func (_this *Default__) EqualsGeneric(x interface{}) bool { + other, ok := x.(*Default__) + return ok && _this.Equals(other) +} + +func (*Default__) String() string { + return "WriteVectors.Default__" +} +func (_this *Default__) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = &Default__{} + +func (_static *CompanionStruct_Default___) GetCommitmentPolicyString(algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) _dafny.Sequence { + var _source0 m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteId = (algorithmSuite).Dtor_id() + _ = _source0 + { + if _source0.Is_ESDK() { + if ((algorithmSuite).Dtor_commitment()).Is_None() { + return _dafny.SeqOfString("FORBID_ENCRYPT_ALLOW_DECRYPT") + } else { + return _dafny.SeqOfString("REQUIRE_ENCRYPT_REQUIRE_DECRYPT") + } + } + } + { + return _dafny.SeqOfString("NOT SUPPORTED FOR UNSTRUCTURED ENCRYPTION") + } +} +func (_static *CompanionStruct_Default___) GetCommitmentPolicyType(commitmentPolicy _dafny.Sequence) m_AwsCryptographyMaterialProvidersTypes.CommitmentPolicy { + if _dafny.Companion_Sequence_.Equal(commitmentPolicy, _dafny.SeqOfString("FORBID_ENCRYPT_ALLOW_DECRYPT")) { + return m_AwsCryptographyMaterialProvidersTypes.Companion_CommitmentPolicy_.Create_ESDK_(m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_()) + } else { + return m_AwsCryptographyMaterialProvidersTypes.Companion_CommitmentPolicy_.Create_ESDK_(m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_REQUIRE__ENCRYPT__REQUIRE__DECRYPT_()) + } +} +func (_static *CompanionStruct_Default___) WriteTestVectors(op m_EsdkManifestOptions.ManifestOptions) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) + _ = output + var _0_version _dafny.Int + _ = _0_version + _0_version = (op).Dtor_version() + var _1_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySet) + _ = _1_valueOrError0 + _1_valueOrError0 = Companion_Default___.GetVersionTests(_0_version) + if (_1_valueOrError0).IsFailure() { + output = (_1_valueOrError0).PropagateFailure() + return output + } + var _2_allTests _dafny.Set + _ = _2_allTests + _2_allTests = (_1_valueOrError0).Extract().(_dafny.Set) + var _3_tests _dafny.Sequence + _ = _3_tests + var _out0 _dafny.Sequence + _ = _out0 + _out0 = m_SortedSets.SetToSequence(_2_allTests) + _3_tests = _out0 + var _4_sortedTests _dafny.Sequence + _ = _4_sortedTests + _4_sortedTests = m_Seq_MergeSort.Companion_Default___.MergeSortBy(_3_tests, func(coer5 func(m_EsdkTestVectors.EsdkEncryptTestVector, m_EsdkTestVectors.EsdkEncryptTestVector) bool) func(interface{}, interface{}) bool { + return func(arg6 interface{}, arg7 interface{}) bool { + return coer5(arg6.(m_EsdkTestVectors.EsdkEncryptTestVector), arg7.(m_EsdkTestVectors.EsdkEncryptTestVector)) + } + }(Companion_Default___.DescriptionLessThan)) + var _5_testsJSON _dafny.Sequence + _ = _5_testsJSON + _5_testsJSON = _dafny.SeqOf() + var _hi0 _dafny.Int = _dafny.IntOfUint32((_4_sortedTests).Cardinality()) + _ = _hi0 + for _6_i := _dafny.Zero; _6_i.Cmp(_hi0) < 0; _6_i = _6_i.Plus(_dafny.One) { + var _7_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() + _ = _7_valueOrError1 + _7_valueOrError1 = m_Wrappers.Companion_Default___.Need((true) && ((((_4_sortedTests).Select((_6_i).Uint32()).(m_EsdkTestVectors.EsdkEncryptTestVector)).Dtor_algorithmSuiteId()).Is_Some()), _dafny.SeqOfString("No algorithm suite defined in test")) + if (_7_valueOrError1).IsFailure() { + output = (_7_valueOrError1).PropagateFailure() + return output + } + var _8_id _dafny.Sequence + _ = _8_id + _8_id = m_AllAlgorithmSuites.Companion_Default___.ToHex((((_4_sortedTests).Select((_6_i).Uint32()).(m_EsdkTestVectors.EsdkEncryptTestVector)).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) + var _9_valueOrError2 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq.SetString()) + _ = _9_valueOrError2 + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = m_UUID.GenerateUUID() + _9_valueOrError2 = _out1 + if !(!((_9_valueOrError2).IsFailure())) { + panic("dafny/TestVectors/src/WriteVectors.dfy(82,18): " + (_9_valueOrError2).String()) + } + var _10_uuid _dafny.Sequence + _ = _10_uuid + _10_uuid = (_9_valueOrError2).Extract().(_dafny.Sequence) + var _11_valueOrError3 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(m_JSON_Values.Companion_JSON_.Default()) + _ = _11_valueOrError3 + _11_valueOrError3 = m_WriteEsdkJsonManifests.Companion_Default___.EncryptTestVectorToJson((_4_sortedTests).Select((_6_i).Uint32()).(m_EsdkTestVectors.EsdkEncryptTestVector)) + if (_11_valueOrError3).IsFailure() { + output = (_11_valueOrError3).PropagateFailure() + return output + } + var _12_test m_JSON_Values.JSON + _ = _12_test + _12_test = (_11_valueOrError3).Extract().(m_JSON_Values.JSON) + _5_testsJSON = _dafny.Companion_Sequence_.Concatenate(_5_testsJSON, _dafny.SeqOf(_dafny.TupleOf(_10_uuid, _12_test))) + } + var _13_manifestJson m_JSON_Values.JSON + _ = _13_manifestJson + _13_manifestJson = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("type"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("awses-encrypt"))), _dafny.TupleOf(_dafny.SeqOfString("version"), m_JSON_Values.Companion_JSON_.Create_Number_(m_JSON_Values.Companion_Default___.Int(_dafny.IntOfInt64(5)))))) + var _14_plaintexts m_JSON_Values.JSON + _ = _14_plaintexts + _14_plaintexts = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("small"), m_JSON_Values.Companion_JSON_.Create_Number_(m_JSON_Values.Companion_Default___.Int(_dafny.IntOfInt64(10240)))))) + var _15_esdkEncryptManifests m_JSON_Values.JSON + _ = _15_esdkEncryptManifests + _15_esdkEncryptManifests = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("manifest"), _13_manifestJson), _dafny.TupleOf(_dafny.SeqOfString("keys"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("file://keys.json"))), _dafny.TupleOf(_dafny.SeqOfString("plaintexts"), _14_plaintexts), _dafny.TupleOf(_dafny.SeqOfString("tests"), m_JSON_Values.Companion_JSON_.Create_Object_(_5_testsJSON)))) + var _16_valueOrError4 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _16_valueOrError4 + _16_valueOrError4 = m_JSON_API.Companion_Default___.Serialize(_15_esdkEncryptManifests) + if !(!((_16_valueOrError4).IsFailure())) { + panic("dafny/TestVectors/src/WriteVectors.dfy(102,36): " + (_16_valueOrError4).String()) + } + var _17_esdkEncryptManifestBytes _dafny.Sequence + _ = _17_esdkEncryptManifestBytes + _17_esdkEncryptManifestBytes = (_16_valueOrError4).Extract().(_dafny.Sequence) + var _18_esdkEncryptManifestBv _dafny.Sequence + _ = _18_esdkEncryptManifestBv + _18_esdkEncryptManifestBv = m_JSONHelpers.Companion_Default___.BytesBv(_17_esdkEncryptManifestBytes) + var _19_valueOrError5 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) + _ = _19_valueOrError5 + var _out2 m_Wrappers.Result + _ = _out2 + _out2 = m_FileIO.Companion_Default___.WriteBytesToFile(_dafny.Companion_Sequence_.Concatenate((op).Dtor_encryptManifestOutput(), _dafny.SeqOfString("encrypt-manifest.json")), _18_esdkEncryptManifestBv) + _19_valueOrError5 = _out2 + if !(!((_19_valueOrError5).IsFailure())) { + panic("dafny/TestVectors/src/WriteVectors.dfy(105,13): " + (_19_valueOrError5).String()) + } + var _20___v2 _dafny.Tuple + _ = _20___v2 + _20___v2 = (_19_valueOrError5).Extract().(_dafny.Tuple) + output = m_Wrappers.Companion_Result_.Create_Success_(_dafny.TupleOf()) + return output +} +func (_static *CompanionStruct_Default___) WriteDecryptManifest(op m_EsdkManifestOptions.ManifestOptions, keys *m_KeyVectors.KeyVectorsClient, tests _dafny.Sequence) m_Wrappers.Result { + var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) + _ = output + var _0_testsJSON _dafny.Sequence + _ = _0_testsJSON + _0_testsJSON = _dafny.SeqOf() + var _hi0 _dafny.Int = _dafny.IntOfUint32((tests).Cardinality()) + _ = _hi0 + for _1_i := _dafny.Zero; _1_i.Cmp(_hi0) < 0; _1_i = _1_i.Plus(_dafny.One) { + var _2_name _dafny.Sequence + _ = _2_name + _2_name = ((tests).Select((_1_i).Uint32()).(m_EsdkTestVectors.EsdkDecryptTestVector)).Dtor_id() + var _3_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(m_JSON_Values.Companion_JSON_.Default()) + _ = _3_valueOrError0 + _3_valueOrError0 = m_WriteEsdkJsonManifests.Companion_Default___.DecryptTestVectorToJson((tests).Select((_1_i).Uint32()).(m_EsdkTestVectors.EsdkDecryptTestVector)) + if (_3_valueOrError0).IsFailure() { + output = (_3_valueOrError0).PropagateFailure() + return output + } + var _4_test m_JSON_Values.JSON + _ = _4_test + _4_test = (_3_valueOrError0).Extract().(m_JSON_Values.JSON) + _0_testsJSON = _dafny.Companion_Sequence_.Concatenate(_0_testsJSON, _dafny.SeqOf(_dafny.TupleOf(_2_name, _4_test))) + } + var _5_manifestJson m_JSON_Values.JSON + _ = _5_manifestJson + _5_manifestJson = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("type"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("awses-decrypt"))), _dafny.TupleOf(_dafny.SeqOfString("version"), m_JSON_Values.Companion_JSON_.Create_Number_(m_JSON_Values.Companion_Default___.Int(_dafny.IntOfInt64(3)))))) + var _6_esdkDecryptManifest m_JSON_Values.JSON + _ = _6_esdkDecryptManifest + _6_esdkDecryptManifest = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("manifest"), _5_manifestJson), _dafny.TupleOf(_dafny.SeqOfString("client"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("aws-encryption-sdk-dafny"))), _dafny.TupleOf(_dafny.SeqOfString("keys"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("file://keys.json"))), _dafny.TupleOf(_dafny.SeqOfString("tests"), m_JSON_Values.Companion_JSON_.Create_Object_(_0_testsJSON)))) + var _7_valueOrError1 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) + _ = _7_valueOrError1 + _7_valueOrError1 = m_JSON_API.Companion_Default___.Serialize(_6_esdkDecryptManifest) + if !(!((_7_valueOrError1).IsFailure())) { + panic("dafny/TestVectors/src/WriteVectors.dfy(146,36): " + (_7_valueOrError1).String()) + } + var _8_esdkDecryptManifestBytes _dafny.Sequence + _ = _8_esdkDecryptManifestBytes + _8_esdkDecryptManifestBytes = (_7_valueOrError1).Extract().(_dafny.Sequence) + var _9_esdkDecryptManifestBv _dafny.Sequence + _ = _9_esdkDecryptManifestBv + _9_esdkDecryptManifestBv = m_JSONHelpers.Companion_Default___.BytesBv(_8_esdkDecryptManifestBytes) + var _10_valueOrError2 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) + _ = _10_valueOrError2 + var _out0 m_Wrappers.Result + _ = _out0 + _out0 = m_FileIO.Companion_Default___.WriteBytesToFile(_dafny.Companion_Sequence_.Concatenate((op).Dtor_decryptManifestOutput(), _dafny.SeqOfString("decrypt-manifest.json")), _9_esdkDecryptManifestBv) + _10_valueOrError2 = _out0 + if !(!((_10_valueOrError2).IsFailure())) { + panic("dafny/TestVectors/src/WriteVectors.dfy(149,13): " + (_10_valueOrError2).String()) + } + var _11___v3 _dafny.Tuple + _ = _11___v3 + _11___v3 = (_10_valueOrError2).Extract().(_dafny.Tuple) + output = m_Wrappers.Companion_Result_.Create_Success_(_dafny.TupleOf()) + return output +} +func (_static *CompanionStruct_Default___) GetVersionTests(version _dafny.Int) m_Wrappers.Result { + var _source0 _dafny.Int = version + _ = _source0 + { + if (_source0).Cmp(_dafny.IntOfInt64(5)) == 0 { + return m_Wrappers.Companion_Result_.Create_Success_((m_AllEsdkV4NoReqEc.Companion_Default___.Tests()).Union(m_AllEsdkV4WithReqEc.Companion_Default___.Tests())) + } + } + { + return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Only version 4 of generate manifest is supported\n")) + } +} +func (_static *CompanionStruct_Default___) DescriptionLessThan(x m_EsdkTestVectors.EsdkEncryptTestVector, y m_EsdkTestVectors.EsdkEncryptTestVector) bool { + return Companion_Default___.Below((x).Dtor_description(), (y).Dtor_description()) +} +func (_static *CompanionStruct_Default___) Below(x _dafny.Sequence, y _dafny.Sequence) bool { + return !((_dafny.IntOfUint32((x).Cardinality())).Sign() != 0) || ((((_dafny.IntOfUint32((y).Cardinality())).Sign() != 0) && (((x).Select(0).(_dafny.Char)) <= ((y).Select(0).(_dafny.Char)))) && (!(((x).Select(0).(_dafny.Char)) == ((y).Select(0).(_dafny.Char))) || (Companion_Default___.Below((x).Drop(1), (y).Drop(1))))) +} + +// End of class Default__ diff --git a/TestVectors/runtimes/go/TestsFromDafny-go/TestWrappedESDKMain/TestWrappedESDKMain.go b/TestVectors/runtimes/go/TestsFromDafny-go/TestWrappedESDKMain/TestWrappedESDKMain.go new file mode 100644 index 000000000..63b2aab13 --- /dev/null +++ b/TestVectors/runtimes/go/TestsFromDafny-go/TestWrappedESDKMain/TestWrappedESDKMain.go @@ -0,0 +1,525 @@ +// Package TestWrappedESDKMain +// Dafny module TestWrappedESDKMain compiled into Go + +package TestWrappedESDKMain + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" + m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" + m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" + m_EsdkTestManifests "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestManifests" + m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" + m_ParseEsdkJsonManifest "github.com/aws/aws-encryption-sdk/testvectors/ParseEsdkJsonManifest" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m_WrappedESDKMain "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDKMain" + m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" + m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_WrappedESDK.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_EsdkManifestOptions.Dummy__ +var _ m_EsdkTestVectors.Dummy__ +var _ m_AllEsdkV4NoReqEc.Dummy__ +var _ m_AllEsdkV4WithReqEc.Dummy__ +var _ m_WriteEsdkJsonManifests.Dummy__ +var _ m_WriteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_ParseEsdkJsonManifest.Dummy__ +var _ m_EsdkTestManifests.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_WrappedESDKMain.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ + +type Dummy__ struct{} + +// Definition of class Default__ +type Default__ struct { + dummy byte +} + +func New_Default___() *Default__ { + _this := Default__{} + + return &_this +} + +type CompanionStruct_Default___ struct { +} + +var Companion_Default___ = CompanionStruct_Default___{} + +func (_this *Default__) Equals(other *Default__) bool { + return _this == other +} + +func (_this *Default__) EqualsGeneric(x interface{}) bool { + other, ok := x.(*Default__) + return ok && _this.Equals(other) +} + +func (*Default__) String() string { + return "TestWrappedESDKMain.Default__" +} +func (_this *Default__) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = &Default__{} + +func (_static *CompanionStruct_Default___) RunManifestTests() { + Companion_Default___.TestGenerateEncryptManifest() + Companion_Default___.TestEncryptManifest() + Companion_Default___.TestDecryptManifest() +} +func (_static *CompanionStruct_Default___) TestGenerateEncryptManifest() { + var _0_directory _dafny.Sequence + _ = _0_directory + var _out0 _dafny.Sequence + _ = _out0 + _out0 = GetTestVectorExecutionDirectory() + _0_directory = _out0 + var _1_result m_Wrappers.Result + _ = _1_result + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = m_WriteVectors.Companion_Default___.WriteTestVectors(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_EncryptManifest_(_dafny.Companion_Sequence_.Concatenate(_0_directory, _dafny.SeqOfString("dafny/TestVectors/test/")), _dafny.IntOfInt64(5))) + _1_result = _out1 + if (_1_result).Is_Failure() { + _dafny.Print(((_1_result).Dtor_error().(_dafny.Sequence)).SetString()) + } + if !((_1_result).Is_Success()) { + panic("dafny/TestVectors/test/RunMain.dfy(38,4): " + (_dafny.SeqOfString("expectation violation")).String()) + } +} +func (_static *CompanionStruct_Default___) TestEncryptManifest() { + var _0_directory _dafny.Sequence + _ = _0_directory + var _out0 _dafny.Sequence + _ = _out0 + _out0 = GetTestVectorExecutionDirectory() + _0_directory = _out0 + var _1_result m_Wrappers.Result + _ = _1_result + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = m_EsdkTestManifests.Companion_Default___.StartEncryptVectors(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_Encrypt_(_dafny.Companion_Sequence_.Concatenate(_0_directory, _dafny.SeqOfString("dafny/TestVectors/test/")), _dafny.SeqOfString("encrypt-manifest.json"), _dafny.Companion_Sequence_.Concatenate(_0_directory, _dafny.SeqOfString("dafny/TestVectors/test/")), m_Wrappers.Companion_Option_.Create_None_())) + _1_result = _out1 + if (_1_result).Is_Failure() { + _dafny.Print(((_1_result).Dtor_error().(_dafny.Sequence)).SetString()) + } + if !((_1_result).Is_Success()) { + panic("dafny/TestVectors/test/RunMain.dfy(53,4): " + (_dafny.SeqOfString("expectation violation")).String()) + } +} +func (_static *CompanionStruct_Default___) TestDecryptManifest() { + var _0_directory _dafny.Sequence + _ = _0_directory + var _out0 _dafny.Sequence + _ = _out0 + _out0 = GetTestVectorExecutionDirectory() + _0_directory = _out0 + var _1_result m_Wrappers.Result + _ = _1_result + var _out1 m_Wrappers.Result + _ = _out1 + _out1 = m_EsdkTestManifests.Companion_Default___.StartDecryptVectors(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_Decrypt_(_dafny.Companion_Sequence_.Concatenate(_0_directory, _dafny.SeqOfString("dafny/TestVectors/test/")), _dafny.SeqOfString("decrypt-manifest.json"), m_Wrappers.Companion_Option_.Create_None_())) + _1_result = _out1 + if (_1_result).Is_Failure() { + _dafny.Print(((_1_result).Dtor_error().(_dafny.Sequence)).SetString()) + } + if !((_1_result).Is_Success()) { + panic("dafny/TestVectors/test/RunMain.dfy(69,4): " + (_dafny.SeqOfString("expectation violation")).String()) + } +} + +// End of class Default__ diff --git a/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny-go.dtr b/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny-go.dtr new file mode 100644 index 000000000..5067e0c75 --- /dev/null +++ b/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny-go.dtr @@ -0,0 +1,5 @@ +file_format_version = "1.0" +dafny_version = "4.9.1.0" +[options_by_module.TestWrappedESDKMain] +go-module-name = "github.com/aws/aws-encryption-sdk/testvectors/test" +legacy-module-names = false diff --git a/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny.go b/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny.go new file mode 100644 index 000000000..6a75540ca --- /dev/null +++ b/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny.go @@ -0,0 +1,489 @@ +// Dafny program the_program compiled into Go +package main + +import ( + os "os" + + m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" + m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" + m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" + m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" + m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" + m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" + m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" + m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" + m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" + m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" + m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" + m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" + m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" + m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" + m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" + m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" + m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" + m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" + m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" + m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" + m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" + m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" + m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" + m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" + m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" + m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" + m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" + m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" + m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" + m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" + m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" + m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" + m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" + m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" + m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" + m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" + m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" + m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" + m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" + m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" + m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" + m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" + m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" + m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" + m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" + m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" + m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" + m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" + m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" + m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" + m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" + m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" + m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" + m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" + m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" + m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" + m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" + m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" + m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" + m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" + m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" + m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" + m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" + m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" + m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" + m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" + m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" + m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" + m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" + m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" + m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" + m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" + m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" + m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" + m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" + m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" + m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" + m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" + m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" + m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" + m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" + m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" + m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" + m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" + m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" + m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" + m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" + m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" + m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" + m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" + m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" + m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" + m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" + m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" + m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" + m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" + m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" + m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" + m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" + m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" + m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" + m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" + m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" + m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" + m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" + m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" + m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" + m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" + m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" + m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" + m_Frames "github.com/aws/aws-encryption-sdk/Frames" + m_Header "github.com/aws/aws-encryption-sdk/Header" + m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" + m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" + m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" + m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" + m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" + m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" + m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" + m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" + m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" + m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" + m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" + m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" + m_EsdkTestManifests "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestManifests" + m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" + m_ParseEsdkJsonManifest "github.com/aws/aws-encryption-sdk/testvectors/ParseEsdkJsonManifest" + m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" + m_WrappedESDKMain "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDKMain" + m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" + m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" + m_TestWrappedESDKMain "github.com/aws/aws-encryption-sdk/testvectors/test/TestWrappedESDKMain" + m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" + _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" + m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" + m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" + m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" + m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" + m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" + m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" + m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" + m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" + m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" + m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" + m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" + m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" + m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" + m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" + m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" + m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" + m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" + m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" + m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" + m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" + m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" + m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" + m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" + m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" + m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" + m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" + m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" + m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" + m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" + m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" + m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" + m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" + m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" + m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" + m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" + m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" + m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" + m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" + m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" + m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" + m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" + m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" + m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" + m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" + m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" + m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" + m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" + m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" + m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" + m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" + m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" + m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" + m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" + m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" + m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" + m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" + m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" + m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" + m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" + m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" + m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" + m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" + m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" + m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" + m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" + m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" + m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" + m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" + m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" + m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" + m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" + m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" +) + +var _ = os.Args +var _ _dafny.Dummy__ +var _ m__System.Dummy__ +var _ m_Wrappers.Dummy__ +var _ m_BoundedInts.Dummy__ +var _ m_StandardLibrary_UInt.Dummy__ +var _ m_StandardLibrary_Sequence.Dummy__ +var _ m_StandardLibrary_String.Dummy__ +var _ m_StandardLibrary.Dummy__ +var _ m_ComAmazonawsDynamodbTypes.Dummy__ +var _ m_ComAmazonawsKmsTypes.Dummy__ +var _ m_AwsCryptographyKeyStoreTypes.Dummy__ +var _ m_AwsCryptographyPrimitivesTypes.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ +var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ +var _ m_Random.Dummy__ +var _ m_AESEncryption.Dummy__ +var _ m_Digest.Dummy__ +var _ m_HMAC.Dummy__ +var _ m_WrappedHMAC.Dummy__ +var _ m_HKDF.Dummy__ +var _ m_WrappedHKDF.Dummy__ +var _ m_Signature.Dummy__ +var _ m_KdfCtr.Dummy__ +var _ m_RSAEncryption.Dummy__ +var _ m_ECDH.Dummy__ +var _ m_AwsCryptographyPrimitivesOperations.Dummy__ +var _ m_AtomicPrimitives.Dummy__ +var _ m_Base64.Dummy__ +var _ m_AlgorithmSuites.Dummy__ +var _ m_Materials.Dummy__ +var _ m_Keyring.Dummy__ +var _ m_Relations.Dummy__ +var _ m_Seq_MergeSort.Dummy__ +var _ m__Math.Dummy__ +var _ m_Seq.Dummy__ +var _ m_MultiKeyring.Dummy__ +var _ m_AwsArnParsing.Dummy__ +var _ m_AwsKmsMrkAreUnique.Dummy__ +var _ m_Actions.Dummy__ +var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ +var _ m_AwsKmsUtils.Dummy__ +var _ m_Constants.Dummy__ +var _ m_MaterialWrapping.Dummy__ +var _ m_CanonicalEncryptionContext.Dummy__ +var _ m_IntermediateKeyWrapping.Dummy__ +var _ m_EdkWrapping.Dummy__ +var _ m_ErrorMessages.Dummy__ +var _ m_AwsKmsKeyring.Dummy__ +var _ m_StrictMultiKeyring.Dummy__ +var _ m_AwsKmsDiscoveryKeyring.Dummy__ +var _ m_Com_Amazonaws_Kms.Dummy__ +var _ m_Com_Amazonaws_Dynamodb.Dummy__ +var _ m_DiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ +var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ +var _ m_AwsKmsMrkKeyring.Dummy__ +var _ m_MrkAwareStrictMultiKeyring.Dummy__ +var _ m_LocalCMC.Dummy__ +var _ m_SynchronizedLocalCMC.Dummy__ +var _ m_StormTracker.Dummy__ +var _ m_StormTrackingCMC.Dummy__ +var _ m_CacheConstants.Dummy__ +var _ m_AwsKmsHierarchicalKeyring.Dummy__ +var _ m_AwsKmsRsaKeyring.Dummy__ +var _ m_EcdhEdkWrapping.Dummy__ +var _ m_RawECDHKeyring.Dummy__ +var _ m_AwsKmsEcdhKeyring.Dummy__ +var _ m_RawAESKeyring.Dummy__ +var _ m_RawRSAKeyring.Dummy__ +var _ m_CMM.Dummy__ +var _ m_Defaults.Dummy__ +var _ m_Commitment.Dummy__ +var _ m_DefaultCMM.Dummy__ +var _ m_DefaultClientSupplier.Dummy__ +var _ m_Utils.Dummy__ +var _ m_RequiredEncryptionContextCMM.Dummy__ +var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ +var _ m_MaterialProviders.Dummy__ +var _ m_Streams.Dummy__ +var _ m_SerializableTypes.Dummy__ +var _ m_SerializeFunctions.Dummy__ +var _ m_EncryptionContext.Dummy__ +var _ m_HeaderTypes.Dummy__ +var _ m_SharedHeaderFunctions.Dummy__ +var _ m_EncryptedDataKeys.Dummy__ +var _ m_V1HeaderBody.Dummy__ +var _ m_V2HeaderBody.Dummy__ +var _ m_HeaderAuth.Dummy__ +var _ m_Header.Dummy__ +var _ m_Frames.Dummy__ +var _ m_MessageBody.Dummy__ +var _ m_KeyDerivation.Dummy__ +var _ m_EncryptDecryptHelpers.Dummy__ +var _ m_AwsEncryptionSdkOperations.Dummy__ +var _ m_EncryptionSdk.Dummy__ +var _ m_WrappedESDK.Dummy__ +var _ m_HexStrings.Dummy__ +var _ m_AllAlgorithmSuites.Dummy__ +var _ m_WrappedMaterialProviders.Dummy__ +var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ +var _ m_JSON_Utils_Views_Core.Dummy__ +var _ m_JSON_Utils_Views_Writers.Dummy__ +var _ m_JSON_Utils_Lexers_Core.Dummy__ +var _ m_JSON_Utils_Lexers_Strings.Dummy__ +var _ m_JSON_Utils_Cursors.Dummy__ +var _ m_JSON_Utils_Parsers.Dummy__ +var _ m_GeneralInternals.Dummy__ +var _ m_MulInternalsNonlinear.Dummy__ +var _ m_MulInternals.Dummy__ +var _ m_Mul.Dummy__ +var _ m_ModInternalsNonlinear.Dummy__ +var _ m_DivInternalsNonlinear.Dummy__ +var _ m_ModInternals.Dummy__ +var _ m_DivInternals.Dummy__ +var _ m_DivMod.Dummy__ +var _ m_Power.Dummy__ +var _ m_Logarithm.Dummy__ +var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ +var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ +var _ m_JSON_Utils_Str.Dummy__ +var _ m_JSON_Utils_Seq.Dummy__ +var _ m_JSON_Utils_Vectors.Dummy__ +var _ m_JSON_Errors.Dummy__ +var _ m_JSON_Values.Dummy__ +var _ m__Unicode.Dummy__ +var _ m_Functions.Dummy__ +var _ m_Utf8EncodingForm.Dummy__ +var _ m_Utf16EncodingForm.Dummy__ +var _ m_UnicodeStrings.Dummy__ +var _ m_JSON_Spec.Dummy__ +var _ m_JSON_Grammar.Dummy__ +var _ m_JSON_Serializer_ByteStrConversion.Dummy__ +var _ m_JSON_Serializer.Dummy__ +var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ +var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ +var _ m_JSON_Deserializer.Dummy__ +var _ m_JSON_ConcreteSyntax_Spec.Dummy__ +var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ +var _ m_JSON_ZeroCopy_Serializer.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ +var _ m_JSON_ZeroCopy_Deserializer.Dummy__ +var _ m_JSON_ZeroCopy_API.Dummy__ +var _ m_JSON_API.Dummy__ +var _ m_JSONHelpers.Dummy__ +var _ m_KeyDescription.Dummy__ +var _ m_KeyMaterial.Dummy__ +var _ m_CreateStaticKeyrings.Dummy__ +var _ m_CreateStaticKeyStores.Dummy__ +var _ m_KeyringFromKeyDescription.Dummy__ +var _ m_CmmFromKeyDescription.Dummy__ +var _ m_KeysVectorOperations.Dummy__ +var _ m_FileIO.Dummy__ +var _ m_KeyVectors.Dummy__ +var _ m_TestVectors.Dummy__ +var _ m_AllHierarchy.Dummy__ +var _ m_AllKms.Dummy__ +var _ m_AllKmsMrkAware.Dummy__ +var _ m_AllKmsMrkAwareDiscovery.Dummy__ +var _ m_AllKmsRsa.Dummy__ +var _ m_AllKmsEcdh.Dummy__ +var _ m_AllRawAES.Dummy__ +var _ m_AllRawRSA.Dummy__ +var _ m_AllRawECDH.Dummy__ +var _ m_AllDefaultCmm.Dummy__ +var _ m_AllRequiredEncryptionContextCmm.Dummy__ +var _ m_AllMulti.Dummy__ +var _ m_MplManifestOptions.Dummy__ +var _ m_WriteJsonManifests.Dummy__ +var _ m_CompleteVectors.Dummy__ +var _ m_EsdkManifestOptions.Dummy__ +var _ m_EsdkTestVectors.Dummy__ +var _ m_AllEsdkV4NoReqEc.Dummy__ +var _ m_AllEsdkV4WithReqEc.Dummy__ +var _ m_WriteEsdkJsonManifests.Dummy__ +var _ m_WriteVectors.Dummy__ +var _ m_ParseJsonManifests.Dummy__ +var _ m_ParseEsdkJsonManifest.Dummy__ +var _ m_EsdkTestManifests.Dummy__ +var _ m_GetOpt.Dummy__ +var _ m_WrappedESDKMain.Dummy__ +var _ m_TestManifests.Dummy__ +var _ m_WrappedMaterialProvidersMain.Dummy__ +var _ m_KeyStoreErrorMessages.Dummy__ +var _ m_KmsArn.Dummy__ +var _ m_Structure.Dummy__ +var _ m_KMSKeystoreOperations.Dummy__ +var _ m_DDBKeystoreOperations.Dummy__ +var _ m_CreateKeys.Dummy__ +var _ m_CreateKeyStoreTable.Dummy__ +var _ m_GetKeys.Dummy__ +var _ m_AwsCryptographyKeyStoreOperations.Dummy__ +var _ m_KeyStore.Dummy__ +var _ m_StandardLibraryInterop.Dummy__ +var _ m_Sorting.Dummy__ +var _ m_FloatCompare.Dummy__ +var _ m_Base64Lemmas.Dummy__ + +// Definition of class Default__ +type Default__ struct { + dummy byte +} + +func New_Default___() *Default__ { + _this := Default__{} + + return &_this +} + +type CompanionStruct_Default___ struct { +} + +var Companion_Default___ = CompanionStruct_Default___{} + +func (_this *Default__) Equals(other *Default__) bool { + return _this == other +} + +func (_this *Default__) EqualsGeneric(x interface{}) bool { + other, ok := x.(*Default__) + return ok && _this.Equals(other) +} + +func (*Default__) String() string { + return "_module.Default__" +} +func (_this *Default__) ParentTraits_() []*_dafny.TraitID { + return [](*_dafny.TraitID){} +} + +var _ _dafny.TraitOffspring = &Default__{} + +func (_static *CompanionStruct_Default___) Test____Main____(__noArgsParameter _dafny.Sequence) { + var _0_success bool + _ = _0_success + _0_success = true + _dafny.Print((_dafny.SeqOfString("TestWrappedESDKMain.RunManifestTests: ")).SetString()) + func() { + defer func() { + if r := recover(); r != nil { + var _1_haltMessage = _dafny.SeqOfString(r.(string)) + { + _dafny.Print((_dafny.SeqOfString("FAILED\n ")).SetString()) + _dafny.Print((_1_haltMessage).SetString()) + _dafny.Print((_dafny.SeqOfString("\n")).SetString()) + _0_success = false + } + } + }() + { + m_TestWrappedESDKMain.Companion_Default___.RunManifestTests() + { + _dafny.Print((_dafny.SeqOfString("PASSED\n")).SetString()) + } + } + }() + if !(_0_success) { + panic("(1,0): " + (_dafny.SeqOfString("Test failures occurred: see above.\n")).String()) + } +} + +// End of class Default__ +func main() { + defer _dafny.CatchHalt() + Companion_Default___.Test____Main____(_dafny.FromMainArguments(os.Args)) +} From 0e9df4cff423dae5b9c80de793c8dc2de4e8d11a Mon Sep 17 00:00:00 2001 From: rishav-karanjit Date: Thu, 5 Dec 2024 13:51:58 -0800 Subject: [PATCH 2/4] Remove go files --- .../AllEsdkV4NoReqEc/AllEsdkV4NoReqEc.go | 534 ----- .../AllEsdkV4WithReqEc/AllEsdkV4WithReqEc.go | 485 ---- .../EsdkManifestOptions.go | 628 ----- .../EsdkTestManifests/EsdkTestManifests.go | 1142 --------- .../EsdkTestVectors/EsdkTestVectors.go | 2134 ----------------- .../ImplementationFromDafny-go.dtr | 35 - .../ImplementationFromDafny.go | 424 ---- .../ParseEsdkJsonManifest.go | 1039 -------- .../WrappedESDK/WrappedESDK.go | 449 ---- .../WrappedESDKMain/WrappedESDKMain.go | 689 ------ .../WriteEsdkJsonManifests.go | 683 ------ .../WriteVectors/WriteVectors.go | 657 ----- .../TestWrappedESDKMain.go | 525 ---- .../TestsFromDafny-go/TestsFromDafny-go.dtr | 5 - .../go/TestsFromDafny-go/TestsFromDafny.go | 489 ---- 15 files changed, 9918 deletions(-) delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4NoReqEc/AllEsdkV4NoReqEc.go delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4WithReqEc/AllEsdkV4WithReqEc.go delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkManifestOptions/EsdkManifestOptions.go delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestManifests/EsdkTestManifests.go delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestVectors/EsdkTestVectors.go delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny-go.dtr delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny.go delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/ParseEsdkJsonManifest/ParseEsdkJsonManifest.go delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDK/WrappedESDK.go delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDKMain/WrappedESDKMain.go delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/WriteEsdkJsonManifests/WriteEsdkJsonManifests.go delete mode 100644 TestVectors/runtimes/go/ImplementationFromDafny-go/WriteVectors/WriteVectors.go delete mode 100644 TestVectors/runtimes/go/TestsFromDafny-go/TestWrappedESDKMain/TestWrappedESDKMain.go delete mode 100644 TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny-go.dtr delete mode 100644 TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny.go diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4NoReqEc/AllEsdkV4NoReqEc.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4NoReqEc/AllEsdkV4NoReqEc.go deleted file mode 100644 index 859e86ff0..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4NoReqEc/AllEsdkV4NoReqEc.go +++ /dev/null @@ -1,534 +0,0 @@ -// Package AllEsdkV4NoReqEc -// Dafny module AllEsdkV4NoReqEc compiled into Go - -package AllEsdkV4NoReqEc - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" - m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ -var _ m_WrappedESDK.Dummy__ -var _ m_EsdkManifestOptions.Dummy__ -var _ m_EsdkTestVectors.Dummy__ - -type Dummy__ struct{} - -// Definition of class Default__ -type Default__ struct { - dummy byte -} - -func New_Default___() *Default__ { - _this := Default__{} - - return &_this -} - -type CompanionStruct_Default___ struct { -} - -var Companion_Default___ = CompanionStruct_Default___{} - -func (_this *Default__) Equals(other *Default__) bool { - return _this == other -} - -func (_this *Default__) EqualsGeneric(x interface{}) bool { - other, ok := x.(*Default__) - return ok && _this.Equals(other) -} - -func (*Default__) String() string { - return "AllEsdkV4NoReqEc.Default__" -} -func (_this *Default__) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = &Default__{} - -func (_static *CompanionStruct_Default___) AllPositiveKeyringTestsNoReqCmmNoKmsRsa() _dafny.Set { - return ((((((((((_dafny.SetOf()).Union(m_AllDefaultCmm.Companion_Default___.SuccessTestingRequiredEncryptionContextKeysReproducedEncryptionContext())).Union(m_AllHierarchy.Companion_Default___.Tests())).Union(m_AllKms.Companion_Default___.Tests())).Union(m_AllKmsMrkAware.Companion_Default___.Tests())).Union(m_AllKmsMrkAwareDiscovery.Companion_Default___.Tests())).Union(m_AllRawAES.Companion_Default___.Tests())).Union(m_AllRawRSA.Companion_Default___.Tests())).Union(m_AllMulti.Companion_Default___.Tests())).Union(m_AllRawECDH.Companion_Default___.Tests())).Union(m_AllKmsEcdh.Companion_Default___.Tests()) -} -func (_static *CompanionStruct_Default___) FrameSize() int64 { - return int64(512) -} -func (_static *CompanionStruct_Default___) AllPostiveKeyringTestsNoDBESuiteNoReqEC() _dafny.Set { - return func() _dafny.Set { - var _coll0 = _dafny.NewBuilder() - _ = _coll0 - for _iter0 := _dafny.Iterate((Companion_Default___.AllPositiveKeyringTestsNoReqCmmNoKmsRsa()).Elements()); ; { - _compr_0, _ok0 := _iter0() - if !_ok0 { - break - } - var _0_keyringConfig m_TestVectors.EncryptTestVector - _0_keyringConfig = interface{}(_compr_0).(m_TestVectors.EncryptTestVector) - if ((Companion_Default___.AllPositiveKeyringTestsNoReqCmmNoKmsRsa()).Contains(_0_keyringConfig)) && (!((_0_keyringConfig).Is_NegativeEncryptKeyringVector())) { - for _iter1 := _dafny.Iterate((m_AllAlgorithmSuites.Companion_Default___.ESDKAlgorithmSuites()).Elements()); ; { - _compr_1, _ok1 := _iter1() - if !_ok1 { - break - } - var _1_algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo - _1_algorithmSuite = interface{}(_compr_1).(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) - if (m_AllAlgorithmSuites.Companion_Default___.ESDKAlgorithmSuites()).Contains(_1_algorithmSuite) { - _coll0.Add(m_EsdkTestVectors.Companion_EsdkEncryptTestVector_.Create_PositiveEncryptTestVector_(m_Wrappers.Companion_Option_.Create_None_(), _dafny.IntOfInt64(4), _dafny.SeqOfString(""), _dafny.SeqOfString(""), _dafny.SeqOfString(""), (_0_keyringConfig).Dtor_encryptDescription(), (_0_keyringConfig).Dtor_decryptDescription(), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), m_Wrappers.Companion_Option_.Create_Some_(Companion_Default___.FrameSize()), m_Wrappers.Companion_Option_.Create_Some_(_1_algorithmSuite), (_0_keyringConfig).Dtor_name(), m_Wrappers.Companion_Option_.Create_Some_(int64(1)))) - } - } - } - } - return _coll0.ToSet() - }() -} -func (_static *CompanionStruct_Default___) AwsKmsRsaTests() _dafny.Set { - return m_AllKmsRsa.Companion_Default___.Tests() -} -func (_static *CompanionStruct_Default___) EsdkAlgorithmSuitesKmsRsa() _dafny.Set { - return func() _dafny.Set { - var _coll0 = _dafny.NewBuilder() - _ = _coll0 - for _iter2 := _dafny.Iterate((m_AllAlgorithmSuites.Companion_Default___.AllAlgorithmSuites()).Elements()); ; { - _compr_0, _ok2 := _iter2() - if !_ok2 { - break - } - var _0_suite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo - _0_suite = interface{}(_compr_0).(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) - if m_AlgorithmSuites.Companion_AlgorithmSuite_.Is_(_0_suite) { - if (((m_AllAlgorithmSuites.Companion_Default___.AllAlgorithmSuites()).Contains(_0_suite)) && (!(((_0_suite).Dtor_signature()).Is_ECDSA()))) && (((_0_suite).Dtor_id()).Is_ESDK()) { - _coll0.Add(_0_suite) - } - } - } - return _coll0.ToSet() - }() -} -func (_static *CompanionStruct_Default___) AllPositiveKeyringTestsNoDBEKmsRsa() _dafny.Set { - return func() _dafny.Set { - var _coll0 = _dafny.NewBuilder() - _ = _coll0 - for _iter3 := _dafny.Iterate((Companion_Default___.AwsKmsRsaTests()).Elements()); ; { - _compr_0, _ok3 := _iter3() - if !_ok3 { - break - } - var _0_keyringConfig m_TestVectors.EncryptTestVector - _0_keyringConfig = interface{}(_compr_0).(m_TestVectors.EncryptTestVector) - if ((Companion_Default___.AwsKmsRsaTests()).Contains(_0_keyringConfig)) && (!((_0_keyringConfig).Is_NegativeEncryptKeyringVector())) { - for _iter4 := _dafny.Iterate((Companion_Default___.EsdkAlgorithmSuitesKmsRsa()).Elements()); ; { - _compr_1, _ok4 := _iter4() - if !_ok4 { - break - } - var _1_algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo - _1_algorithmSuite = interface{}(_compr_1).(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) - if (Companion_Default___.EsdkAlgorithmSuitesKmsRsa()).Contains(_1_algorithmSuite) { - _coll0.Add(m_EsdkTestVectors.Companion_EsdkEncryptTestVector_.Create_PositiveEncryptTestVector_(m_Wrappers.Companion_Option_.Create_None_(), _dafny.IntOfInt64(4), _dafny.SeqOfString(""), _dafny.SeqOfString(""), _dafny.SeqOfString(""), (_0_keyringConfig).Dtor_encryptDescription(), (_0_keyringConfig).Dtor_decryptDescription(), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), m_Wrappers.Companion_Option_.Create_Some_(Companion_Default___.FrameSize()), m_Wrappers.Companion_Option_.Create_Some_(_1_algorithmSuite), (_0_keyringConfig).Dtor_name(), m_Wrappers.Companion_Option_.Create_Some_(int64(1)))) - } - } - } - } - return _coll0.ToSet() - }() -} -func (_static *CompanionStruct_Default___) Tests() _dafny.Set { - return (Companion_Default___.AllPostiveKeyringTestsNoDBESuiteNoReqEC()).Union(Companion_Default___.AllPositiveKeyringTestsNoDBEKmsRsa()) -} - -// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4WithReqEc/AllEsdkV4WithReqEc.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4WithReqEc/AllEsdkV4WithReqEc.go deleted file mode 100644 index 1f4e73e09..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/AllEsdkV4WithReqEc/AllEsdkV4WithReqEc.go +++ /dev/null @@ -1,485 +0,0 @@ -// Package AllEsdkV4WithReqEc -// Dafny module AllEsdkV4WithReqEc compiled into Go - -package AllEsdkV4WithReqEc - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" - m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" - m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ -var _ m_WrappedESDK.Dummy__ -var _ m_EsdkManifestOptions.Dummy__ -var _ m_EsdkTestVectors.Dummy__ -var _ m_AllEsdkV4NoReqEc.Dummy__ - -type Dummy__ struct{} - -// Definition of class Default__ -type Default__ struct { - dummy byte -} - -func New_Default___() *Default__ { - _this := Default__{} - - return &_this -} - -type CompanionStruct_Default___ struct { -} - -var Companion_Default___ = CompanionStruct_Default___{} - -func (_this *Default__) Equals(other *Default__) bool { - return _this == other -} - -func (_this *Default__) EqualsGeneric(x interface{}) bool { - other, ok := x.(*Default__) - return ok && _this.Equals(other) -} - -func (*Default__) String() string { - return "AllEsdkV4WithReqEc.Default__" -} -func (_this *Default__) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = &Default__{} - -func (_static *CompanionStruct_Default___) AllPositiveReqEcTests() _dafny.Set { - return m_AllRequiredEncryptionContextCmm.Companion_Default___.SuccessTestingRequiredEncryptionContextKeysReproducedEncryptionContext() -} -func (_static *CompanionStruct_Default___) FrameSize() int64 { - return int64(512) -} -func (_static *CompanionStruct_Default___) AllPositiveReqEcEsdkTests() _dafny.Set { - return func() _dafny.Set { - var _coll0 = _dafny.NewBuilder() - _ = _coll0 - for _iter5 := _dafny.Iterate((Companion_Default___.AllPositiveReqEcTests()).Elements()); ; { - _compr_0, _ok5 := _iter5() - if !_ok5 { - break - } - var _0_config m_TestVectors.EncryptTestVector - _0_config = interface{}(_compr_0).(m_TestVectors.EncryptTestVector) - if (Companion_Default___.AllPositiveReqEcTests()).Contains(_0_config) { - for _iter6 := _dafny.Iterate((m_AllAlgorithmSuites.Companion_Default___.ESDKAlgorithmSuites()).Elements()); ; { - _compr_1, _ok6 := _iter6() - if !_ok6 { - break - } - var _1_algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo - _1_algorithmSuite = interface{}(_compr_1).(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) - if (m_AllAlgorithmSuites.Companion_Default___.ESDKAlgorithmSuites()).Contains(_1_algorithmSuite) { - _coll0.Add(m_EsdkTestVectors.Companion_EsdkEncryptTestVector_.Create_PositiveEncryptTestVector_(m_Wrappers.Companion_Option_.Create_None_(), _dafny.IntOfInt64(4), _dafny.SeqOfString(""), _dafny.SeqOfString(""), _dafny.SeqOfString(""), (_0_config).Dtor_encryptDescription(), (_0_config).Dtor_decryptDescription(), m_Wrappers.Companion_Option_.Create_Some_((_0_config).Dtor_encryptionContext()), (_0_config).Dtor_reproducedEncryptionContext(), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), m_Wrappers.Companion_Option_.Create_Some_(Companion_Default___.FrameSize()), m_Wrappers.Companion_Option_.Create_Some_(_1_algorithmSuite), (_0_config).Dtor_name(), m_Wrappers.Companion_Option_.Create_Some_(int64(1)))) - } - } - } - } - return _coll0.ToSet() - }() -} -func (_static *CompanionStruct_Default___) Tests() _dafny.Set { - return Companion_Default___.AllPositiveReqEcEsdkTests() -} - -// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkManifestOptions/EsdkManifestOptions.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkManifestOptions/EsdkManifestOptions.go deleted file mode 100644 index 0ecb0f184..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkManifestOptions/EsdkManifestOptions.go +++ /dev/null @@ -1,628 +0,0 @@ -// Package EsdkManifestOptions -// Dafny module EsdkManifestOptions compiled into Go - -package EsdkManifestOptions - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ -var _ m_WrappedESDK.Dummy__ - -type Dummy__ struct{} - -// Definition of datatype ManifestOptions -type ManifestOptions struct { - Data_ManifestOptions_ -} - -func (_this ManifestOptions) Get_() Data_ManifestOptions_ { - return _this.Data_ManifestOptions_ -} - -type Data_ManifestOptions_ interface { - isManifestOptions() -} - -type CompanionStruct_ManifestOptions_ struct { -} - -var Companion_ManifestOptions_ = CompanionStruct_ManifestOptions_{} - -type ManifestOptions_Decrypt struct { - ManifestPath _dafny.Sequence - ManifestFileName _dafny.Sequence - TestName m_Wrappers.Option -} - -func (ManifestOptions_Decrypt) isManifestOptions() {} - -func (CompanionStruct_ManifestOptions_) Create_Decrypt_(ManifestPath _dafny.Sequence, ManifestFileName _dafny.Sequence, TestName m_Wrappers.Option) ManifestOptions { - return ManifestOptions{ManifestOptions_Decrypt{ManifestPath, ManifestFileName, TestName}} -} - -func (_this ManifestOptions) Is_Decrypt() bool { - _, ok := _this.Get_().(ManifestOptions_Decrypt) - return ok -} - -type ManifestOptions_Encrypt struct { - ManifestPath _dafny.Sequence - Manifest _dafny.Sequence - DecryptManifestOutput _dafny.Sequence - TestName m_Wrappers.Option -} - -func (ManifestOptions_Encrypt) isManifestOptions() {} - -func (CompanionStruct_ManifestOptions_) Create_Encrypt_(ManifestPath _dafny.Sequence, Manifest _dafny.Sequence, DecryptManifestOutput _dafny.Sequence, TestName m_Wrappers.Option) ManifestOptions { - return ManifestOptions{ManifestOptions_Encrypt{ManifestPath, Manifest, DecryptManifestOutput, TestName}} -} - -func (_this ManifestOptions) Is_Encrypt() bool { - _, ok := _this.Get_().(ManifestOptions_Encrypt) - return ok -} - -type ManifestOptions_DecryptSingle struct { - KeysPath _dafny.Sequence - KeyDescription _dafny.Sequence - Base64Bytes _dafny.Sequence -} - -func (ManifestOptions_DecryptSingle) isManifestOptions() {} - -func (CompanionStruct_ManifestOptions_) Create_DecryptSingle_(KeysPath _dafny.Sequence, KeyDescription _dafny.Sequence, Base64Bytes _dafny.Sequence) ManifestOptions { - return ManifestOptions{ManifestOptions_DecryptSingle{KeysPath, KeyDescription, Base64Bytes}} -} - -func (_this ManifestOptions) Is_DecryptSingle() bool { - _, ok := _this.Get_().(ManifestOptions_DecryptSingle) - return ok -} - -type ManifestOptions_EncryptManifest struct { - EncryptManifestOutput _dafny.Sequence - Version _dafny.Int -} - -func (ManifestOptions_EncryptManifest) isManifestOptions() {} - -func (CompanionStruct_ManifestOptions_) Create_EncryptManifest_(EncryptManifestOutput _dafny.Sequence, Version _dafny.Int) ManifestOptions { - return ManifestOptions{ManifestOptions_EncryptManifest{EncryptManifestOutput, Version}} -} - -func (_this ManifestOptions) Is_EncryptManifest() bool { - _, ok := _this.Get_().(ManifestOptions_EncryptManifest) - return ok -} - -func (CompanionStruct_ManifestOptions_) Default() ManifestOptions { - return Companion_ManifestOptions_.Create_Decrypt_(_dafny.EmptySeq.SetString(), _dafny.EmptySeq.SetString(), m_Wrappers.Companion_Option_.Default()) -} - -func (_this ManifestOptions) Dtor_manifestPath() _dafny.Sequence { - switch data := _this.Get_().(type) { - case ManifestOptions_Decrypt: - return data.ManifestPath - default: - return data.(ManifestOptions_Encrypt).ManifestPath - } -} - -func (_this ManifestOptions) Dtor_manifestFileName() _dafny.Sequence { - return _this.Get_().(ManifestOptions_Decrypt).ManifestFileName -} - -func (_this ManifestOptions) Dtor_testName() m_Wrappers.Option { - switch data := _this.Get_().(type) { - case ManifestOptions_Decrypt: - return data.TestName - default: - return data.(ManifestOptions_Encrypt).TestName - } -} - -func (_this ManifestOptions) Dtor_manifest() _dafny.Sequence { - return _this.Get_().(ManifestOptions_Encrypt).Manifest -} - -func (_this ManifestOptions) Dtor_decryptManifestOutput() _dafny.Sequence { - return _this.Get_().(ManifestOptions_Encrypt).DecryptManifestOutput -} - -func (_this ManifestOptions) Dtor_keysPath() _dafny.Sequence { - return _this.Get_().(ManifestOptions_DecryptSingle).KeysPath -} - -func (_this ManifestOptions) Dtor_keyDescription() _dafny.Sequence { - return _this.Get_().(ManifestOptions_DecryptSingle).KeyDescription -} - -func (_this ManifestOptions) Dtor_base64Bytes() _dafny.Sequence { - return _this.Get_().(ManifestOptions_DecryptSingle).Base64Bytes -} - -func (_this ManifestOptions) Dtor_encryptManifestOutput() _dafny.Sequence { - return _this.Get_().(ManifestOptions_EncryptManifest).EncryptManifestOutput -} - -func (_this ManifestOptions) Dtor_version() _dafny.Int { - return _this.Get_().(ManifestOptions_EncryptManifest).Version -} - -func (_this ManifestOptions) String() string { - switch data := _this.Get_().(type) { - case nil: - return "null" - case ManifestOptions_Decrypt: - { - return "EsdkManifestOptions.ManifestOptions.Decrypt" + "(" + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.ManifestFileName) + ", " + _dafny.String(data.TestName) + ")" - } - case ManifestOptions_Encrypt: - { - return "EsdkManifestOptions.ManifestOptions.Encrypt" + "(" + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.Manifest) + ", " + _dafny.String(data.DecryptManifestOutput) + ", " + _dafny.String(data.TestName) + ")" - } - case ManifestOptions_DecryptSingle: - { - return "EsdkManifestOptions.ManifestOptions.DecryptSingle" + "(" + _dafny.String(data.KeysPath) + ", " + _dafny.String(data.KeyDescription) + ", " + _dafny.String(data.Base64Bytes) + ")" - } - case ManifestOptions_EncryptManifest: - { - return "EsdkManifestOptions.ManifestOptions.EncryptManifest" + "(" + _dafny.String(data.EncryptManifestOutput) + ", " + _dafny.String(data.Version) + ")" - } - default: - { - return "" - } - } -} - -func (_this ManifestOptions) Equals(other ManifestOptions) bool { - switch data1 := _this.Get_().(type) { - case ManifestOptions_Decrypt: - { - data2, ok := other.Get_().(ManifestOptions_Decrypt) - return ok && data1.ManifestPath.Equals(data2.ManifestPath) && data1.ManifestFileName.Equals(data2.ManifestFileName) && data1.TestName.Equals(data2.TestName) - } - case ManifestOptions_Encrypt: - { - data2, ok := other.Get_().(ManifestOptions_Encrypt) - return ok && data1.ManifestPath.Equals(data2.ManifestPath) && data1.Manifest.Equals(data2.Manifest) && data1.DecryptManifestOutput.Equals(data2.DecryptManifestOutput) && data1.TestName.Equals(data2.TestName) - } - case ManifestOptions_DecryptSingle: - { - data2, ok := other.Get_().(ManifestOptions_DecryptSingle) - return ok && data1.KeysPath.Equals(data2.KeysPath) && data1.KeyDescription.Equals(data2.KeyDescription) && data1.Base64Bytes.Equals(data2.Base64Bytes) - } - case ManifestOptions_EncryptManifest: - { - data2, ok := other.Get_().(ManifestOptions_EncryptManifest) - return ok && data1.EncryptManifestOutput.Equals(data2.EncryptManifestOutput) && data1.Version.Cmp(data2.Version) == 0 - } - default: - { - return false // unexpected - } - } -} - -func (_this ManifestOptions) EqualsGeneric(other interface{}) bool { - typed, ok := other.(ManifestOptions) - return ok && _this.Equals(typed) -} - -func Type_ManifestOptions_() _dafny.TypeDescriptor { - return type_ManifestOptions_{} -} - -type type_ManifestOptions_ struct { -} - -func (_this type_ManifestOptions_) Default() interface{} { - return Companion_ManifestOptions_.Default() -} - -func (_this type_ManifestOptions_) String() string { - return "EsdkManifestOptions.ManifestOptions" -} -func (_this ManifestOptions) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = ManifestOptions{} - -// End of datatype ManifestOptions diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestManifests/EsdkTestManifests.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestManifests/EsdkTestManifests.go deleted file mode 100644 index 8109f3d7b..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestManifests/EsdkTestManifests.go +++ /dev/null @@ -1,1142 +0,0 @@ -// Package EsdkTestManifests -// Dafny module EsdkTestManifests compiled into Go - -package EsdkTestManifests - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" - m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" - m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" - m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" - m_ParseEsdkJsonManifest "github.com/aws/aws-encryption-sdk/testvectors/ParseEsdkJsonManifest" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" - m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ -var _ m_WrappedESDK.Dummy__ -var _ m_EsdkManifestOptions.Dummy__ -var _ m_EsdkTestVectors.Dummy__ -var _ m_AllEsdkV4NoReqEc.Dummy__ -var _ m_AllEsdkV4WithReqEc.Dummy__ -var _ m_WriteEsdkJsonManifests.Dummy__ -var _ m_WriteVectors.Dummy__ -var _ m_ParseEsdkJsonManifest.Dummy__ - -type Dummy__ struct{} - -// Definition of class Default__ -type Default__ struct { - dummy byte -} - -func New_Default___() *Default__ { - _this := Default__{} - - return &_this -} - -type CompanionStruct_Default___ struct { -} - -var Companion_Default___ = CompanionStruct_Default___{} - -func (_this *Default__) Equals(other *Default__) bool { - return _this == other -} - -func (_this *Default__) EqualsGeneric(x interface{}) bool { - other, ok := x.(*Default__) - return ok && _this.Equals(other) -} - -func (*Default__) String() string { - return "EsdkTestManifests.Default__" -} -func (_this *Default__) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = &Default__{} - -func (_static *CompanionStruct_Default___) StartDecryptVectors(op m_EsdkManifestOptions.ManifestOptions) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = output - var _0_valueOrError0 m_Wrappers.Result = m_Wrappers.Result{} - _ = _0_valueOrError0 - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = Companion_Default___.GetManifest((op).Dtor_manifestPath(), (op).Dtor_manifestFileName()) - _0_valueOrError0 = _out0 - if !(!((_0_valueOrError0).IsFailure())) { - panic("dafny/TestVectors/src/EsdkTestManifests.dfy(40,27): " + (_0_valueOrError0).String()) - } - var _1_decryptManifest ManifestData - _ = _1_decryptManifest - _1_decryptManifest = (_0_valueOrError0).Extract().(ManifestData) - var _2_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _2_valueOrError1 - _2_valueOrError1 = m_Wrappers.Companion_Default___.Need((_1_decryptManifest).Is_DecryptManifest(), _dafny.SeqOfString("Not a decrypt manifest")) - if (_2_valueOrError1).IsFailure() { - output = (_2_valueOrError1).PropagateFailure() - return output - } - var _3_valueOrError2 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _3_valueOrError2 - _3_valueOrError2 = m_ParseEsdkJsonManifest.Companion_Default___.BuildDecryptTestVector(op, (_1_decryptManifest).Dtor_version(), (_1_decryptManifest).Dtor_keys(), (_1_decryptManifest).Dtor_jsonTests()) - if (_3_valueOrError2).IsFailure() { - output = (_3_valueOrError2).PropagateFailure() - return output - } - var _4_decryptVectors _dafny.Sequence - _ = _4_decryptVectors - _4_decryptVectors = (_3_valueOrError2).Extract().(_dafny.Sequence) - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = Companion_Default___.TestDecrypts((_1_decryptManifest).Dtor_keys(), _4_decryptVectors) - output = _out1 - return output -} -func (_static *CompanionStruct_Default___) TestDecryptVector_q(v m_EsdkTestVectors.EsdkDecryptTestVector) bool { - return (true) && (((v).Dtor_decryptionMethod()).Is_OneShot()) -} -func (_static *CompanionStruct_Default___) TestDecrypts(keys *m_KeyVectors.KeyVectorsClient, vectors _dafny.Sequence) m_Wrappers.Result { - var manifest m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = manifest - _dafny.Print((_dafny.SeqOfString("\n=================== Starting ")).SetString()) - _dafny.Print(_dafny.IntOfUint32((vectors).Cardinality())) - _dafny.Print((_dafny.SeqOfString(" Decrypt Tests =================== \n\n")).SetString()) - var _0_hasFailure bool - _ = _0_hasFailure - _0_hasFailure = false - var _1_skipped _dafny.Int - _ = _1_skipped - _1_skipped = _dafny.Zero - var _hi0 _dafny.Int = _dafny.IntOfUint32((vectors).Cardinality()) - _ = _hi0 - for _2_i := _dafny.Zero; _2_i.Cmp(_hi0) < 0; _2_i = _2_i.Plus(_dafny.One) { - var _3_vector m_EsdkTestVectors.EsdkDecryptTestVector - _ = _3_vector - _3_vector = (vectors).Select((_2_i).Uint32()).(m_EsdkTestVectors.EsdkDecryptTestVector) - if Companion_Default___.TestDecryptVector_q(_3_vector) { - var _4_pass bool - _ = _4_pass - var _out0 bool - _ = _out0 - _out0 = m_EsdkTestVectors.Companion_Default___.TestDecrypt(keys, _3_vector) - _4_pass = _out0 - if !(_4_pass) { - _0_hasFailure = true - } - } else { - _1_skipped = (_1_skipped).Plus(_dafny.One) - _dafny.Print((_dafny.SeqOfString("\nSKIP===> ")).SetString()) - _dafny.Print(((_3_vector).Dtor_id()).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - } - } - _dafny.Print((_dafny.SeqOfString("\n=================== Completed ")).SetString()) - _dafny.Print(_dafny.IntOfUint32((vectors).Cardinality())) - _dafny.Print((_dafny.SeqOfString(" Decrypt Tests =================== \n\n")).SetString()) - if (_1_skipped).Sign() == 1 { - _dafny.Print((_dafny.SeqOfString("Skipped: ")).SetString()) - _dafny.Print(_1_skipped) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - } - if !(!(_0_hasFailure)) { - panic("dafny/TestVectors/src/EsdkTestManifests.dfy(92,4): " + (_dafny.SeqOfString("expectation violation")).String()) - } - manifest = m_Wrappers.Companion_Result_.Create_Success_(_dafny.SeqOf()) - return manifest -} -func (_static *CompanionStruct_Default___) StartEncryptVectors(op m_EsdkManifestOptions.ManifestOptions) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) - _ = output - var _0_valueOrError0 m_Wrappers.Result = m_Wrappers.Result{} - _ = _0_valueOrError0 - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = Companion_Default___.GetManifest((op).Dtor_manifestPath(), (op).Dtor_manifest()) - _0_valueOrError0 = _out0 - if (_0_valueOrError0).IsFailure() { - output = (_0_valueOrError0).PropagateFailure() - return output - } - var _1_encryptManifest ManifestData - _ = _1_encryptManifest - _1_encryptManifest = (_0_valueOrError0).Extract().(ManifestData) - var _2_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _2_valueOrError1 - _2_valueOrError1 = m_Wrappers.Companion_Default___.Need((_1_encryptManifest).Is_EncryptManifest(), _dafny.SeqOfString("Not a encrypt manifest")) - if (_2_valueOrError1).IsFailure() { - output = (_2_valueOrError1).PropagateFailure() - return output - } - var _3_valueOrError2 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _3_valueOrError2 - _3_valueOrError2 = m_ParseEsdkJsonManifest.Companion_Default___.BuildEncryptTestVector(op, (_1_encryptManifest).Dtor_version(), (_1_encryptManifest).Dtor_keys(), (_1_encryptManifest).Dtor_jsonTests()) - if (_3_valueOrError2).IsFailure() { - output = (_3_valueOrError2).PropagateFailure() - return output - } - var _4_encryptVectors _dafny.Sequence - _ = _4_encryptVectors - _4_encryptVectors = (_3_valueOrError2).Extract().(_dafny.Sequence) - var _5_valueOrError3 m_Wrappers.Result = m_Wrappers.Result{} - _ = _5_valueOrError3 - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = m_AtomicPrimitives.Companion_Default___.AtomicPrimitives(m_AtomicPrimitives.Companion_Default___.DefaultCryptoConfig()) - _5_valueOrError3 = _out1 - if !(!((_5_valueOrError3).IsFailure())) { - panic("dafny/TestVectors/src/EsdkTestManifests.dfy(114,13): " + (_5_valueOrError3).String()) - } - var _6_p *m_AtomicPrimitives.AtomicPrimitivesClient - _ = _6_p - _6_p = (_5_valueOrError3).Extract().(*m_AtomicPrimitives.AtomicPrimitivesClient) - var _7_plaintext _dafny.Map - _ = _7_plaintext - _7_plaintext = _dafny.NewMapBuilder().ToMap() - var _hi0 _dafny.Int = _dafny.IntOfUint32(((_1_encryptManifest).Dtor_plaintext()).Cardinality()) - _ = _hi0 - for _8_i := _dafny.Zero; _8_i.Cmp(_hi0) < 0; _8_i = _8_i.Plus(_dafny.One) { - var _let_tmp_rhs0 _dafny.Tuple = ((_1_encryptManifest).Dtor_plaintext()).Select((_8_i).Uint32()).(_dafny.Tuple) - _ = _let_tmp_rhs0 - var _9_name _dafny.Sequence = (*(_let_tmp_rhs0).IndexInt(0)).(_dafny.Sequence) - _ = _9_name - var _10_length int32 = (*(_let_tmp_rhs0).IndexInt(1)).(int32) - _ = _10_length - var _11_valueOrError4 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _11_valueOrError4 - var _out2 m_Wrappers.Result - _ = _out2 - _out2 = (_6_p).GenerateRandomBytes(m_AwsCryptographyPrimitivesTypes.Companion_GenerateRandomBytesInput_.Create_GenerateRandomBytesInput_(_10_length)) - _11_valueOrError4 = _out2 - if !(!((_11_valueOrError4).IsFailure())) { - panic("dafny/TestVectors/src/EsdkTestManifests.dfy(119,18): " + (_11_valueOrError4).String()) - } - var _12_data _dafny.Sequence - _ = _12_data - _12_data = (_11_valueOrError4).Extract().(_dafny.Sequence) - _dafny.Print((_dafny.Companion_Sequence_.Concatenate(_dafny.Companion_Sequence_.Concatenate((op).Dtor_decryptManifestOutput(), m_EsdkTestVectors.Companion_Default___.PlaintextPathRoot()), _9_name)).SetString()) - _dafny.Print((_dafny.SeqOfString("\n\n")).SetString()) - var _13_valueOrError5 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) - _ = _13_valueOrError5 - var _out3 m_Wrappers.Result - _ = _out3 - _out3 = m_EsdkTestVectors.Companion_Default___.WriteVectorsFile(_dafny.Companion_Sequence_.Concatenate(_dafny.Companion_Sequence_.Concatenate((op).Dtor_decryptManifestOutput(), m_EsdkTestVectors.Companion_Default___.PlaintextPathRoot()), _9_name), _12_data) - _13_valueOrError5 = _out3 - if (_13_valueOrError5).IsFailure() { - output = (_13_valueOrError5).PropagateFailure() - return output - } - var _14___v0 _dafny.Tuple - _ = _14___v0 - _14___v0 = (_13_valueOrError5).Extract().(_dafny.Tuple) - _7_plaintext = (_7_plaintext).Merge(_dafny.NewMapBuilder().ToMap().UpdateUnsafe(_9_name, _12_data)) - } - var _15_encryptTests_q m_Wrappers.Result - _ = _15_encryptTests_q - var _out4 m_Wrappers.Result - _ = _out4 - _out4 = Companion_Default___.ToEncryptTests((_1_encryptManifest).Dtor_keys(), _4_encryptVectors) - _15_encryptTests_q = _out4 - var _16_valueOrError6 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _16_valueOrError6 - _16_valueOrError6 = (_15_encryptTests_q).MapFailure(func(coer8 func(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) _dafny.Sequence) func(interface{}) interface{} { - return func(arg10 interface{}) interface{} { - return coer8(arg10.(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error)) - } - }(func(_17_e m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) _dafny.Sequence { - return func(_pat_let6_0 _dafny.Tuple) _dafny.Sequence { - return func(_18___v1 _dafny.Tuple) _dafny.Sequence { - return _dafny.SeqOfString("Cmm failure") - }(_pat_let6_0) - }(m_EsdkTestVectors.Companion_Default___.MplVectorPrintErr(_17_e)) - })) - if (_16_valueOrError6).IsFailure() { - output = (_16_valueOrError6).PropagateFailure() - return output - } - var _19_encryptTests _dafny.Sequence - _ = _19_encryptTests - _19_encryptTests = (_16_valueOrError6).Extract().(_dafny.Sequence) - var _20_valueOrError7 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _20_valueOrError7 - var _out5 m_Wrappers.Result - _ = _out5 - _out5 = Companion_Default___.TestEncrypts(_7_plaintext, (_1_encryptManifest).Dtor_keys(), _19_encryptTests) - _20_valueOrError7 = _out5 - if (_20_valueOrError7).IsFailure() { - output = (_20_valueOrError7).PropagateFailure() - return output - } - var _21_decryptVectors _dafny.Sequence - _ = _21_decryptVectors - _21_decryptVectors = (_20_valueOrError7).Extract().(_dafny.Sequence) - var _22_valueOrError8 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) - _ = _22_valueOrError8 - var _out6 m_Wrappers.Result - _ = _out6 - _out6 = m_WriteVectors.Companion_Default___.WriteDecryptManifest(op, (_1_encryptManifest).Dtor_keys(), _21_decryptVectors) - _22_valueOrError8 = _out6 - if (_22_valueOrError8).IsFailure() { - output = (_22_valueOrError8).PropagateFailure() - return output - } - var _23___v2 _dafny.Tuple - _ = _23___v2 - _23___v2 = (_22_valueOrError8).Extract().(_dafny.Tuple) - output = m_Wrappers.Companion_Result_.Create_Success_(_dafny.TupleOf()) - return output -} -func (_static *CompanionStruct_Default___) TestEncryptVector_q(vector m_EsdkTestVectors.EsdkEncryptTestVector) bool { - return (true) && (!(((vector).Dtor_frameLength()).Is_Some()) || (m_AwsCryptographyEncryptionSdkTypes.Companion_Default___.IsValid__FrameLength(((vector).Dtor_frameLength()).Dtor_value().(int64)))) -} -func (_static *CompanionStruct_Default___) ToEncryptTests(keys *m_KeyVectors.KeyVectorsClient, vectors _dafny.Sequence) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = output - var _0_encryptTests _dafny.Sequence - _ = _0_encryptTests - _0_encryptTests = _dafny.SeqOf() - var _hi0 _dafny.Int = _dafny.IntOfUint32((vectors).Cardinality()) - _ = _hi0 - for _1_i := _dafny.Zero; _1_i.Cmp(_hi0) < 0; _1_i = _1_i.Plus(_dafny.One) { - var _2_valueOrError0 m_Wrappers.Result = m_Wrappers.Result{} - _ = _2_valueOrError0 - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = m_EsdkTestVectors.Companion_Default___.EncryptVectorToEncryptTest(keys, (vectors).Select((_1_i).Uint32()).(m_EsdkTestVectors.EsdkEncryptTestVector)) - _2_valueOrError0 = _out0 - if (_2_valueOrError0).IsFailure() { - output = (_2_valueOrError0).PropagateFailure() - return output - } - var _3_test m_EsdkTestVectors.EncryptTest - _ = _3_test - _3_test = (_2_valueOrError0).Extract().(m_EsdkTestVectors.EncryptTest) - _0_encryptTests = _dafny.Companion_Sequence_.Concatenate(_0_encryptTests, _dafny.SeqOf(_3_test)) - } - output = m_Wrappers.Companion_Result_.Create_Success_(_0_encryptTests) - return output - return output -} -func (_static *CompanionStruct_Default___) TestEncrypts(plaintexts _dafny.Map, keys *m_KeyVectors.KeyVectorsClient, tests _dafny.Sequence) m_Wrappers.Result { - var manifest m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = manifest - _dafny.Print((_dafny.SeqOfString("\n=================== Starting ")).SetString()) - _dafny.Print(_dafny.IntOfUint32((tests).Cardinality())) - _dafny.Print((_dafny.SeqOfString(" Encrypt Tests =================== \n\n")).SetString()) - var _0_hasFailure bool - _ = _0_hasFailure - _0_hasFailure = false - var _1_decryptVectors _dafny.Sequence - _ = _1_decryptVectors - _1_decryptVectors = _dafny.SeqOf() - var _2_skipped _dafny.Sequence - _ = _2_skipped - _2_skipped = _dafny.SeqOf() - var _hi0 _dafny.Int = _dafny.IntOfUint32((tests).Cardinality()) - _ = _hi0 - for _3_i := _dafny.Zero; _3_i.Cmp(_hi0) < 0; _3_i = _3_i.Plus(_dafny.One) { - var _4_test m_EsdkTestVectors.EncryptTest - _ = _4_test - _4_test = (tests).Select((_3_i).Uint32()).(m_EsdkTestVectors.EncryptTest) - var _5_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _5_valueOrError0 - _5_valueOrError0 = m_Wrappers.Companion_Default___.Need((((_4_test).Dtor_vector()).Dtor_id()).Is_Some(), _dafny.SeqOfString("Vector is missing uuid")) - if (_5_valueOrError0).IsFailure() { - manifest = (_5_valueOrError0).PropagateFailure() - return manifest - } - if Companion_Default___.TestEncryptVector_q((_4_test).Dtor_vector()) { - var _6_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _6_valueOrError1 - _6_valueOrError1 = m_Wrappers.Companion_Default___.Need(((((_4_test).Dtor_vector()).Dtor_algorithmSuiteId()).Is_Some()) && ((((((_4_test).Dtor_vector()).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)).Dtor_id()).Is_ESDK()), _dafny.SeqOfString("Vector is using an algorithm suite other than ESDK")) - if (_6_valueOrError1).IsFailure() { - manifest = (_6_valueOrError1).PropagateFailure() - return manifest - } - var _7_valueOrError2 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(m_EsdkTestVectors.Companion_EncryptTestOutput_.Default()) - _ = _7_valueOrError2 - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = m_EsdkTestVectors.Companion_Default___.TestEncrypt(plaintexts, keys, _4_test) - _7_valueOrError2 = _out0 - if (_7_valueOrError2).IsFailure() { - manifest = (_7_valueOrError2).PropagateFailure() - return manifest - } - var _8_pass m_EsdkTestVectors.EncryptTestOutput - _ = _8_pass - _8_pass = (_7_valueOrError2).Extract().(m_EsdkTestVectors.EncryptTestOutput) - if !((_8_pass).Dtor_output()) { - _0_hasFailure = true - } else if ((_8_pass).Dtor_vector()).Is_Some() { - _1_decryptVectors = _dafny.Companion_Sequence_.Concatenate(_1_decryptVectors, _dafny.SeqOf(((_8_pass).Dtor_vector()).Dtor_value().(m_EsdkTestVectors.EsdkDecryptTestVector))) - } - } else { - _2_skipped = _dafny.Companion_Sequence_.Concatenate(_2_skipped, _dafny.SeqOf(_dafny.Companion_Sequence_.Concatenate((((_4_test).Dtor_vector()).Dtor_id()).Dtor_value().(_dafny.Sequence), _dafny.SeqOfString("\n")))) - _dafny.Print((_dafny.SeqOfString("\nSKIP===> ")).SetString()) - _dafny.Print(((((_4_test).Dtor_vector()).Dtor_id()).Dtor_value().(_dafny.Sequence)).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - } - } - _dafny.Print((_dafny.SeqOfString("\n=================== Completed ")).SetString()) - _dafny.Print(_dafny.IntOfUint32((tests).Cardinality())) - _dafny.Print((_dafny.SeqOfString(" Encrypt Tests =================== \n\n")).SetString()) - if !(!(_0_hasFailure)) { - panic("dafny/TestVectors/src/EsdkTestManifests.dfy(215,4): " + (_dafny.SeqOfString("expectation violation")).String()) - } - manifest = m_Wrappers.Companion_Result_.Create_Success_(_1_decryptVectors) - return manifest -} -func (_static *CompanionStruct_Default___) GetManifest(manifestPath _dafny.Sequence, manifestFileName _dafny.Sequence) m_Wrappers.Result { - var manifestData m_Wrappers.Result = m_Wrappers.Result{} - _ = manifestData - var _0_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _0_valueOrError0 - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = m_FileIO.Companion_Default___.ReadBytesFromFile(_dafny.Companion_Sequence_.Concatenate(manifestPath, manifestFileName)) - _0_valueOrError0 = _out0 - if (_0_valueOrError0).IsFailure() { - manifestData = (_0_valueOrError0).PropagateFailure() - return manifestData - } - var _1_decryptManifestBv _dafny.Sequence - _ = _1_decryptManifestBv - _1_decryptManifestBv = (_0_valueOrError0).Extract().(_dafny.Sequence) - var _2_decryptManifestBytes _dafny.Sequence - _ = _2_decryptManifestBytes - _2_decryptManifestBytes = m_JSONHelpers.Companion_Default___.BvToBytes(_1_decryptManifestBv) - var _3_valueOrError1 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(m_JSON_Values.Companion_JSON_.Default()) - _ = _3_valueOrError1 - _3_valueOrError1 = (m_JSON_API.Companion_Default___.Deserialize(_2_decryptManifestBytes)).MapFailure(func(coer9 func(m_JSON_Errors.DeserializationError) _dafny.Sequence) func(interface{}) interface{} { - return func(arg11 interface{}) interface{} { - return coer9(arg11.(m_JSON_Errors.DeserializationError)) - } - }(func(_4_e m_JSON_Errors.DeserializationError) _dafny.Sequence { - return (_4_e).ToString() - })) - if (_3_valueOrError1).IsFailure() { - manifestData = (_3_valueOrError1).PropagateFailure() - return manifestData - } - var _5_manifestJson m_JSON_Values.JSON - _ = _5_manifestJson - _5_manifestJson = (_3_valueOrError1).Extract().(m_JSON_Values.JSON) - var _6_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _6_valueOrError2 - _6_valueOrError2 = m_Wrappers.Companion_Default___.Need((_5_manifestJson).Is_Object(), _dafny.SeqOfString("Not a JSON object")) - if (_6_valueOrError2).IsFailure() { - manifestData = (_6_valueOrError2).PropagateFailure() - return manifestData - } - var _7_valueOrError3 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _7_valueOrError3 - _7_valueOrError3 = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("manifest"), (_5_manifestJson).Dtor_obj()) - if (_7_valueOrError3).IsFailure() { - manifestData = (_7_valueOrError3).PropagateFailure() - return manifestData - } - var _8_manifest _dafny.Sequence - _ = _8_manifest - _8_manifest = (_7_valueOrError3).Extract().(_dafny.Sequence) - var _9_valueOrError4 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.Zero) - _ = _9_valueOrError4 - _9_valueOrError4 = m_JSONHelpers.Companion_Default___.GetNat(_dafny.SeqOfString("version"), _8_manifest) - if (_9_valueOrError4).IsFailure() { - manifestData = (_9_valueOrError4).PropagateFailure() - return manifestData - } - var _10_version _dafny.Int - _ = _10_version - _10_version = (_9_valueOrError4).Extract().(_dafny.Int) - var _11_valueOrError5 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq.SetString()) - _ = _11_valueOrError5 - _11_valueOrError5 = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("type"), _8_manifest) - if (_11_valueOrError5).IsFailure() { - manifestData = (_11_valueOrError5).PropagateFailure() - return manifestData - } - var _12_typ _dafny.Sequence - _ = _12_typ - _12_typ = (_11_valueOrError5).Extract().(_dafny.Sequence) - var _13_valueOrError6 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq.SetString()) - _ = _13_valueOrError6 - _13_valueOrError6 = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("keys"), (_5_manifestJson).Dtor_obj()) - if (_13_valueOrError6).IsFailure() { - manifestData = (_13_valueOrError6).PropagateFailure() - return manifestData - } - var _14_keyManifestUri _dafny.Sequence - _ = _14_keyManifestUri - _14_keyManifestUri = (_13_valueOrError6).Extract().(_dafny.Sequence) - var _15_valueOrError7 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _15_valueOrError7 - _15_valueOrError7 = m_Wrappers.Companion_Default___.Need(_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _14_keyManifestUri), _dafny.SeqOfString("Unexpected URI prefix")) - if (_15_valueOrError7).IsFailure() { - manifestData = (_15_valueOrError7).PropagateFailure() - return manifestData - } - var _16_keyManifestPath _dafny.Sequence - _ = _16_keyManifestPath - _16_keyManifestPath = _dafny.Companion_Sequence_.Concatenate(manifestPath, (_14_keyManifestUri).Drop(7)) - var _17_valueOrError8 m_Wrappers.Result = m_Wrappers.Result{} - _ = _17_valueOrError8 - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = m_KeyVectors.Companion_Default___.KeyVectors(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_KeyVectorsConfig_.Create_KeyVectorsConfig_(_16_keyManifestPath)) - _17_valueOrError8 = _out1 - if !(!((_17_valueOrError8).IsFailure())) { - panic("dafny/TestVectors/src/EsdkTestManifests.dfy(263,16): " + (_17_valueOrError8).String()) - } - var _18_keys *m_KeyVectors.KeyVectorsClient - _ = _18_keys - _18_keys = (_17_valueOrError8).Extract().(*m_KeyVectors.KeyVectorsClient) - var _19_valueOrError9 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _19_valueOrError9 - _19_valueOrError9 = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("tests"), (_5_manifestJson).Dtor_obj()) - if (_19_valueOrError9).IsFailure() { - manifestData = (_19_valueOrError9).PropagateFailure() - return manifestData - } - var _20_jsonTests _dafny.Sequence - _ = _20_jsonTests - _20_jsonTests = (_19_valueOrError9).Extract().(_dafny.Sequence) - var _source0 _dafny.Sequence = _12_typ - _ = _source0 - { - { - if (_source0).Equals(_dafny.SeqOfString("awses-decrypt")) { - var _21_valueOrError10 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _21_valueOrError10 - _21_valueOrError10 = m_Wrappers.Companion_Default___.Need(m_EsdkTestVectors.Companion_Default___.SupportedDecryptVersion_q(_10_version), _dafny.SeqOfString("Unsupported manifest version")) - if (_21_valueOrError10).IsFailure() { - manifestData = (_21_valueOrError10).PropagateFailure() - return manifestData - } - var _22_valueOrError11 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(m_JSON_Values.Companion_JSON_.Default()) - _ = _22_valueOrError11 - _22_valueOrError11 = m_JSONHelpers.Companion_Default___.Get(_dafny.SeqOfString("client"), (_5_manifestJson).Dtor_obj()) - if (_22_valueOrError11).IsFailure() { - manifestData = (_22_valueOrError11).PropagateFailure() - return manifestData - } - var _23_client m_JSON_Values.JSON - _ = _23_client - _23_client = (_22_valueOrError11).Extract().(m_JSON_Values.JSON) - manifestData = m_Wrappers.Companion_Result_.Create_Success_(Companion_ManifestData_.Create_DecryptManifest_(_10_version, _18_keys, _23_client, _20_jsonTests)) - goto Lmatch0 - } - } - { - if (_source0).Equals(_dafny.SeqOfString("awses-encrypt")) { - var _24_valueOrError12 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _24_valueOrError12 - _24_valueOrError12 = m_Wrappers.Companion_Default___.Need(m_EsdkTestVectors.Companion_Default___.SupportedEncryptVersion_q(_10_version), _dafny.SeqOfString("Unsupported manifest version")) - if (_24_valueOrError12).IsFailure() { - manifestData = (_24_valueOrError12).PropagateFailure() - return manifestData - } - var _25_valueOrError13 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _25_valueOrError13 - _25_valueOrError13 = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("plaintexts"), (_5_manifestJson).Dtor_obj()) - if (_25_valueOrError13).IsFailure() { - manifestData = (_25_valueOrError13).PropagateFailure() - return manifestData - } - var _26_plaintextsJson _dafny.Sequence - _ = _26_plaintextsJson - _26_plaintextsJson = (_25_valueOrError13).Extract().(_dafny.Sequence) - var _27_valueOrError15 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _27_valueOrError15 - _27_valueOrError15 = m_Seq.Companion_Default___.MapWithResult(func(coer10 func(_dafny.Tuple) m_Wrappers.Result) func(interface{}) m_Wrappers.Result { - return func(arg12 interface{}) m_Wrappers.Result { - return coer10(arg12.(_dafny.Tuple)) - } - }(func(_28_obj _dafny.Tuple) m_Wrappers.Result { - return func(_pat_let7_0 m_Wrappers.Outcome) m_Wrappers.Result { - return func(_29_valueOrError14 m_Wrappers.Outcome) m_Wrappers.Result { - return (func() m_Wrappers.Result { - if (_29_valueOrError14).IsFailure() { - return (_29_valueOrError14).PropagateFailure() - } - return m_Wrappers.Companion_Result_.Create_Success_(_dafny.TupleOf((*(_28_obj).IndexInt(0)).(_dafny.Sequence), ((((*(_28_obj).IndexInt(1)).(m_JSON_Values.JSON)).Dtor_num()).Dtor_n()).Int32())) - })() - }(_pat_let7_0) - }(m_Wrappers.Companion_Default___.Need((((*(_28_obj).IndexInt(1)).(m_JSON_Values.JSON)).Is_Number()) && ((((((*(_28_obj).IndexInt(1)).(m_JSON_Values.JSON)).Dtor_num()).Dtor_n()).Sign() == 1) && (((((*(_28_obj).IndexInt(1)).(m_JSON_Values.JSON)).Dtor_num()).Dtor_n()).Cmp(_dafny.IntOfInt32(m_BoundedInts.Companion_Default___.INT32__MAX())) <= 0)), _dafny.SeqOfString("Size is not a natural number."))) - }), _26_plaintextsJson) - if (_27_valueOrError15).IsFailure() { - manifestData = (_27_valueOrError15).PropagateFailure() - return manifestData - } - var _30_plaintextsLength _dafny.Sequence - _ = _30_plaintextsLength - _30_plaintextsLength = (_27_valueOrError15).Extract().(_dafny.Sequence) - manifestData = m_Wrappers.Companion_Result_.Create_Success_(Companion_ManifestData_.Create_EncryptManifest_(_10_version, _18_keys, _30_plaintextsLength, _20_jsonTests)) - goto Lmatch0 - } - } - { - manifestData = m_Wrappers.Companion_Result_.Create_Failure_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOfString("Unsupported manifest type:"), _12_typ)) - } - goto Lmatch0 - } -Lmatch0: - return manifestData -} - -// End of class Default__ - -// Definition of datatype ManifestData -type ManifestData struct { - Data_ManifestData_ -} - -func (_this ManifestData) Get_() Data_ManifestData_ { - return _this.Data_ManifestData_ -} - -type Data_ManifestData_ interface { - isManifestData() -} - -type CompanionStruct_ManifestData_ struct { -} - -var Companion_ManifestData_ = CompanionStruct_ManifestData_{} - -type ManifestData_DecryptManifest struct { - Version _dafny.Int - Keys *m_KeyVectors.KeyVectorsClient - Client m_JSON_Values.JSON - JsonTests _dafny.Sequence -} - -func (ManifestData_DecryptManifest) isManifestData() {} - -func (CompanionStruct_ManifestData_) Create_DecryptManifest_(Version _dafny.Int, Keys *m_KeyVectors.KeyVectorsClient, Client m_JSON_Values.JSON, JsonTests _dafny.Sequence) ManifestData { - return ManifestData{ManifestData_DecryptManifest{Version, Keys, Client, JsonTests}} -} - -func (_this ManifestData) Is_DecryptManifest() bool { - _, ok := _this.Get_().(ManifestData_DecryptManifest) - return ok -} - -type ManifestData_EncryptManifest struct { - Version _dafny.Int - Keys *m_KeyVectors.KeyVectorsClient - Plaintext _dafny.Sequence - JsonTests _dafny.Sequence -} - -func (ManifestData_EncryptManifest) isManifestData() {} - -func (CompanionStruct_ManifestData_) Create_EncryptManifest_(Version _dafny.Int, Keys *m_KeyVectors.KeyVectorsClient, Plaintext _dafny.Sequence, JsonTests _dafny.Sequence) ManifestData { - return ManifestData{ManifestData_EncryptManifest{Version, Keys, Plaintext, JsonTests}} -} - -func (_this ManifestData) Is_EncryptManifest() bool { - _, ok := _this.Get_().(ManifestData_EncryptManifest) - return ok -} - -func (CompanionStruct_ManifestData_) Default() ManifestData { - return Companion_ManifestData_.Create_DecryptManifest_(_dafny.Zero, (*m_KeyVectors.KeyVectorsClient)(nil), m_JSON_Values.Companion_JSON_.Default(), _dafny.EmptySeq) -} - -func (_this ManifestData) Dtor_version() _dafny.Int { - switch data := _this.Get_().(type) { - case ManifestData_DecryptManifest: - return data.Version - default: - return data.(ManifestData_EncryptManifest).Version - } -} - -func (_this ManifestData) Dtor_keys() *m_KeyVectors.KeyVectorsClient { - switch data := _this.Get_().(type) { - case ManifestData_DecryptManifest: - return data.Keys - default: - return data.(ManifestData_EncryptManifest).Keys - } -} - -func (_this ManifestData) Dtor_client() m_JSON_Values.JSON { - return _this.Get_().(ManifestData_DecryptManifest).Client -} - -func (_this ManifestData) Dtor_jsonTests() _dafny.Sequence { - switch data := _this.Get_().(type) { - case ManifestData_DecryptManifest: - return data.JsonTests - default: - return data.(ManifestData_EncryptManifest).JsonTests - } -} - -func (_this ManifestData) Dtor_plaintext() _dafny.Sequence { - return _this.Get_().(ManifestData_EncryptManifest).Plaintext -} - -func (_this ManifestData) String() string { - switch data := _this.Get_().(type) { - case nil: - return "null" - case ManifestData_DecryptManifest: - { - return "EsdkTestManifests.ManifestData.DecryptManifest" + "(" + _dafny.String(data.Version) + ", " + _dafny.String(data.Keys) + ", " + _dafny.String(data.Client) + ", " + _dafny.String(data.JsonTests) + ")" - } - case ManifestData_EncryptManifest: - { - return "EsdkTestManifests.ManifestData.EncryptManifest" + "(" + _dafny.String(data.Version) + ", " + _dafny.String(data.Keys) + ", " + _dafny.String(data.Plaintext) + ", " + _dafny.String(data.JsonTests) + ")" - } - default: - { - return "" - } - } -} - -func (_this ManifestData) Equals(other ManifestData) bool { - switch data1 := _this.Get_().(type) { - case ManifestData_DecryptManifest: - { - data2, ok := other.Get_().(ManifestData_DecryptManifest) - return ok && data1.Version.Cmp(data2.Version) == 0 && data1.Keys == data2.Keys && data1.Client.Equals(data2.Client) && data1.JsonTests.Equals(data2.JsonTests) - } - case ManifestData_EncryptManifest: - { - data2, ok := other.Get_().(ManifestData_EncryptManifest) - return ok && data1.Version.Cmp(data2.Version) == 0 && data1.Keys == data2.Keys && data1.Plaintext.Equals(data2.Plaintext) && data1.JsonTests.Equals(data2.JsonTests) - } - default: - { - return false // unexpected - } - } -} - -func (_this ManifestData) EqualsGeneric(other interface{}) bool { - typed, ok := other.(ManifestData) - return ok && _this.Equals(typed) -} - -func Type_ManifestData_() _dafny.TypeDescriptor { - return type_ManifestData_{} -} - -type type_ManifestData_ struct { -} - -func (_this type_ManifestData_) Default() interface{} { - return Companion_ManifestData_.Default() -} - -func (_this type_ManifestData_) String() string { - return "EsdkTestManifests.ManifestData" -} -func (_this ManifestData) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = ManifestData{} - -// End of datatype ManifestData diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestVectors/EsdkTestVectors.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestVectors/EsdkTestVectors.go deleted file mode 100644 index dc2ffa156..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/EsdkTestVectors/EsdkTestVectors.go +++ /dev/null @@ -1,2134 +0,0 @@ -// Package EsdkTestVectors -// Dafny module EsdkTestVectors compiled into Go - -package EsdkTestVectors - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ -var _ m_WrappedESDK.Dummy__ -var _ m_EsdkManifestOptions.Dummy__ - -type Dummy__ struct{} - -// Definition of class Default__ -type Default__ struct { - dummy byte -} - -func New_Default___() *Default__ { - _this := Default__{} - - return &_this -} - -type CompanionStruct_Default___ struct { -} - -var Companion_Default___ = CompanionStruct_Default___{} - -func (_this *Default__) Equals(other *Default__) bool { - return _this == other -} - -func (_this *Default__) EqualsGeneric(x interface{}) bool { - other, ok := x.(*Default__) - return ok && _this.Equals(other) -} - -func (*Default__) String() string { - return "EsdkTestVectors.Default__" -} -func (_this *Default__) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = &Default__{} - -func (_static *CompanionStruct_Default___) SupportedGenerateManifestVersion_q(v _dafny.Int) bool { - return (false) || ((v).Cmp(_dafny.IntOfInt64(4)) == 0) -} -func (_static *CompanionStruct_Default___) SupportedEncryptVersion_q(v _dafny.Int) bool { - return (((v).Cmp(_dafny.One) == 0) || ((v).Cmp(_dafny.IntOfInt64(4)) == 0)) || ((v).Cmp(_dafny.IntOfInt64(5)) == 0) -} -func (_static *CompanionStruct_Default___) SupportedDecryptVersion_q(v _dafny.Int) bool { - return (((v).Cmp(_dafny.One) == 0) || ((v).Cmp(_dafny.IntOfInt64(2)) == 0)) || ((v).Cmp(_dafny.IntOfInt64(3)) == 0) -} -func (_static *CompanionStruct_Default___) TestDecrypt(keys *m_KeyVectors.KeyVectorsClient, vector EsdkDecryptTestVector) bool { - var output bool = false - _ = output - if ((vector).Dtor_algorithmSuiteId()).Is_Some() { - var _0_id _dafny.Sequence - _ = _0_id - _0_id = m_AllAlgorithmSuites.Companion_Default___.ToHex(((vector).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) - _dafny.Print((_dafny.SeqOfString("\nTEST-DECRYPT===> ")).SetString()) - _dafny.Print(((vector).Dtor_id()).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - _dafny.Print((_0_id).SetString()) - _dafny.Print((_dafny.SeqOfString(" ")).SetString()) - _dafny.Print(((vector).Dtor_description()).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - } else { - _dafny.Print((_dafny.SeqOfString("\nTEST-DECRYPT===> ")).SetString()) - _dafny.Print(((vector).Dtor_id()).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - _dafny.Print(((vector).Dtor_description()).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - } - var _1_test_q m_Wrappers.Result - _ = _1_test_q - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = Companion_Default___.DecryptVectorToDecryptTest(keys, vector) - _1_test_q = _out0 - if (_1_test_q).Is_Failure() { - _dafny.Print((_1_test_q).Dtor_error().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error)) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - _dafny.Print((_dafny.SeqOfString("\nFAILED! <-----------\n")).SetString()) - output = false - return output - } - var _2_test DecryptTest - _ = _2_test - _2_test = (_1_test_q).Dtor_value().(DecryptTest) - var _3_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _3_valueOrError0 - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = Companion_Default___.ReadVectorsFile(_dafny.Companion_Sequence_.Concatenate(((_2_test).Dtor_vector()).Dtor_manifestPath(), ((_2_test).Dtor_vector()).Dtor_ciphertextPath())) - _3_valueOrError0 = _out1 - if !(!((_3_valueOrError0).IsFailure())) { - panic("dafny/TestVectors/src/EsdkTestVectors.dfy(202,22): " + (_3_valueOrError0).String()) - } - var _4_ciphertext _dafny.Sequence - _ = _4_ciphertext - _4_ciphertext = (_3_valueOrError0).Extract().(_dafny.Sequence) - var _5_plaintext _dafny.Sequence = _dafny.EmptySeq - _ = _5_plaintext - if (((_2_test).Dtor_vector()).Is_PositiveDecryptTestVector()) || (((_2_test).Dtor_vector()).Is_PositiveV1OrV2DecryptTestVector()) { - var _6_valueOrError1 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _6_valueOrError1 - var _out2 m_Wrappers.Result - _ = _out2 - _out2 = Companion_Default___.ReadVectorsFile(_dafny.Companion_Sequence_.Concatenate(((_2_test).Dtor_vector()).Dtor_manifestPath(), ((_2_test).Dtor_vector()).Dtor_plaintextPath())) - _6_valueOrError1 = _out2 - if !(!((_6_valueOrError1).IsFailure())) { - panic("dafny/TestVectors/src/EsdkTestVectors.dfy(205,19): " + (_6_valueOrError1).String()) - } - _5_plaintext = (_6_valueOrError1).Extract().(_dafny.Sequence) - } - var _7_input m_AwsCryptographyEncryptionSdkTypes.DecryptInput - _ = _7_input - _7_input = m_AwsCryptographyEncryptionSdkTypes.Companion_DecryptInput_.Create_DecryptInput_(_4_ciphertext, m_Wrappers.Companion_Option_.Create_Some_((_2_test).Dtor_cmm()), m_Wrappers.Companion_Option_.Create_None_(), ((_2_test).Dtor_vector()).Dtor_reproducedEncryptionContext()) - var _8_result m_Wrappers.Result - _ = _8_result - var _out3 m_Wrappers.Result - _ = _out3 - _out3 = ((_2_test).Dtor_client()).Decrypt(_7_input) - _8_result = _out3 - var _source0 EsdkDecryptTestVector = (_2_test).Dtor_vector() - _ = _source0 - { - { - if _source0.Is_PositiveDecryptTestVector() { - output = ((_8_result).Is_Success()) && (_dafny.Companion_Sequence_.Equal(((_8_result).Dtor_value().(m_AwsCryptographyEncryptionSdkTypes.DecryptOutput)).Dtor_plaintext(), _5_plaintext)) - goto Lmatch0 - } - } - { - if _source0.Is_NegativeDecryptTestVector() { - output = (true) && ((_8_result).Is_Failure()) - goto Lmatch0 - } - } - { - output = ((_8_result).Is_Success()) && (_dafny.Companion_Sequence_.Equal(((_8_result).Dtor_value().(m_AwsCryptographyEncryptionSdkTypes.DecryptOutput)).Dtor_plaintext(), _5_plaintext)) - } - goto Lmatch0 - } -Lmatch0: - if !(output) { - if ((((_2_test).Dtor_vector()).Is_PositiveDecryptTestVector()) || (((_2_test).Dtor_vector()).Is_PositiveV1OrV2DecryptTestVector())) && ((_8_result).Is_Failure()) { - _dafny.Print((_8_result).Dtor_error().(m_AwsCryptographyEncryptionSdkTypes.Error)) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - if (((_8_result).Dtor_error().(m_AwsCryptographyEncryptionSdkTypes.Error)).Is_AwsCryptographyMaterialProviders()) && ((((_8_result).Dtor_error().(m_AwsCryptographyEncryptionSdkTypes.Error)).Dtor_AwsCryptographyMaterialProviders()).Is_CollectionOfErrors()) { - _dafny.Print((_dafny.SeqOfString("list:")).SetString()) - _dafny.Print((((_8_result).Dtor_error().(m_AwsCryptographyEncryptionSdkTypes.Error)).Dtor_AwsCryptographyMaterialProviders()).Dtor_list()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - } - } - _dafny.Print((_dafny.SeqOfString("\nFAILED! <-----------\n")).SetString()) - } - return output -} -func (_static *CompanionStruct_Default___) DecryptVectorToDecryptTest(keys *m_KeyVectors.KeyVectorsClient, vector EsdkDecryptTestVector) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Result{} - _ = output - var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _0_valueOrError0 - _0_valueOrError0 = m_Wrappers.Companion_Default___.Need(!((vector).Is_NegativeDecryptTestVector()), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_KeyVectorException_(_dafny.SeqOfString("Negative Test Vectors not supported at this time"))) - if (_0_valueOrError0).IsFailure() { - output = (_0_valueOrError0).PropagateFailure() - return output - } - var _1_valueOrError1 m_Wrappers.Result = m_Wrappers.Result{} - _ = _1_valueOrError1 - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = (keys).CreateWrappedTestVectorCmm(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_TestVectorCmmInput_.Create_TestVectorCmmInput_((vector).Dtor_decryptDescriptions(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_CmmOperation_.Create_DECRYPT_())) - _1_valueOrError1 = _out0 - if (_1_valueOrError1).IsFailure() { - output = (_1_valueOrError1).PropagateFailure() - return output - } - var _2_cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager - _ = _2_cmm - _2_cmm = m_AwsCryptographyMaterialProvidersTypes.Companion_ICryptographicMaterialsManager_.CastTo_((_1_valueOrError1).Extract()) - var _3_commitmentPolicy m_AwsCryptographyMaterialProvidersTypes.CommitmentPolicy - _ = _3_commitmentPolicy - if ((vector).Dtor_algorithmSuiteId()).Is_Some() { - _3_commitmentPolicy = m_AllAlgorithmSuites.Companion_Default___.GetCompatibleCommitmentPolicy(((vector).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) - } else { - _3_commitmentPolicy = m_AwsCryptographyMaterialProvidersTypes.Companion_CommitmentPolicy_.Create_ESDK_(m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_()) - } - var _4_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _4_valueOrError2 - _4_valueOrError2 = m_Wrappers.Companion_Default___.Need((_3_commitmentPolicy).Is_ESDK(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_KeyVectorException_(_dafny.SeqOfString("Compatible commitment policy is not for ESDK"))) - if (_4_valueOrError2).IsFailure() { - output = (_4_valueOrError2).PropagateFailure() - return output - } - var _5_config m_AwsCryptographyEncryptionSdkTypes.AwsEncryptionSdkConfig - _ = _5_config - _5_config = m_WrappedESDK.Companion_Default___.WrappedAwsEncryptionSdkConfigWithSuppliedCommitment((_3_commitmentPolicy).Dtor_ESDK()) - var _6_valueOrError3 m_Wrappers.Result = m_Wrappers.Result{} - _ = _6_valueOrError3 - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = m_WrappedESDK.Companion_Default___.WrappedESDK(_5_config) - _6_valueOrError3 = _out1 - if !(!((_6_valueOrError3).IsFailure())) { - panic("dafny/TestVectors/src/EsdkTestVectors.dfy(281,18): " + (_6_valueOrError3).String()) - } - var _7_client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient - _ = _7_client - _7_client = m_AwsCryptographyEncryptionSdkTypes.Companion_IAwsEncryptionSdkClient_.CastTo_((_6_valueOrError3).Extract()) - var _8_test DecryptTest - _ = _8_test - _8_test = Companion_DecryptTest_.Create_DecryptTest_(_2_cmm, _7_client, vector) - output = m_Wrappers.Companion_Result_.Create_Success_(_8_test) - return output -} -func (_static *CompanionStruct_Default___) TestEncrypt(plaintexts _dafny.Map, keys *m_KeyVectors.KeyVectorsClient, test EncryptTest) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(Companion_EncryptTestOutput_.Default()) - _ = output - var _0_id _dafny.Sequence - _ = _0_id - _0_id = m_AllAlgorithmSuites.Companion_Default___.ToHex((((test).Dtor_vector()).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) - _dafny.Print((_dafny.SeqOfString("\nTEST-ENCRYPT===> ")).SetString()) - _dafny.Print(((((test).Dtor_vector()).Dtor_id()).Dtor_value().(_dafny.Sequence)).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - _dafny.Print((_0_id).SetString()) - _dafny.Print((_dafny.SeqOfString(" ")).SetString()) - _dafny.Print((((test).Dtor_vector()).Dtor_description()).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - var _1_vector EsdkEncryptTestVector - _ = _1_vector - _1_vector = (test).Dtor_vector() - if !((plaintexts).Contains(((test).Dtor_vector()).Dtor_plaintextPath())) { - panic("dafny/TestVectors/src/EsdkTestVectors.dfy(324,4): " + (_dafny.SeqOfString("expectation violation")).String()) - } - var _2_plaintext _dafny.Sequence - _ = _2_plaintext - _2_plaintext = (plaintexts).Get(((test).Dtor_vector()).Dtor_plaintextPath()).(_dafny.Sequence) - var _3_frameLength m_Wrappers.Option - _ = _3_frameLength - _3_frameLength = (_1_vector).Dtor_frameLength() - var _4_input m_AwsCryptographyEncryptionSdkTypes.EncryptInput - _ = _4_input - _4_input = m_AwsCryptographyEncryptionSdkTypes.Companion_EncryptInput_.Create_EncryptInput_(_2_plaintext, ((test).Dtor_vector()).Dtor_encryptionContext(), m_Wrappers.Companion_Option_.Create_Some_((test).Dtor_cmm()), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_Some_((((((test).Dtor_vector()).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)).Dtor_id()).Dtor_ESDK()), _3_frameLength) - var _5_result m_Wrappers.Result - _ = _5_result - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = ((test).Dtor_client()).Encrypt(_4_input) - _5_result = _out0 - if ((_5_result).Is_Success()) && ((((test).Dtor_vector()).Is_PositiveEncryptTestVector()) || (((test).Dtor_vector()).Is_PositiveEncryptNegativeDecryptTestVector())) { - var _6_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(Companion_EsdkDecryptTestVector_.Default()) - _ = _6_valueOrError0 - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = Companion_Default___.EncryptTestToDecryptVector(test, (_5_result).Dtor_value().(m_AwsCryptographyEncryptionSdkTypes.EncryptOutput)) - _6_valueOrError0 = _out1 - if (_6_valueOrError0).IsFailure() { - output = (_6_valueOrError0).PropagateFailure() - return output - } - var _7_decryptVector EsdkDecryptTestVector - _ = _7_decryptVector - _7_decryptVector = (_6_valueOrError0).Extract().(EsdkDecryptTestVector) - output = m_Wrappers.Companion_Result_.Create_Success_(Companion_EncryptTestOutput_.Create_EncryptTestOutput_(true, m_Wrappers.Companion_Option_.Create_Some_(_7_decryptVector))) - } else if ((_5_result).Is_Failure()) && (((test).Dtor_vector()).Is_NegativeEncryptTestVector()) { - output = m_Wrappers.Companion_Result_.Create_Success_(Companion_EncryptTestOutput_.Create_EncryptTestOutput_(true, m_Wrappers.Companion_Option_.Create_None_())) - } else { - output = m_Wrappers.Companion_Result_.Create_Success_(Companion_EncryptTestOutput_.Create_EncryptTestOutput_(false, m_Wrappers.Companion_Option_.Create_None_())) - if (!(((test).Dtor_vector()).Is_NegativeEncryptTestVector())) && ((_5_result).Is_Failure()) { - _dafny.Print((_5_result).Dtor_error().(m_AwsCryptographyEncryptionSdkTypes.Error)) - } - _dafny.Print((_dafny.SeqOfString("\nFAILED! <-----------\n")).SetString()) - } - return output -} -func (_static *CompanionStruct_Default___) EncryptVectorToEncryptTest(keys *m_KeyVectors.KeyVectorsClient, vector EsdkEncryptTestVector) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Result{} - _ = output - var _0_valueOrError0 m_Wrappers.Result = m_Wrappers.Result{} - _ = _0_valueOrError0 - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = (keys).CreateWrappedTestVectorCmm(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_TestVectorCmmInput_.Create_TestVectorCmmInput_((func() m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription { - if (vector).Is_PositiveEncryptTestVector() { - return (vector).Dtor_encryptDescriptions() - } - return (func() m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription { - if (vector).Is_PositiveEncryptNegativeDecryptTestVector() { - return (vector).Dtor_encryptDescriptions() - } - return (vector).Dtor_encryptDescriptions() - })() - })(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_CmmOperation_.Create_ENCRYPT_())) - _0_valueOrError0 = _out0 - if (_0_valueOrError0).IsFailure() { - output = (_0_valueOrError0).PropagateFailure() - return output - } - var _1_cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager - _ = _1_cmm - _1_cmm = m_AwsCryptographyMaterialProvidersTypes.Companion_ICryptographicMaterialsManager_.CastTo_((_0_valueOrError0).Extract()) - var _2_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _2_valueOrError1 - _2_valueOrError1 = m_Wrappers.Companion_Default___.Need(((vector).Dtor_algorithmSuiteId()).Is_Some(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_KeyVectorException_(_dafny.SeqOfString("Missing AlgorithmSuiteId in test vector"))) - if (_2_valueOrError1).IsFailure() { - output = (_2_valueOrError1).PropagateFailure() - return output - } - var _3_commitmentPolicy m_AwsCryptographyMaterialProvidersTypes.CommitmentPolicy - _ = _3_commitmentPolicy - _3_commitmentPolicy = m_AllAlgorithmSuites.Companion_Default___.GetCompatibleCommitmentPolicy(((vector).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) - var _4_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _4_valueOrError2 - _4_valueOrError2 = m_Wrappers.Companion_Default___.Need((_3_commitmentPolicy).Is_ESDK(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_KeyVectorException_(_dafny.SeqOfString("Compatible commitment policy is not for ESDK"))) - if (_4_valueOrError2).IsFailure() { - output = (_4_valueOrError2).PropagateFailure() - return output - } - var _5_config m_AwsCryptographyEncryptionSdkTypes.AwsEncryptionSdkConfig - _ = _5_config - _5_config = m_WrappedESDK.Companion_Default___.WrappedAwsEncryptionSdkConfigWithSuppliedCommitment((_3_commitmentPolicy).Dtor_ESDK()) - var _6_valueOrError3 m_Wrappers.Result = m_Wrappers.Result{} - _ = _6_valueOrError3 - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = m_WrappedESDK.Companion_Default___.WrappedESDK(_5_config) - _6_valueOrError3 = _out1 - if !(!((_6_valueOrError3).IsFailure())) { - panic("dafny/TestVectors/src/EsdkTestVectors.dfy(397,18): " + (_6_valueOrError3).String()) - } - var _7_client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient - _ = _7_client - _7_client = m_AwsCryptographyEncryptionSdkTypes.Companion_IAwsEncryptionSdkClient_.CastTo_((_6_valueOrError3).Extract()) - var _8_test EncryptTest - _ = _8_test - _8_test = Companion_EncryptTest_.Create_EncryptTest_(_1_cmm, _7_client, vector) - output = m_Wrappers.Companion_Result_.Create_Success_(_8_test) - return output -} -func (_static *CompanionStruct_Default___) EncryptTestToDecryptVector(test EncryptTest, result m_AwsCryptographyEncryptionSdkTypes.EncryptOutput) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(Companion_EsdkDecryptTestVector_.Default()) - _ = output - var _source0 EsdkEncryptTestVector = (test).Dtor_vector() - _ = _source0 - { - { - if _source0.Is_PositiveEncryptTestVector() { - output = m_Wrappers.Companion_Result_.Create_Success_(Companion_EsdkDecryptTestVector_.Create_PositiveDecryptTestVector_((((test).Dtor_vector()).Dtor_id()).Dtor_value().(_dafny.Sequence), _dafny.IntOfInt64(3), ((test).Dtor_vector()).Dtor_decryptManifestPath(), Companion_Default___.CiphertextPathPathRoot(), _dafny.Companion_Sequence_.Concatenate(Companion_Default___.PlaintextPathRoot(), ((test).Dtor_vector()).Dtor_plaintextPath()), ((test).Dtor_vector()).Dtor_reproducedEncryptionContext(), ((test).Dtor_vector()).Dtor_decryptDescriptions(), ((test).Dtor_vector()).Dtor_commitmentPolicy(), ((test).Dtor_vector()).Dtor_frameLength(), ((test).Dtor_vector()).Dtor_algorithmSuiteId(), ((test).Dtor_vector()).Dtor_description(), Companion_DecryptionMethod_.Create_OneShot_())) - goto Lmatch0 - } - } - { - output = m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Only postive tests supported")) - } - goto Lmatch0 - } -Lmatch0: - var _0_decryptManifestCiphertext _dafny.Sequence - _ = _0_decryptManifestCiphertext - _0_decryptManifestCiphertext = _dafny.Companion_Sequence_.Concatenate(_dafny.Companion_Sequence_.Concatenate(((test).Dtor_vector()).Dtor_decryptManifestPath(), Companion_Default___.CiphertextPathPathRoot()), (((test).Dtor_vector()).Dtor_id()).Dtor_value().(_dafny.Sequence)) - var _1_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) - _ = _1_valueOrError0 - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = Companion_Default___.WriteVectorsFile(_0_decryptManifestCiphertext, (result).Dtor_ciphertext()) - _1_valueOrError0 = _out0 - if !(!((_1_valueOrError0).IsFailure())) { - panic("dafny/TestVectors/src/EsdkTestVectors.dfy(439,13): " + (_1_valueOrError0).String()) - } - var _2___v52 _dafny.Tuple - _ = _2___v52 - _2___v52 = (_1_valueOrError0).Extract().(_dafny.Tuple) - return output -} -func (_static *CompanionStruct_Default___) MplPrintErr(e m_AwsCryptographyMaterialProvidersTypes.Error) _dafny.Tuple { - var _hresult _dafny.Tuple = _dafny.TupleOf() - _ = _hresult - _dafny.Print(e) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - _hresult = _dafny.TupleOf() - return _hresult - return _hresult -} -func (_static *CompanionStruct_Default___) MplVectorPrintErr(e m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) _dafny.Tuple { - var _hresult _dafny.Tuple = _dafny.TupleOf() - _ = _hresult - _dafny.Print(e) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - _hresult = _dafny.TupleOf() - return _hresult - return _hresult -} -func (_static *CompanionStruct_Default___) KeyDescriptionToCmm(keys *m_KeyVectors.KeyVectorsClient, keyDescriptions _dafny.Sequence) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Result{} - _ = output - var _0_keyringList _dafny.Sequence - _ = _0_keyringList - _0_keyringList = _dafny.SeqOf() - var _hi0 _dafny.Int = _dafny.IntOfUint32((keyDescriptions).Cardinality()) - _ = _hi0 - for _1_i := _dafny.Zero; _1_i.Cmp(_hi0) < 0; _1_i = _1_i.Plus(_dafny.One) { - var _2_keyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription - _ = _2_keyDescription - _2_keyDescription = (keyDescriptions).Select((_1_i).Uint32()).(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) - var _3_valueOrError0 m_Wrappers.Result = m_Wrappers.Result{} - _ = _3_valueOrError0 - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = (keys).CreateWrappedTestVectorKeyring(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_TestVectorKeyringInput_.Create_TestVectorKeyringInput_(_2_keyDescription)) - _3_valueOrError0 = _out0 - if (_3_valueOrError0).IsFailure() { - output = (_3_valueOrError0).PropagateFailure() - return output - } - var _4_keyring m_AwsCryptographyMaterialProvidersTypes.IKeyring - _ = _4_keyring - _4_keyring = m_AwsCryptographyMaterialProvidersTypes.Companion_IKeyring_.CastTo_((_3_valueOrError0).Extract()) - _0_keyringList = _dafny.Companion_Sequence_.Concatenate(_0_keyringList, _dafny.SeqOf(_4_keyring)) - } - var _5_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _5_valueOrError1 - _5_valueOrError1 = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((_0_keyringList).Cardinality())).Cmp(_dafny.One) == 0, m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_KeyVectorException_(_dafny.SeqOfString("Failed to create any keyrings"))) - if (_5_valueOrError1).IsFailure() { - output = (_5_valueOrError1).PropagateFailure() - return output - } - var _6_valueOrError2 m_Wrappers.Result = m_Wrappers.Result{} - _ = _6_valueOrError2 - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = m_WrappedMaterialProviders.Companion_Default___.WrappedMaterialProviders(m_WrappedMaterialProviders.Companion_Default___.WrappedDefaultMaterialProvidersConfig()) - _6_valueOrError2 = _out1 - if !(!((_6_valueOrError2).IsFailure())) { - panic("dafny/TestVectors/src/EsdkTestVectors.dfy(482,15): " + (_6_valueOrError2).String()) - } - var _7_mpl m_AwsCryptographyMaterialProvidersTypes.IAwsCryptographicMaterialProvidersClient - _ = _7_mpl - _7_mpl = m_AwsCryptographyMaterialProvidersTypes.Companion_IAwsCryptographicMaterialProvidersClient_.CastTo_((_6_valueOrError2).Extract()) - var _8_generatorKeyring m_AwsCryptographyMaterialProvidersTypes.IKeyring - _ = _8_generatorKeyring - _8_generatorKeyring = (_0_keyringList).Select(0).(m_AwsCryptographyMaterialProvidersTypes.IKeyring) - var _9_maybeMultiKeyring m_Wrappers.Result - _ = _9_maybeMultiKeyring - var _out2 m_Wrappers.Result - _ = _out2 - _out2 = (_7_mpl).CreateMultiKeyring(m_AwsCryptographyMaterialProvidersTypes.Companion_CreateMultiKeyringInput_.Create_CreateMultiKeyringInput_(m_Wrappers.Companion_Option_.Create_Some_(_8_generatorKeyring), (_0_keyringList).Drop(1))) - _9_maybeMultiKeyring = _out2 - var _10_valueOrError3 m_Wrappers.Result = m_Wrappers.Result{} - _ = _10_valueOrError3 - _10_valueOrError3 = (_9_maybeMultiKeyring).MapFailure(func(coer0 func(m_AwsCryptographyMaterialProvidersTypes.Error) m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) func(interface{}) interface{} { - return func(arg0 interface{}) interface{} { - return coer0(arg0.(m_AwsCryptographyMaterialProvidersTypes.Error)) - } - }(func(_11_e m_AwsCryptographyMaterialProvidersTypes.Error) m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error { - return m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_AwsCryptographyMaterialProviders_(_11_e) - })) - if (_10_valueOrError3).IsFailure() { - output = (_10_valueOrError3).PropagateFailure() - return output - } - var _12_keyring m_AwsCryptographyMaterialProvidersTypes.IKeyring - _ = _12_keyring - _12_keyring = m_AwsCryptographyMaterialProvidersTypes.Companion_IKeyring_.CastTo_((_10_valueOrError3).Extract()) - var _13_maybeCmm m_Wrappers.Result - _ = _13_maybeCmm - var _out3 m_Wrappers.Result - _ = _out3 - _out3 = (_7_mpl).CreateDefaultCryptographicMaterialsManager(m_AwsCryptographyMaterialProvidersTypes.Companion_CreateDefaultCryptographicMaterialsManagerInput_.Create_CreateDefaultCryptographicMaterialsManagerInput_(m_AwsCryptographyMaterialProvidersTypes.Companion_IKeyring_.CastTo_((_9_maybeMultiKeyring).Dtor_value()))) - _13_maybeCmm = _out3 - output = (_13_maybeCmm).MapFailure(func(coer1 func(m_AwsCryptographyMaterialProvidersTypes.Error) m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) func(interface{}) interface{} { - return func(arg1 interface{}) interface{} { - return coer1(arg1.(m_AwsCryptographyMaterialProvidersTypes.Error)) - } - }(func(_14_e m_AwsCryptographyMaterialProvidersTypes.Error) m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error { - return m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_Error_.Create_AwsCryptographyMaterialProviders_(_14_e) - })) - return output -} -func (_static *CompanionStruct_Default___) ReadVectorsFile(location _dafny.Sequence) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = output - var _0_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _0_valueOrError0 - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = m_FileIO.Companion_Default___.ReadBytesFromFile(location) - _0_valueOrError0 = _out0 - if (_0_valueOrError0).IsFailure() { - output = (_0_valueOrError0).PropagateFailure() - return output - } - var _1_fileBv _dafny.Sequence - _ = _1_fileBv - _1_fileBv = (_0_valueOrError0).Extract().(_dafny.Sequence) - output = m_Wrappers.Companion_Result_.Create_Success_(m_JSONHelpers.Companion_Default___.BvToBytes(_1_fileBv)) - return output -} -func (_static *CompanionStruct_Default___) WriteVectorsFile(location _dafny.Sequence, bytes _dafny.Sequence) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) - _ = output - var _0_bv _dafny.Sequence - _ = _0_bv - _0_bv = m_JSONHelpers.Companion_Default___.BytesBv(bytes) - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = m_FileIO.Companion_Default___.WriteBytesToFile(location, _0_bv) - output = _out0 - return output -} -func (_static *CompanionStruct_Default___) CiphertextPathPathRoot() _dafny.Sequence { - return _dafny.SeqOfString("ciphertexts/") -} -func (_static *CompanionStruct_Default___) PlaintextPathRoot() _dafny.Sequence { - return _dafny.SeqOfString("plaintexts/") -} - -// End of class Default__ - -// Definition of datatype EncryptTest -type EncryptTest struct { - Data_EncryptTest_ -} - -func (_this EncryptTest) Get_() Data_EncryptTest_ { - return _this.Data_EncryptTest_ -} - -type Data_EncryptTest_ interface { - isEncryptTest() -} - -type CompanionStruct_EncryptTest_ struct { -} - -var Companion_EncryptTest_ = CompanionStruct_EncryptTest_{} - -type EncryptTest_EncryptTest struct { - Cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager - Client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient - Vector EsdkEncryptTestVector -} - -func (EncryptTest_EncryptTest) isEncryptTest() {} - -func (CompanionStruct_EncryptTest_) Create_EncryptTest_(Cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager, Client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient, Vector EsdkEncryptTestVector) EncryptTest { - return EncryptTest{EncryptTest_EncryptTest{Cmm, Client, Vector}} -} - -func (_this EncryptTest) Is_EncryptTest() bool { - _, ok := _this.Get_().(EncryptTest_EncryptTest) - return ok -} - -func (CompanionStruct_EncryptTest_) Default() EncryptTest { - return Companion_EncryptTest_.Create_EncryptTest_((m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager)(nil), (m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient)(nil), Companion_EsdkEncryptTestVector_.Default()) -} - -func (_this EncryptTest) Dtor_cmm() m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager { - return _this.Get_().(EncryptTest_EncryptTest).Cmm -} - -func (_this EncryptTest) Dtor_client() m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient { - return _this.Get_().(EncryptTest_EncryptTest).Client -} - -func (_this EncryptTest) Dtor_vector() EsdkEncryptTestVector { - return _this.Get_().(EncryptTest_EncryptTest).Vector -} - -func (_this EncryptTest) String() string { - switch data := _this.Get_().(type) { - case nil: - return "null" - case EncryptTest_EncryptTest: - { - return "EsdkTestVectors.EncryptTest.EncryptTest" + "(" + _dafny.String(data.Cmm) + ", " + _dafny.String(data.Client) + ", " + _dafny.String(data.Vector) + ")" - } - default: - { - return "" - } - } -} - -func (_this EncryptTest) Equals(other EncryptTest) bool { - switch data1 := _this.Get_().(type) { - case EncryptTest_EncryptTest: - { - data2, ok := other.Get_().(EncryptTest_EncryptTest) - return ok && _dafny.AreEqual(data1.Cmm, data2.Cmm) && _dafny.AreEqual(data1.Client, data2.Client) && data1.Vector.Equals(data2.Vector) - } - default: - { - return false // unexpected - } - } -} - -func (_this EncryptTest) EqualsGeneric(other interface{}) bool { - typed, ok := other.(EncryptTest) - return ok && _this.Equals(typed) -} - -func Type_EncryptTest_() _dafny.TypeDescriptor { - return type_EncryptTest_{} -} - -type type_EncryptTest_ struct { -} - -func (_this type_EncryptTest_) Default() interface{} { - return Companion_EncryptTest_.Default() -} - -func (_this type_EncryptTest_) String() string { - return "EsdkTestVectors.EncryptTest" -} -func (_this EncryptTest) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = EncryptTest{} - -// End of datatype EncryptTest - -// Definition of datatype DecryptTest -type DecryptTest struct { - Data_DecryptTest_ -} - -func (_this DecryptTest) Get_() Data_DecryptTest_ { - return _this.Data_DecryptTest_ -} - -type Data_DecryptTest_ interface { - isDecryptTest() -} - -type CompanionStruct_DecryptTest_ struct { -} - -var Companion_DecryptTest_ = CompanionStruct_DecryptTest_{} - -type DecryptTest_DecryptTest struct { - Cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager - Client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient - Vector EsdkDecryptTestVector -} - -func (DecryptTest_DecryptTest) isDecryptTest() {} - -func (CompanionStruct_DecryptTest_) Create_DecryptTest_(Cmm m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager, Client m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient, Vector EsdkDecryptTestVector) DecryptTest { - return DecryptTest{DecryptTest_DecryptTest{Cmm, Client, Vector}} -} - -func (_this DecryptTest) Is_DecryptTest() bool { - _, ok := _this.Get_().(DecryptTest_DecryptTest) - return ok -} - -func (CompanionStruct_DecryptTest_) Default() DecryptTest { - return Companion_DecryptTest_.Create_DecryptTest_((m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager)(nil), (m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient)(nil), Companion_EsdkDecryptTestVector_.Default()) -} - -func (_this DecryptTest) Dtor_cmm() m_AwsCryptographyMaterialProvidersTypes.ICryptographicMaterialsManager { - return _this.Get_().(DecryptTest_DecryptTest).Cmm -} - -func (_this DecryptTest) Dtor_client() m_AwsCryptographyEncryptionSdkTypes.IAwsEncryptionSdkClient { - return _this.Get_().(DecryptTest_DecryptTest).Client -} - -func (_this DecryptTest) Dtor_vector() EsdkDecryptTestVector { - return _this.Get_().(DecryptTest_DecryptTest).Vector -} - -func (_this DecryptTest) String() string { - switch data := _this.Get_().(type) { - case nil: - return "null" - case DecryptTest_DecryptTest: - { - return "EsdkTestVectors.DecryptTest.DecryptTest" + "(" + _dafny.String(data.Cmm) + ", " + _dafny.String(data.Client) + ", " + _dafny.String(data.Vector) + ")" - } - default: - { - return "" - } - } -} - -func (_this DecryptTest) Equals(other DecryptTest) bool { - switch data1 := _this.Get_().(type) { - case DecryptTest_DecryptTest: - { - data2, ok := other.Get_().(DecryptTest_DecryptTest) - return ok && _dafny.AreEqual(data1.Cmm, data2.Cmm) && _dafny.AreEqual(data1.Client, data2.Client) && data1.Vector.Equals(data2.Vector) - } - default: - { - return false // unexpected - } - } -} - -func (_this DecryptTest) EqualsGeneric(other interface{}) bool { - typed, ok := other.(DecryptTest) - return ok && _this.Equals(typed) -} - -func Type_DecryptTest_() _dafny.TypeDescriptor { - return type_DecryptTest_{} -} - -type type_DecryptTest_ struct { -} - -func (_this type_DecryptTest_) Default() interface{} { - return Companion_DecryptTest_.Default() -} - -func (_this type_DecryptTest_) String() string { - return "EsdkTestVectors.DecryptTest" -} -func (_this DecryptTest) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = DecryptTest{} - -// End of datatype DecryptTest - -// Definition of class SupportedGenerateManifestVersion -type SupportedGenerateManifestVersion struct { -} - -func New_SupportedGenerateManifestVersion_() *SupportedGenerateManifestVersion { - _this := SupportedGenerateManifestVersion{} - - return &_this -} - -type CompanionStruct_SupportedGenerateManifestVersion_ struct { -} - -var Companion_SupportedGenerateManifestVersion_ = CompanionStruct_SupportedGenerateManifestVersion_{} - -func (*SupportedGenerateManifestVersion) String() string { - return "EsdkTestVectors.SupportedGenerateManifestVersion" -} -func (_this *CompanionStruct_SupportedGenerateManifestVersion_) Witness() _dafny.Int { - return _dafny.IntOfInt64(4) -} - -// End of class SupportedGenerateManifestVersion - -func Type_SupportedGenerateManifestVersion_() _dafny.TypeDescriptor { - return type_SupportedGenerateManifestVersion_{} -} - -type type_SupportedGenerateManifestVersion_ struct { -} - -func (_this type_SupportedGenerateManifestVersion_) Default() interface{} { - return Companion_SupportedGenerateManifestVersion_.Witness() -} - -func (_this type_SupportedGenerateManifestVersion_) String() string { - return "EsdkTestVectors.SupportedGenerateManifestVersion" -} - -// Definition of class SupportedEncryptVersion -type SupportedEncryptVersion struct { -} - -func New_SupportedEncryptVersion_() *SupportedEncryptVersion { - _this := SupportedEncryptVersion{} - - return &_this -} - -type CompanionStruct_SupportedEncryptVersion_ struct { -} - -var Companion_SupportedEncryptVersion_ = CompanionStruct_SupportedEncryptVersion_{} - -func (*SupportedEncryptVersion) String() string { - return "EsdkTestVectors.SupportedEncryptVersion" -} -func (_this *CompanionStruct_SupportedEncryptVersion_) Witness() _dafny.Int { - return _dafny.One -} - -// End of class SupportedEncryptVersion - -func Type_SupportedEncryptVersion_() _dafny.TypeDescriptor { - return type_SupportedEncryptVersion_{} -} - -type type_SupportedEncryptVersion_ struct { -} - -func (_this type_SupportedEncryptVersion_) Default() interface{} { - return Companion_SupportedEncryptVersion_.Witness() -} - -func (_this type_SupportedEncryptVersion_) String() string { - return "EsdkTestVectors.SupportedEncryptVersion" -} - -// Definition of datatype EsdkEncryptTestVector -type EsdkEncryptTestVector struct { - Data_EsdkEncryptTestVector_ -} - -func (_this EsdkEncryptTestVector) Get_() Data_EsdkEncryptTestVector_ { - return _this.Data_EsdkEncryptTestVector_ -} - -type Data_EsdkEncryptTestVector_ interface { - isEsdkEncryptTestVector() -} - -type CompanionStruct_EsdkEncryptTestVector_ struct { -} - -var Companion_EsdkEncryptTestVector_ = CompanionStruct_EsdkEncryptTestVector_{} - -type EsdkEncryptTestVector_PositiveEncryptTestVector struct { - Id m_Wrappers.Option - Version _dafny.Int - ManifestPath _dafny.Sequence - DecryptManifestPath _dafny.Sequence - PlaintextPath _dafny.Sequence - EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription - DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription - EncryptionContext m_Wrappers.Option - ReproducedEncryptionContext m_Wrappers.Option - CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy - FrameLength m_Wrappers.Option - AlgorithmSuiteId m_Wrappers.Option - Description _dafny.Sequence - MaxEncryptedDataKeys m_Wrappers.Option -} - -func (EsdkEncryptTestVector_PositiveEncryptTestVector) isEsdkEncryptTestVector() {} - -func (CompanionStruct_EsdkEncryptTestVector_) Create_PositiveEncryptTestVector_(Id m_Wrappers.Option, Version _dafny.Int, ManifestPath _dafny.Sequence, DecryptManifestPath _dafny.Sequence, PlaintextPath _dafny.Sequence, EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, EncryptionContext m_Wrappers.Option, ReproducedEncryptionContext m_Wrappers.Option, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, Description _dafny.Sequence, MaxEncryptedDataKeys m_Wrappers.Option) EsdkEncryptTestVector { - return EsdkEncryptTestVector{EsdkEncryptTestVector_PositiveEncryptTestVector{Id, Version, ManifestPath, DecryptManifestPath, PlaintextPath, EncryptDescriptions, DecryptDescriptions, EncryptionContext, ReproducedEncryptionContext, CommitmentPolicy, FrameLength, AlgorithmSuiteId, Description, MaxEncryptedDataKeys}} -} - -func (_this EsdkEncryptTestVector) Is_PositiveEncryptTestVector() bool { - _, ok := _this.Get_().(EsdkEncryptTestVector_PositiveEncryptTestVector) - return ok -} - -type EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector struct { - Id m_Wrappers.Option - Version _dafny.Int - ManifestPath _dafny.Sequence - DecryptManifestPath _dafny.Sequence - PlaintextPath _dafny.Sequence - EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription - DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription - EncryptionContext m_Wrappers.Option - ReproducedEncryptionContext m_Wrappers.Option - CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy - FrameLength m_Wrappers.Option - AlgorithmSuiteId m_Wrappers.Option - DecryptErrorDescription _dafny.Sequence - Description _dafny.Sequence - MaxEncryptedDataKeys m_Wrappers.Option -} - -func (EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector) isEsdkEncryptTestVector() {} - -func (CompanionStruct_EsdkEncryptTestVector_) Create_PositiveEncryptNegativeDecryptTestVector_(Id m_Wrappers.Option, Version _dafny.Int, ManifestPath _dafny.Sequence, DecryptManifestPath _dafny.Sequence, PlaintextPath _dafny.Sequence, EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, EncryptionContext m_Wrappers.Option, ReproducedEncryptionContext m_Wrappers.Option, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, DecryptErrorDescription _dafny.Sequence, Description _dafny.Sequence, MaxEncryptedDataKeys m_Wrappers.Option) EsdkEncryptTestVector { - return EsdkEncryptTestVector{EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector{Id, Version, ManifestPath, DecryptManifestPath, PlaintextPath, EncryptDescriptions, DecryptDescriptions, EncryptionContext, ReproducedEncryptionContext, CommitmentPolicy, FrameLength, AlgorithmSuiteId, DecryptErrorDescription, Description, MaxEncryptedDataKeys}} -} - -func (_this EsdkEncryptTestVector) Is_PositiveEncryptNegativeDecryptTestVector() bool { - _, ok := _this.Get_().(EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector) - return ok -} - -type EsdkEncryptTestVector_NegativeEncryptTestVector struct { - Id m_Wrappers.Option - Version _dafny.Int - ManifestPath _dafny.Sequence - PlaintextPath _dafny.Sequence - EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription - EncryptionContext m_Wrappers.Option - ReproducedEncryptionContext m_Wrappers.Option - CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy - FrameLength m_Wrappers.Option - AlgorithmSuiteId m_Wrappers.Option - ErrorDescription _dafny.Sequence - Description _dafny.Sequence - MaxEncryptedDataKeys m_Wrappers.Option -} - -func (EsdkEncryptTestVector_NegativeEncryptTestVector) isEsdkEncryptTestVector() {} - -func (CompanionStruct_EsdkEncryptTestVector_) Create_NegativeEncryptTestVector_(Id m_Wrappers.Option, Version _dafny.Int, ManifestPath _dafny.Sequence, PlaintextPath _dafny.Sequence, EncryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, EncryptionContext m_Wrappers.Option, ReproducedEncryptionContext m_Wrappers.Option, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, ErrorDescription _dafny.Sequence, Description _dafny.Sequence, MaxEncryptedDataKeys m_Wrappers.Option) EsdkEncryptTestVector { - return EsdkEncryptTestVector{EsdkEncryptTestVector_NegativeEncryptTestVector{Id, Version, ManifestPath, PlaintextPath, EncryptDescriptions, EncryptionContext, ReproducedEncryptionContext, CommitmentPolicy, FrameLength, AlgorithmSuiteId, ErrorDescription, Description, MaxEncryptedDataKeys}} -} - -func (_this EsdkEncryptTestVector) Is_NegativeEncryptTestVector() bool { - _, ok := _this.Get_().(EsdkEncryptTestVector_NegativeEncryptTestVector) - return ok -} - -func (CompanionStruct_EsdkEncryptTestVector_) Default() EsdkEncryptTestVector { - return Companion_EsdkEncryptTestVector_.Create_PositiveEncryptTestVector_(m_Wrappers.Companion_Option_.Default(), Companion_SupportedEncryptVersion_.Witness(), _dafny.EmptySeq.SetString(), _dafny.EmptySeq.SetString(), _dafny.EmptySeq.SetString(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_KeyDescription_.Default(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_KeyDescription_.Default(), m_Wrappers.Companion_Option_.Default(), m_Wrappers.Companion_Option_.Default(), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Default(), m_Wrappers.Companion_Option_.Default(), m_Wrappers.Companion_Option_.Default(), _dafny.EmptySeq.SetString(), m_Wrappers.Companion_Option_.Default()) -} - -func (_this EsdkEncryptTestVector) Dtor_id() m_Wrappers.Option { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.Id - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.Id - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).Id - } -} - -func (_this EsdkEncryptTestVector) Dtor_version() _dafny.Int { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.Version - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.Version - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).Version - } -} - -func (_this EsdkEncryptTestVector) Dtor_manifestPath() _dafny.Sequence { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.ManifestPath - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.ManifestPath - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).ManifestPath - } -} - -func (_this EsdkEncryptTestVector) Dtor_decryptManifestPath() _dafny.Sequence { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.DecryptManifestPath - default: - return data.(EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector).DecryptManifestPath - } -} - -func (_this EsdkEncryptTestVector) Dtor_plaintextPath() _dafny.Sequence { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.PlaintextPath - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.PlaintextPath - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).PlaintextPath - } -} - -func (_this EsdkEncryptTestVector) Dtor_encryptDescriptions() m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.EncryptDescriptions - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.EncryptDescriptions - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).EncryptDescriptions - } -} - -func (_this EsdkEncryptTestVector) Dtor_decryptDescriptions() m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.DecryptDescriptions - default: - return data.(EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector).DecryptDescriptions - } -} - -func (_this EsdkEncryptTestVector) Dtor_encryptionContext() m_Wrappers.Option { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.EncryptionContext - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.EncryptionContext - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).EncryptionContext - } -} - -func (_this EsdkEncryptTestVector) Dtor_reproducedEncryptionContext() m_Wrappers.Option { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.ReproducedEncryptionContext - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.ReproducedEncryptionContext - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).ReproducedEncryptionContext - } -} - -func (_this EsdkEncryptTestVector) Dtor_commitmentPolicy() m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.CommitmentPolicy - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.CommitmentPolicy - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).CommitmentPolicy - } -} - -func (_this EsdkEncryptTestVector) Dtor_frameLength() m_Wrappers.Option { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.FrameLength - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.FrameLength - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).FrameLength - } -} - -func (_this EsdkEncryptTestVector) Dtor_algorithmSuiteId() m_Wrappers.Option { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.AlgorithmSuiteId - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.AlgorithmSuiteId - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).AlgorithmSuiteId - } -} - -func (_this EsdkEncryptTestVector) Dtor_description() _dafny.Sequence { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.Description - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.Description - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).Description - } -} - -func (_this EsdkEncryptTestVector) Dtor_maxEncryptedDataKeys() m_Wrappers.Option { - switch data := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - return data.MaxEncryptedDataKeys - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - return data.MaxEncryptedDataKeys - default: - return data.(EsdkEncryptTestVector_NegativeEncryptTestVector).MaxEncryptedDataKeys - } -} - -func (_this EsdkEncryptTestVector) Dtor_decryptErrorDescription() _dafny.Sequence { - return _this.Get_().(EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector).DecryptErrorDescription -} - -func (_this EsdkEncryptTestVector) Dtor_errorDescription() _dafny.Sequence { - return _this.Get_().(EsdkEncryptTestVector_NegativeEncryptTestVector).ErrorDescription -} - -func (_this EsdkEncryptTestVector) String() string { - switch data := _this.Get_().(type) { - case nil: - return "null" - case EsdkEncryptTestVector_PositiveEncryptTestVector: - { - return "EsdkTestVectors.EsdkEncryptTestVector.PositiveEncryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.DecryptManifestPath) + ", " + _dafny.String(data.PlaintextPath) + ", " + _dafny.String(data.EncryptDescriptions) + ", " + _dafny.String(data.DecryptDescriptions) + ", " + _dafny.String(data.EncryptionContext) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.MaxEncryptedDataKeys) + ")" - } - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - { - return "EsdkTestVectors.EsdkEncryptTestVector.PositiveEncryptNegativeDecryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.DecryptManifestPath) + ", " + _dafny.String(data.PlaintextPath) + ", " + _dafny.String(data.EncryptDescriptions) + ", " + _dafny.String(data.DecryptDescriptions) + ", " + _dafny.String(data.EncryptionContext) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.DecryptErrorDescription) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.MaxEncryptedDataKeys) + ")" - } - case EsdkEncryptTestVector_NegativeEncryptTestVector: - { - return "EsdkTestVectors.EsdkEncryptTestVector.NegativeEncryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.PlaintextPath) + ", " + _dafny.String(data.EncryptDescriptions) + ", " + _dafny.String(data.EncryptionContext) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.ErrorDescription) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.MaxEncryptedDataKeys) + ")" - } - default: - { - return "" - } - } -} - -func (_this EsdkEncryptTestVector) Equals(other EsdkEncryptTestVector) bool { - switch data1 := _this.Get_().(type) { - case EsdkEncryptTestVector_PositiveEncryptTestVector: - { - data2, ok := other.Get_().(EsdkEncryptTestVector_PositiveEncryptTestVector) - return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.DecryptManifestPath.Equals(data2.DecryptManifestPath) && data1.PlaintextPath.Equals(data2.PlaintextPath) && data1.EncryptDescriptions.Equals(data2.EncryptDescriptions) && data1.DecryptDescriptions.Equals(data2.DecryptDescriptions) && data1.EncryptionContext.Equals(data2.EncryptionContext) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.Description.Equals(data2.Description) && data1.MaxEncryptedDataKeys.Equals(data2.MaxEncryptedDataKeys) - } - case EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector: - { - data2, ok := other.Get_().(EsdkEncryptTestVector_PositiveEncryptNegativeDecryptTestVector) - return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.DecryptManifestPath.Equals(data2.DecryptManifestPath) && data1.PlaintextPath.Equals(data2.PlaintextPath) && data1.EncryptDescriptions.Equals(data2.EncryptDescriptions) && data1.DecryptDescriptions.Equals(data2.DecryptDescriptions) && data1.EncryptionContext.Equals(data2.EncryptionContext) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.DecryptErrorDescription.Equals(data2.DecryptErrorDescription) && data1.Description.Equals(data2.Description) && data1.MaxEncryptedDataKeys.Equals(data2.MaxEncryptedDataKeys) - } - case EsdkEncryptTestVector_NegativeEncryptTestVector: - { - data2, ok := other.Get_().(EsdkEncryptTestVector_NegativeEncryptTestVector) - return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.PlaintextPath.Equals(data2.PlaintextPath) && data1.EncryptDescriptions.Equals(data2.EncryptDescriptions) && data1.EncryptionContext.Equals(data2.EncryptionContext) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.ErrorDescription.Equals(data2.ErrorDescription) && data1.Description.Equals(data2.Description) && data1.MaxEncryptedDataKeys.Equals(data2.MaxEncryptedDataKeys) - } - default: - { - return false // unexpected - } - } -} - -func (_this EsdkEncryptTestVector) EqualsGeneric(other interface{}) bool { - typed, ok := other.(EsdkEncryptTestVector) - return ok && _this.Equals(typed) -} - -func Type_EsdkEncryptTestVector_() _dafny.TypeDescriptor { - return type_EsdkEncryptTestVector_{} -} - -type type_EsdkEncryptTestVector_ struct { -} - -func (_this type_EsdkEncryptTestVector_) Default() interface{} { - return Companion_EsdkEncryptTestVector_.Default() -} - -func (_this type_EsdkEncryptTestVector_) String() string { - return "EsdkTestVectors.EsdkEncryptTestVector" -} -func (_this EsdkEncryptTestVector) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = EsdkEncryptTestVector{} - -// End of datatype EsdkEncryptTestVector - -// Definition of class SupportedDecryptVersion -type SupportedDecryptVersion struct { -} - -func New_SupportedDecryptVersion_() *SupportedDecryptVersion { - _this := SupportedDecryptVersion{} - - return &_this -} - -type CompanionStruct_SupportedDecryptVersion_ struct { -} - -var Companion_SupportedDecryptVersion_ = CompanionStruct_SupportedDecryptVersion_{} - -func (*SupportedDecryptVersion) String() string { - return "EsdkTestVectors.SupportedDecryptVersion" -} -func (_this *CompanionStruct_SupportedDecryptVersion_) Witness() _dafny.Int { - return _dafny.One -} - -// End of class SupportedDecryptVersion - -func Type_SupportedDecryptVersion_() _dafny.TypeDescriptor { - return type_SupportedDecryptVersion_{} -} - -type type_SupportedDecryptVersion_ struct { -} - -func (_this type_SupportedDecryptVersion_) Default() interface{} { - return Companion_SupportedDecryptVersion_.Witness() -} - -func (_this type_SupportedDecryptVersion_) String() string { - return "EsdkTestVectors.SupportedDecryptVersion" -} - -// Definition of datatype EsdkDecryptTestVector -type EsdkDecryptTestVector struct { - Data_EsdkDecryptTestVector_ -} - -func (_this EsdkDecryptTestVector) Get_() Data_EsdkDecryptTestVector_ { - return _this.Data_EsdkDecryptTestVector_ -} - -type Data_EsdkDecryptTestVector_ interface { - isEsdkDecryptTestVector() -} - -type CompanionStruct_EsdkDecryptTestVector_ struct { -} - -var Companion_EsdkDecryptTestVector_ = CompanionStruct_EsdkDecryptTestVector_{} - -type EsdkDecryptTestVector_PositiveDecryptTestVector struct { - Id _dafny.Sequence - Version _dafny.Int - ManifestPath _dafny.Sequence - CiphertextPath _dafny.Sequence - PlaintextPath _dafny.Sequence - ReproducedEncryptionContext m_Wrappers.Option - DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription - CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy - FrameLength m_Wrappers.Option - AlgorithmSuiteId m_Wrappers.Option - Description _dafny.Sequence - DecryptionMethod DecryptionMethod -} - -func (EsdkDecryptTestVector_PositiveDecryptTestVector) isEsdkDecryptTestVector() {} - -func (CompanionStruct_EsdkDecryptTestVector_) Create_PositiveDecryptTestVector_(Id _dafny.Sequence, Version _dafny.Int, ManifestPath _dafny.Sequence, CiphertextPath _dafny.Sequence, PlaintextPath _dafny.Sequence, ReproducedEncryptionContext m_Wrappers.Option, DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, Description _dafny.Sequence, DecryptionMethod DecryptionMethod) EsdkDecryptTestVector { - return EsdkDecryptTestVector{EsdkDecryptTestVector_PositiveDecryptTestVector{Id, Version, ManifestPath, CiphertextPath, PlaintextPath, ReproducedEncryptionContext, DecryptDescriptions, CommitmentPolicy, FrameLength, AlgorithmSuiteId, Description, DecryptionMethod}} -} - -func (_this EsdkDecryptTestVector) Is_PositiveDecryptTestVector() bool { - _, ok := _this.Get_().(EsdkDecryptTestVector_PositiveDecryptTestVector) - return ok -} - -type EsdkDecryptTestVector_NegativeDecryptTestVector struct { - Id _dafny.Sequence - Version _dafny.Int - ManifestPath _dafny.Sequence - CiphertextPath _dafny.Sequence - ErrorDescription _dafny.Sequence - ReproducedEncryptionContext m_Wrappers.Option - DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription - CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy - FrameLength m_Wrappers.Option - AlgorithmSuiteId m_Wrappers.Option - Description _dafny.Sequence - DecryptionMethod DecryptionMethod -} - -func (EsdkDecryptTestVector_NegativeDecryptTestVector) isEsdkDecryptTestVector() {} - -func (CompanionStruct_EsdkDecryptTestVector_) Create_NegativeDecryptTestVector_(Id _dafny.Sequence, Version _dafny.Int, ManifestPath _dafny.Sequence, CiphertextPath _dafny.Sequence, ErrorDescription _dafny.Sequence, ReproducedEncryptionContext m_Wrappers.Option, DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, Description _dafny.Sequence, DecryptionMethod DecryptionMethod) EsdkDecryptTestVector { - return EsdkDecryptTestVector{EsdkDecryptTestVector_NegativeDecryptTestVector{Id, Version, ManifestPath, CiphertextPath, ErrorDescription, ReproducedEncryptionContext, DecryptDescriptions, CommitmentPolicy, FrameLength, AlgorithmSuiteId, Description, DecryptionMethod}} -} - -func (_this EsdkDecryptTestVector) Is_NegativeDecryptTestVector() bool { - _, ok := _this.Get_().(EsdkDecryptTestVector_NegativeDecryptTestVector) - return ok -} - -type EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector struct { - Id _dafny.Sequence - Version _dafny.Int - ManifestPath _dafny.Sequence - CiphertextPath _dafny.Sequence - PlaintextPath _dafny.Sequence - ReproducedEncryptionContext m_Wrappers.Option - RequiredEncryptionContextKeys m_Wrappers.Option - DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription - CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy - FrameLength m_Wrappers.Option - AlgorithmSuiteId m_Wrappers.Option - Description _dafny.Sequence - DecryptionMethod DecryptionMethod -} - -func (EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector) isEsdkDecryptTestVector() {} - -func (CompanionStruct_EsdkDecryptTestVector_) Create_PositiveV1OrV2DecryptTestVector_(Id _dafny.Sequence, Version _dafny.Int, ManifestPath _dafny.Sequence, CiphertextPath _dafny.Sequence, PlaintextPath _dafny.Sequence, ReproducedEncryptionContext m_Wrappers.Option, RequiredEncryptionContextKeys m_Wrappers.Option, DecryptDescriptions m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription, CommitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, FrameLength m_Wrappers.Option, AlgorithmSuiteId m_Wrappers.Option, Description _dafny.Sequence, DecryptionMethod DecryptionMethod) EsdkDecryptTestVector { - return EsdkDecryptTestVector{EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector{Id, Version, ManifestPath, CiphertextPath, PlaintextPath, ReproducedEncryptionContext, RequiredEncryptionContextKeys, DecryptDescriptions, CommitmentPolicy, FrameLength, AlgorithmSuiteId, Description, DecryptionMethod}} -} - -func (_this EsdkDecryptTestVector) Is_PositiveV1OrV2DecryptTestVector() bool { - _, ok := _this.Get_().(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector) - return ok -} - -func (CompanionStruct_EsdkDecryptTestVector_) Default() EsdkDecryptTestVector { - return Companion_EsdkDecryptTestVector_.Create_PositiveDecryptTestVector_(_dafny.EmptySeq.SetString(), Companion_SupportedDecryptVersion_.Witness(), _dafny.EmptySeq.SetString(), _dafny.EmptySeq.SetString(), _dafny.EmptySeq.SetString(), m_Wrappers.Companion_Option_.Default(), m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_KeyDescription_.Default(), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Default(), m_Wrappers.Companion_Option_.Default(), m_Wrappers.Companion_Option_.Default(), _dafny.EmptySeq.SetString(), Companion_DecryptionMethod_.Default()) -} - -func (_this EsdkDecryptTestVector) Dtor_id() _dafny.Sequence { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.Id - case EsdkDecryptTestVector_NegativeDecryptTestVector: - return data.Id - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).Id - } -} - -func (_this EsdkDecryptTestVector) Dtor_version() _dafny.Int { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.Version - case EsdkDecryptTestVector_NegativeDecryptTestVector: - return data.Version - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).Version - } -} - -func (_this EsdkDecryptTestVector) Dtor_manifestPath() _dafny.Sequence { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.ManifestPath - case EsdkDecryptTestVector_NegativeDecryptTestVector: - return data.ManifestPath - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).ManifestPath - } -} - -func (_this EsdkDecryptTestVector) Dtor_ciphertextPath() _dafny.Sequence { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.CiphertextPath - case EsdkDecryptTestVector_NegativeDecryptTestVector: - return data.CiphertextPath - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).CiphertextPath - } -} - -func (_this EsdkDecryptTestVector) Dtor_plaintextPath() _dafny.Sequence { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.PlaintextPath - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).PlaintextPath - } -} - -func (_this EsdkDecryptTestVector) Dtor_reproducedEncryptionContext() m_Wrappers.Option { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.ReproducedEncryptionContext - case EsdkDecryptTestVector_NegativeDecryptTestVector: - return data.ReproducedEncryptionContext - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).ReproducedEncryptionContext - } -} - -func (_this EsdkDecryptTestVector) Dtor_decryptDescriptions() m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.DecryptDescriptions - case EsdkDecryptTestVector_NegativeDecryptTestVector: - return data.DecryptDescriptions - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).DecryptDescriptions - } -} - -func (_this EsdkDecryptTestVector) Dtor_commitmentPolicy() m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.CommitmentPolicy - case EsdkDecryptTestVector_NegativeDecryptTestVector: - return data.CommitmentPolicy - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).CommitmentPolicy - } -} - -func (_this EsdkDecryptTestVector) Dtor_frameLength() m_Wrappers.Option { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.FrameLength - case EsdkDecryptTestVector_NegativeDecryptTestVector: - return data.FrameLength - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).FrameLength - } -} - -func (_this EsdkDecryptTestVector) Dtor_algorithmSuiteId() m_Wrappers.Option { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.AlgorithmSuiteId - case EsdkDecryptTestVector_NegativeDecryptTestVector: - return data.AlgorithmSuiteId - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).AlgorithmSuiteId - } -} - -func (_this EsdkDecryptTestVector) Dtor_description() _dafny.Sequence { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.Description - case EsdkDecryptTestVector_NegativeDecryptTestVector: - return data.Description - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).Description - } -} - -func (_this EsdkDecryptTestVector) Dtor_decryptionMethod() DecryptionMethod { - switch data := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - return data.DecryptionMethod - case EsdkDecryptTestVector_NegativeDecryptTestVector: - return data.DecryptionMethod - default: - return data.(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).DecryptionMethod - } -} - -func (_this EsdkDecryptTestVector) Dtor_errorDescription() _dafny.Sequence { - return _this.Get_().(EsdkDecryptTestVector_NegativeDecryptTestVector).ErrorDescription -} - -func (_this EsdkDecryptTestVector) Dtor_requiredEncryptionContextKeys() m_Wrappers.Option { - return _this.Get_().(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector).RequiredEncryptionContextKeys -} - -func (_this EsdkDecryptTestVector) String() string { - switch data := _this.Get_().(type) { - case nil: - return "null" - case EsdkDecryptTestVector_PositiveDecryptTestVector: - { - return "EsdkTestVectors.EsdkDecryptTestVector.PositiveDecryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.CiphertextPath) + ", " + _dafny.String(data.PlaintextPath) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.DecryptDescriptions) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.DecryptionMethod) + ")" - } - case EsdkDecryptTestVector_NegativeDecryptTestVector: - { - return "EsdkTestVectors.EsdkDecryptTestVector.NegativeDecryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.CiphertextPath) + ", " + _dafny.String(data.ErrorDescription) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.DecryptDescriptions) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.DecryptionMethod) + ")" - } - case EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector: - { - return "EsdkTestVectors.EsdkDecryptTestVector.PositiveV1OrV2DecryptTestVector" + "(" + _dafny.String(data.Id) + ", " + _dafny.String(data.Version) + ", " + _dafny.String(data.ManifestPath) + ", " + _dafny.String(data.CiphertextPath) + ", " + _dafny.String(data.PlaintextPath) + ", " + _dafny.String(data.ReproducedEncryptionContext) + ", " + _dafny.String(data.RequiredEncryptionContextKeys) + ", " + _dafny.String(data.DecryptDescriptions) + ", " + _dafny.String(data.CommitmentPolicy) + ", " + _dafny.String(data.FrameLength) + ", " + _dafny.String(data.AlgorithmSuiteId) + ", " + _dafny.String(data.Description) + ", " + _dafny.String(data.DecryptionMethod) + ")" - } - default: - { - return "" - } - } -} - -func (_this EsdkDecryptTestVector) Equals(other EsdkDecryptTestVector) bool { - switch data1 := _this.Get_().(type) { - case EsdkDecryptTestVector_PositiveDecryptTestVector: - { - data2, ok := other.Get_().(EsdkDecryptTestVector_PositiveDecryptTestVector) - return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.CiphertextPath.Equals(data2.CiphertextPath) && data1.PlaintextPath.Equals(data2.PlaintextPath) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.DecryptDescriptions.Equals(data2.DecryptDescriptions) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.Description.Equals(data2.Description) && data1.DecryptionMethod.Equals(data2.DecryptionMethod) - } - case EsdkDecryptTestVector_NegativeDecryptTestVector: - { - data2, ok := other.Get_().(EsdkDecryptTestVector_NegativeDecryptTestVector) - return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.CiphertextPath.Equals(data2.CiphertextPath) && data1.ErrorDescription.Equals(data2.ErrorDescription) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.DecryptDescriptions.Equals(data2.DecryptDescriptions) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.Description.Equals(data2.Description) && data1.DecryptionMethod.Equals(data2.DecryptionMethod) - } - case EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector: - { - data2, ok := other.Get_().(EsdkDecryptTestVector_PositiveV1OrV2DecryptTestVector) - return ok && data1.Id.Equals(data2.Id) && data1.Version.Cmp(data2.Version) == 0 && data1.ManifestPath.Equals(data2.ManifestPath) && data1.CiphertextPath.Equals(data2.CiphertextPath) && data1.PlaintextPath.Equals(data2.PlaintextPath) && data1.ReproducedEncryptionContext.Equals(data2.ReproducedEncryptionContext) && data1.RequiredEncryptionContextKeys.Equals(data2.RequiredEncryptionContextKeys) && data1.DecryptDescriptions.Equals(data2.DecryptDescriptions) && data1.CommitmentPolicy.Equals(data2.CommitmentPolicy) && data1.FrameLength.Equals(data2.FrameLength) && data1.AlgorithmSuiteId.Equals(data2.AlgorithmSuiteId) && data1.Description.Equals(data2.Description) && data1.DecryptionMethod.Equals(data2.DecryptionMethod) - } - default: - { - return false // unexpected - } - } -} - -func (_this EsdkDecryptTestVector) EqualsGeneric(other interface{}) bool { - typed, ok := other.(EsdkDecryptTestVector) - return ok && _this.Equals(typed) -} - -func Type_EsdkDecryptTestVector_() _dafny.TypeDescriptor { - return type_EsdkDecryptTestVector_{} -} - -type type_EsdkDecryptTestVector_ struct { -} - -func (_this type_EsdkDecryptTestVector_) Default() interface{} { - return Companion_EsdkDecryptTestVector_.Default() -} - -func (_this type_EsdkDecryptTestVector_) String() string { - return "EsdkTestVectors.EsdkDecryptTestVector" -} -func (_this EsdkDecryptTestVector) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = EsdkDecryptTestVector{} - -// End of datatype EsdkDecryptTestVector - -// Definition of datatype DecryptionMethod -type DecryptionMethod struct { - Data_DecryptionMethod_ -} - -func (_this DecryptionMethod) Get_() Data_DecryptionMethod_ { - return _this.Data_DecryptionMethod_ -} - -type Data_DecryptionMethod_ interface { - isDecryptionMethod() -} - -type CompanionStruct_DecryptionMethod_ struct { -} - -var Companion_DecryptionMethod_ = CompanionStruct_DecryptionMethod_{} - -type DecryptionMethod_StreamingUnsignedOnly struct { -} - -func (DecryptionMethod_StreamingUnsignedOnly) isDecryptionMethod() {} - -func (CompanionStruct_DecryptionMethod_) Create_StreamingUnsignedOnly_() DecryptionMethod { - return DecryptionMethod{DecryptionMethod_StreamingUnsignedOnly{}} -} - -func (_this DecryptionMethod) Is_StreamingUnsignedOnly() bool { - _, ok := _this.Get_().(DecryptionMethod_StreamingUnsignedOnly) - return ok -} - -type DecryptionMethod_OneShot struct { -} - -func (DecryptionMethod_OneShot) isDecryptionMethod() {} - -func (CompanionStruct_DecryptionMethod_) Create_OneShot_() DecryptionMethod { - return DecryptionMethod{DecryptionMethod_OneShot{}} -} - -func (_this DecryptionMethod) Is_OneShot() bool { - _, ok := _this.Get_().(DecryptionMethod_OneShot) - return ok -} - -func (CompanionStruct_DecryptionMethod_) Default() DecryptionMethod { - return Companion_DecryptionMethod_.Create_StreamingUnsignedOnly_() -} - -func (_ CompanionStruct_DecryptionMethod_) AllSingletonConstructors() _dafny.Iterator { - i := -1 - return func() (interface{}, bool) { - i++ - switch i { - case 0: - return Companion_DecryptionMethod_.Create_StreamingUnsignedOnly_(), true - case 1: - return Companion_DecryptionMethod_.Create_OneShot_(), true - default: - return DecryptionMethod{}, false - } - } -} - -func (_this DecryptionMethod) String() string { - switch _this.Get_().(type) { - case nil: - return "null" - case DecryptionMethod_StreamingUnsignedOnly: - { - return "EsdkTestVectors.DecryptionMethod.StreamingUnsignedOnly" - } - case DecryptionMethod_OneShot: - { - return "EsdkTestVectors.DecryptionMethod.OneShot" - } - default: - { - return "" - } - } -} - -func (_this DecryptionMethod) Equals(other DecryptionMethod) bool { - switch _this.Get_().(type) { - case DecryptionMethod_StreamingUnsignedOnly: - { - _, ok := other.Get_().(DecryptionMethod_StreamingUnsignedOnly) - return ok - } - case DecryptionMethod_OneShot: - { - _, ok := other.Get_().(DecryptionMethod_OneShot) - return ok - } - default: - { - return false // unexpected - } - } -} - -func (_this DecryptionMethod) EqualsGeneric(other interface{}) bool { - typed, ok := other.(DecryptionMethod) - return ok && _this.Equals(typed) -} - -func Type_DecryptionMethod_() _dafny.TypeDescriptor { - return type_DecryptionMethod_{} -} - -type type_DecryptionMethod_ struct { -} - -func (_this type_DecryptionMethod_) Default() interface{} { - return Companion_DecryptionMethod_.Default() -} - -func (_this type_DecryptionMethod_) String() string { - return "EsdkTestVectors.DecryptionMethod" -} -func (_this DecryptionMethod) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = DecryptionMethod{} - -// End of datatype DecryptionMethod - -// Definition of datatype EncryptTestOutput -type EncryptTestOutput struct { - Data_EncryptTestOutput_ -} - -func (_this EncryptTestOutput) Get_() Data_EncryptTestOutput_ { - return _this.Data_EncryptTestOutput_ -} - -type Data_EncryptTestOutput_ interface { - isEncryptTestOutput() -} - -type CompanionStruct_EncryptTestOutput_ struct { -} - -var Companion_EncryptTestOutput_ = CompanionStruct_EncryptTestOutput_{} - -type EncryptTestOutput_EncryptTestOutput struct { - Output bool - Vector m_Wrappers.Option -} - -func (EncryptTestOutput_EncryptTestOutput) isEncryptTestOutput() {} - -func (CompanionStruct_EncryptTestOutput_) Create_EncryptTestOutput_(Output bool, Vector m_Wrappers.Option) EncryptTestOutput { - return EncryptTestOutput{EncryptTestOutput_EncryptTestOutput{Output, Vector}} -} - -func (_this EncryptTestOutput) Is_EncryptTestOutput() bool { - _, ok := _this.Get_().(EncryptTestOutput_EncryptTestOutput) - return ok -} - -func (CompanionStruct_EncryptTestOutput_) Default() EncryptTestOutput { - return Companion_EncryptTestOutput_.Create_EncryptTestOutput_(false, m_Wrappers.Companion_Option_.Default()) -} - -func (_this EncryptTestOutput) Dtor_output() bool { - return _this.Get_().(EncryptTestOutput_EncryptTestOutput).Output -} - -func (_this EncryptTestOutput) Dtor_vector() m_Wrappers.Option { - return _this.Get_().(EncryptTestOutput_EncryptTestOutput).Vector -} - -func (_this EncryptTestOutput) String() string { - switch data := _this.Get_().(type) { - case nil: - return "null" - case EncryptTestOutput_EncryptTestOutput: - { - return "EsdkTestVectors.EncryptTestOutput.EncryptTestOutput" + "(" + _dafny.String(data.Output) + ", " + _dafny.String(data.Vector) + ")" - } - default: - { - return "" - } - } -} - -func (_this EncryptTestOutput) Equals(other EncryptTestOutput) bool { - switch data1 := _this.Get_().(type) { - case EncryptTestOutput_EncryptTestOutput: - { - data2, ok := other.Get_().(EncryptTestOutput_EncryptTestOutput) - return ok && data1.Output == data2.Output && data1.Vector.Equals(data2.Vector) - } - default: - { - return false // unexpected - } - } -} - -func (_this EncryptTestOutput) EqualsGeneric(other interface{}) bool { - typed, ok := other.(EncryptTestOutput) - return ok && _this.Equals(typed) -} - -func Type_EncryptTestOutput_() _dafny.TypeDescriptor { - return type_EncryptTestOutput_{} -} - -type type_EncryptTestOutput_ struct { -} - -func (_this type_EncryptTestOutput_) Default() interface{} { - return Companion_EncryptTestOutput_.Default() -} - -func (_this type_EncryptTestOutput_) String() string { - return "EsdkTestVectors.EncryptTestOutput" -} -func (_this EncryptTestOutput) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = EncryptTestOutput{} - -// End of datatype EncryptTestOutput diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny-go.dtr b/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny-go.dtr deleted file mode 100644 index bd802532a..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny-go.dtr +++ /dev/null @@ -1,35 +0,0 @@ -file_format_version = "1.0" -dafny_version = "4.9.1.0" -[options_by_module.WrappedAbstractAwsCryptographyEncryptionSdkService] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" -legacy-module-names = false -[options_by_module.WrappedESDK] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" -legacy-module-names = false -[options_by_module.EsdkManifestOptions] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" -legacy-module-names = false -[options_by_module.EsdkTestVectors] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" -legacy-module-names = false -[options_by_module.AllEsdkV4NoReqEc] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" -legacy-module-names = false -[options_by_module.AllEsdkV4WithReqEc] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" -legacy-module-names = false -[options_by_module.WriteEsdkJsonManifests] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" -legacy-module-names = false -[options_by_module.WriteVectors] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" -legacy-module-names = false -[options_by_module.ParseEsdkJsonManifest] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" -legacy-module-names = false -[options_by_module.EsdkTestManifests] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" -legacy-module-names = false -[options_by_module.WrappedESDKMain] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors" -legacy-module-names = false diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny.go deleted file mode 100644 index 8fd706e3e..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/ImplementationFromDafny.go +++ /dev/null @@ -1,424 +0,0 @@ -// Dafny program the_program compiled into Go -package main - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" - m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" - m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" - m_EsdkTestManifests "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestManifests" - m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" - m_ParseEsdkJsonManifest "github.com/aws/aws-encryption-sdk/testvectors/ParseEsdkJsonManifest" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m_WrappedESDKMain "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDKMain" - m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" - m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ -var _ m_WrappedESDK.Dummy__ -var _ m_EsdkManifestOptions.Dummy__ -var _ m_EsdkTestVectors.Dummy__ -var _ m_AllEsdkV4NoReqEc.Dummy__ -var _ m_AllEsdkV4WithReqEc.Dummy__ -var _ m_WriteEsdkJsonManifests.Dummy__ -var _ m_WriteVectors.Dummy__ -var _ m_ParseEsdkJsonManifest.Dummy__ -var _ m_EsdkTestManifests.Dummy__ -var _ m_WrappedESDKMain.Dummy__ - -func main() { - defer _dafny.CatchHalt() - m_WrappedMaterialProvidersMain.Companion_Default___.Main(_dafny.FromMainArguments(os.Args)) -} diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/ParseEsdkJsonManifest/ParseEsdkJsonManifest.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/ParseEsdkJsonManifest/ParseEsdkJsonManifest.go deleted file mode 100644 index 0e4503178..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/ParseEsdkJsonManifest/ParseEsdkJsonManifest.go +++ /dev/null @@ -1,1039 +0,0 @@ -// Package ParseEsdkJsonManifest -// Dafny module ParseEsdkJsonManifest compiled into Go - -package ParseEsdkJsonManifest - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" - m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" - m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" - m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" - m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ -var _ m_WrappedESDK.Dummy__ -var _ m_EsdkManifestOptions.Dummy__ -var _ m_EsdkTestVectors.Dummy__ -var _ m_AllEsdkV4NoReqEc.Dummy__ -var _ m_AllEsdkV4WithReqEc.Dummy__ -var _ m_WriteEsdkJsonManifests.Dummy__ -var _ m_WriteVectors.Dummy__ - -type Dummy__ struct{} - -// Definition of class Default__ -type Default__ struct { - dummy byte -} - -func New_Default___() *Default__ { - _this := Default__{} - - return &_this -} - -type CompanionStruct_Default___ struct { -} - -var Companion_Default___ = CompanionStruct_Default___{} - -func (_this *Default__) Equals(other *Default__) bool { - return _this == other -} - -func (_this *Default__) EqualsGeneric(x interface{}) bool { - other, ok := x.(*Default__) - return ok && _this.Equals(other) -} - -func (*Default__) String() string { - return "ParseEsdkJsonManifest.Default__" -} -func (_this *Default__) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = &Default__{} - -func (_static *CompanionStruct_Default___) BuildDecryptTestVector(op m_EsdkManifestOptions.ManifestOptions, version _dafny.Int, keys *m_KeyVectors.KeyVectorsClient, obj _dafny.Sequence) m_Wrappers.Result { - var _hresult m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _hresult - var _0_i _dafny.Int - _ = _0_i - _0_i = _dafny.IntOfUint32((obj).Cardinality()) - var _1_vectors _dafny.Sequence - _ = _1_vectors - _1_vectors = _dafny.SeqOf() - for (_0_i).Sign() != 0 { - _0_i = (_0_i).Minus(_dafny.One) - var _2_test m_Wrappers.Result - _ = _2_test - _2_test = Companion_Default___.ToDecryptTestVectors(op, version, keys, (*((obj).Select((_0_i).Uint32()).(_dafny.Tuple)).IndexInt(0)).(_dafny.Sequence), (*((obj).Select((_0_i).Uint32()).(_dafny.Tuple)).IndexInt(1)).(m_JSON_Values.JSON)) - if ((_2_test).Is_Failure()) && (!_dafny.Companion_Sequence_.Equal((_2_test).Dtor_error().(_dafny.Sequence), Companion_Default___.NegativeTestVectorFound())) { - _hresult = m_Wrappers.Companion_Result_.Create_Failure_(Companion_Default___.BuildTestVectorError()) - return _hresult - } - if (_2_test).Is_Success() { - _1_vectors = _dafny.Companion_Sequence_.Concatenate(_dafny.SeqOf((_2_test).Dtor_value().(m_EsdkTestVectors.EsdkDecryptTestVector)), _1_vectors) - } - if ((_2_test).Is_Failure()) && (_dafny.Companion_Sequence_.Equal((_2_test).Dtor_error().(_dafny.Sequence), Companion_Default___.NegativeTestVectorFound())) { - _1_vectors = _1_vectors - } - } - _hresult = m_Wrappers.Companion_Result_.Create_Success_(_1_vectors) - return _hresult - return _hresult -} -func (_static *CompanionStruct_Default___) ToDecryptTestVectors(op m_EsdkManifestOptions.ManifestOptions, version _dafny.Int, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, json m_JSON_Values.JSON) m_Wrappers.Result { - var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((json).Is_Object(), _dafny.SeqOfString("Vector is not an object")) - _ = _0_valueOrError0 - if (_0_valueOrError0).IsFailure() { - return (_0_valueOrError0).PropagateFailure() - } else { - var _1_obj _dafny.Sequence = (json).Dtor_obj() - _ = _1_obj - var _source0 _dafny.Int = version - _ = _source0 - { - if (_source0).Cmp(_dafny.IntOfInt64(3)) == 0 { - var _2_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((op).Is_Decrypt(), _dafny.SeqOfString("Err parsing manifest expected Decrypt")) - _ = _2_valueOrError1 - if (_2_valueOrError1).IsFailure() { - return (_2_valueOrError1).PropagateFailure() - } else { - return Companion_Default___.V3ToDecryptTestVector(op, keys, name, _1_obj, version) - } - } - } - { - if (_source0).Cmp(_dafny.IntOfInt64(2)) == 0 { - var _3_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((op).Is_Decrypt(), _dafny.SeqOfString("Err parsing manifest expected Decrypt")) - _ = _3_valueOrError2 - if (_3_valueOrError2).IsFailure() { - return (_3_valueOrError2).PropagateFailure() - } else { - return Companion_Default___.V2ToDecryptTestVector(op, keys, name, _1_obj, version) - } - } - } - { - if (_source0).Cmp(_dafny.One) == 0 { - var _4_valueOrError3 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((op).Is_Decrypt(), _dafny.SeqOfString("Err parsing manifest expected Decrypt")) - _ = _4_valueOrError3 - if (_4_valueOrError3).IsFailure() { - return (_4_valueOrError3).PropagateFailure() - } else { - return Companion_Default___.V1ToDecryptTestVector(op, keys, name, _1_obj, version) - } - } - } - { - return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Version not supported\n")) - } - } -} -func (_static *CompanionStruct_Default___) BuildEncryptTestVector(op m_EsdkManifestOptions.ManifestOptions, version _dafny.Int, keys *m_KeyVectors.KeyVectorsClient, obj _dafny.Sequence) m_Wrappers.Result { - var _hresult m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _hresult - var _0_i _dafny.Int - _ = _0_i - _0_i = _dafny.IntOfUint32((obj).Cardinality()) - var _1_vectors _dafny.Sequence - _ = _1_vectors - _1_vectors = _dafny.SeqOf() - for (_0_i).Sign() != 0 { - _0_i = (_0_i).Minus(_dafny.One) - var _2_test m_Wrappers.Result - _ = _2_test - _2_test = Companion_Default___.ToEncryptTestVector(op, version, keys, (*((obj).Select((_0_i).Uint32()).(_dafny.Tuple)).IndexInt(0)).(_dafny.Sequence), (*((obj).Select((_0_i).Uint32()).(_dafny.Tuple)).IndexInt(1)).(m_JSON_Values.JSON)) - if (_2_test).Is_Failure() { - _hresult = m_Wrappers.Companion_Result_.Create_Failure_((_2_test).Dtor_error().(_dafny.Sequence)) - return _hresult - } - _1_vectors = _dafny.Companion_Sequence_.Concatenate(_dafny.SeqOf((_2_test).Dtor_value().(m_EsdkTestVectors.EsdkEncryptTestVector)), _1_vectors) - } - _hresult = m_Wrappers.Companion_Result_.Create_Success_(_1_vectors) - return _hresult - return _hresult -} -func (_static *CompanionStruct_Default___) ToEncryptTestVector(op m_EsdkManifestOptions.ManifestOptions, version _dafny.Int, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, json m_JSON_Values.JSON) m_Wrappers.Result { - var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((json).Is_Object(), _dafny.SeqOfString("EncryptTestVector not an object")) - _ = _0_valueOrError0 - if (_0_valueOrError0).IsFailure() { - return (_0_valueOrError0).PropagateFailure() - } else { - var _1_obj _dafny.Sequence = (json).Dtor_obj() - _ = _1_obj - var _source0 _dafny.Int = version - _ = _source0 - { - if (_source0).Cmp(_dafny.IntOfInt64(5)) == 0 { - return Companion_Default___.V5ToEncryptTestVector(op, keys, name, _1_obj, version) - } - } - { - return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Version not supported")) - } - } -} -func (_static *CompanionStruct_Default___) V5ToEncryptTestVector(op m_EsdkManifestOptions.ManifestOptions, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, obj _dafny.Sequence, version _dafny.Int) m_Wrappers.Result { - var _0_scenarioString _dafny.Sequence = _dafny.SeqOfString("encryption-scenario") - _ = _0_scenarioString - var _1_valueOrError0 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetObject(_0_scenarioString, obj) - _ = _1_valueOrError0 - if (_1_valueOrError0).IsFailure() { - return (_1_valueOrError0).PropagateFailure() - } else { - var _2_scenario _dafny.Sequence = (_1_valueOrError0).Extract().(_dafny.Sequence) - _ = _2_scenario - var _3_typeString _dafny.Sequence = _dafny.SeqOfString("type") - _ = _3_typeString - var _4_valueOrError1 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_3_typeString, _2_scenario) - _ = _4_valueOrError1 - if (_4_valueOrError1).IsFailure() { - return (_4_valueOrError1).PropagateFailure() - } else { - var _5_typ _dafny.Sequence = (_4_valueOrError1).Extract().(_dafny.Sequence) - _ = _5_typ - var _6_valueOrError2 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(Companion_Default___.PlaintextJsonKey(), _2_scenario) - _ = _6_valueOrError2 - if (_6_valueOrError2).IsFailure() { - return (_6_valueOrError2).PropagateFailure() - } else { - var _7_plaintextLoc _dafny.Sequence = (_6_valueOrError2).Extract().(_dafny.Sequence) - _ = _7_plaintextLoc - var _8_valueOrError3 m_Wrappers.Result = m_ParseJsonManifests.Companion_Default___.GetAlgorithmSuiteInfo(_2_scenario) - _ = _8_valueOrError3 - if (_8_valueOrError3).IsFailure() { - return (_8_valueOrError3).PropagateFailure() - } else { - var _9_algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo = (_8_valueOrError3).Extract().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) - _ = _9_algorithmSuite - var _10_valueOrError4 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need(((_9_algorithmSuite).Dtor_id()).Is_ESDK(), _dafny.SeqOfString("Unsupported algorithmSuiteId")) - _ = _10_valueOrError4 - if (_10_valueOrError4).IsFailure() { - return (_10_valueOrError4).PropagateFailure() - } else { - var _11_valueOrError5 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetOptionalPositiveLong(Companion_Default___.FrameSizeJsonKey(), _2_scenario) - _ = _11_valueOrError5 - if (_11_valueOrError5).IsFailure() { - return (_11_valueOrError5).PropagateFailure() - } else { - var _12_frameLength m_Wrappers.Option = (_11_valueOrError5).Extract().(m_Wrappers.Option) - _ = _12_frameLength - var _13_valueOrError6 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.SmallObjectToStringStringMap(Companion_Default___.EncryptionContextJsonKey(), _2_scenario) - _ = _13_valueOrError6 - if (_13_valueOrError6).IsFailure() { - return (_13_valueOrError6).PropagateFailure() - } else { - var _14_encryptionContextStrings _dafny.Map = (_13_valueOrError6).Extract().(_dafny.Map) - _ = _14_encryptionContextStrings - var _15_valueOrError7 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.Utf8EncodeMap(_14_encryptionContextStrings) - _ = _15_valueOrError7 - if (_15_valueOrError7).IsFailure() { - return (_15_valueOrError7).PropagateFailure() - } else { - var _16_encryptionContext _dafny.Map = (_15_valueOrError7).Extract().(_dafny.Map) - _ = _16_encryptionContext - var _17_valueOrError8 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.SmallObjectToStringStringMap(Companion_Default___.ReproducedEncryptionContextJsonKey(), _2_scenario) - _ = _17_valueOrError8 - if (_17_valueOrError8).IsFailure() { - return (_17_valueOrError8).PropagateFailure() - } else { - var _18_reproducedEncryptionContextString _dafny.Map = (_17_valueOrError8).Extract().(_dafny.Map) - _ = _18_reproducedEncryptionContextString - var _19_valueOrError9 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.Utf8EncodeMap(_18_reproducedEncryptionContextString) - _ = _19_valueOrError9 - if (_19_valueOrError9).IsFailure() { - return (_19_valueOrError9).PropagateFailure() - } else { - var _20_reproducedEncryptionContext _dafny.Map = (_19_valueOrError9).Extract().(_dafny.Map) - _ = _20_reproducedEncryptionContext - var _21_valueOrError10 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("description"), _2_scenario) - _ = _21_valueOrError10 - if (_21_valueOrError10).IsFailure() { - return (_21_valueOrError10).PropagateFailure() - } else { - var _22_description _dafny.Sequence = (_21_valueOrError10).Extract().(_dafny.Sequence) - _ = _22_description - var _source0 _dafny.Sequence = _5_typ - _ = _source0 - { - if (_source0).Equals(_dafny.SeqOfString("positive-esdk")) { - var _23_valueOrError11 m_Wrappers.Result = m_ParseJsonManifests.Companion_Default___.GetKeyDescription(keys, Companion_Default___.EncryptKeyDescription(), _2_scenario) - _ = _23_valueOrError11 - if (_23_valueOrError11).IsFailure() { - return (_23_valueOrError11).PropagateFailure() - } else { - var _24_encryptKeyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription = (_23_valueOrError11).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) - _ = _24_encryptKeyDescription - var _25_valueOrError12 m_Wrappers.Result = m_ParseJsonManifests.Companion_Default___.GetKeyDescription(keys, Companion_Default___.DecryptKeyDescription(), _2_scenario) - _ = _25_valueOrError12 - if (_25_valueOrError12).IsFailure() { - return (_25_valueOrError12).PropagateFailure() - } else { - var _26_decryptKeyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription = (_25_valueOrError12).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) - _ = _26_decryptKeyDescription - return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkTestVectors.Companion_EsdkEncryptTestVector_.Create_PositiveEncryptTestVector_(m_Wrappers.Companion_Option_.Create_Some_(name), version, (op).Dtor_manifestPath(), (op).Dtor_decryptManifestOutput(), _7_plaintextLoc, _24_encryptKeyDescription, _26_decryptKeyDescription, m_Wrappers.Companion_Option_.Create_Some_(_16_encryptionContext), m_Wrappers.Companion_Option_.Create_Some_(_20_reproducedEncryptionContext), m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), _12_frameLength, m_Wrappers.Companion_Option_.Create_Some_(_9_algorithmSuite), _22_description, m_Wrappers.Companion_Option_.Create_Some_(int64(1)))) - } - } - } - } - { - return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOfString("Unsupported ESDK TestVector type: "), _5_typ)) - } - } - } - } - } - } - } - } - } - } - } - } -} -func (_static *CompanionStruct_Default___) V1ToDecryptTestVector(op m_EsdkManifestOptions.ManifestOptions, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, obj _dafny.Sequence, version _dafny.Int) m_Wrappers.Result { - var _0_valueOrError0 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("plaintext"), obj) - _ = _0_valueOrError0 - if (_0_valueOrError0).IsFailure() { - return (_0_valueOrError0).PropagateFailure() - } else { - var _1_plaintextLoc _dafny.Sequence = (_0_valueOrError0).Extract().(_dafny.Sequence) - _ = _1_plaintextLoc - var _2_valueOrError1 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("ciphertext"), obj) - _ = _2_valueOrError1 - if (_2_valueOrError1).IsFailure() { - return (_2_valueOrError1).PropagateFailure() - } else { - var _3_ciphertextLoc _dafny.Sequence = (_2_valueOrError1).Extract().(_dafny.Sequence) - _ = _3_ciphertextLoc - var _4_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _3_ciphertextLoc)) && (_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _1_plaintextLoc)), _dafny.SeqOfString("Invalid file prefix in test vector")) - _ = _4_valueOrError2 - if (_4_valueOrError2).IsFailure() { - return (_4_valueOrError2).PropagateFailure() - } else { - var _5_valueOrError3 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetArray(_dafny.SeqOfString("master-keys"), obj) - _ = _5_valueOrError3 - if (_5_valueOrError3).IsFailure() { - return (_5_valueOrError3).PropagateFailure() - } else { - var _6_masterKeys _dafny.Sequence = (_5_valueOrError3).Extract().(_dafny.Sequence) - _ = _6_masterKeys - var _7_valueOrError4 m_Wrappers.Result = Companion_Default___.GetKeyDescriptions(_6_masterKeys, keys) - _ = _7_valueOrError4 - if (_7_valueOrError4).IsFailure() { - return (_7_valueOrError4).PropagateFailure() - } else { - var _8_keyDescriptions _dafny.Sequence = (_7_valueOrError4).Extract().(_dafny.Sequence) - _ = _8_keyDescriptions - var _9_valueOrError5 m_Wrappers.Result = Companion_Default___.ToMultiKeyDescription(_8_keyDescriptions) - _ = _9_valueOrError5 - if (_9_valueOrError5).IsFailure() { - return (_9_valueOrError5).PropagateFailure() - } else { - var _10_keyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription = (_9_valueOrError5).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) - _ = _10_keyDescription - return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkTestVectors.Companion_EsdkDecryptTestVector_.Create_PositiveV1OrV2DecryptTestVector_(name, version, (op).Dtor_manifestPath(), (_3_ciphertextLoc).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), (_1_plaintextLoc).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), _10_keyDescription, m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), name, m_EsdkTestVectors.Companion_DecryptionMethod_.Create_OneShot_())) - } - } - } - } - } - } -} -func (_static *CompanionStruct_Default___) V2ToDecryptTestVector(op m_EsdkManifestOptions.ManifestOptions, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, obj _dafny.Sequence, version _dafny.Int) m_Wrappers.Result { - var _0_valueOrError0 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("result"), obj) - _ = _0_valueOrError0 - if (_0_valueOrError0).IsFailure() { - return (_0_valueOrError0).PropagateFailure() - } else { - var _1_resultLoc _dafny.Sequence = (_0_valueOrError0).Extract().(_dafny.Sequence) - _ = _1_resultLoc - var _2_errorLoc_q m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("error"), _1_resultLoc) - _ = _2_errorLoc_q - if (_2_errorLoc_q).Is_Success() { - return m_Wrappers.Companion_Result_.Create_Failure_(Companion_Default___.NegativeTestVectorFound()) - } else { - var _3_valueOrError1 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetObject(_dafny.SeqOfString("output"), _1_resultLoc) - _ = _3_valueOrError1 - if (_3_valueOrError1).IsFailure() { - return (_3_valueOrError1).PropagateFailure() - } else { - var _4_outputLoc _dafny.Sequence = (_3_valueOrError1).Extract().(_dafny.Sequence) - _ = _4_outputLoc - var _5_valueOrError2 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("plaintext"), _4_outputLoc) - _ = _5_valueOrError2 - if (_5_valueOrError2).IsFailure() { - return (_5_valueOrError2).PropagateFailure() - } else { - var _6_plaintextLoc _dafny.Sequence = (_5_valueOrError2).Extract().(_dafny.Sequence) - _ = _6_plaintextLoc - var _7_valueOrError3 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("ciphertext"), obj) - _ = _7_valueOrError3 - if (_7_valueOrError3).IsFailure() { - return (_7_valueOrError3).PropagateFailure() - } else { - var _8_ciphertextLoc _dafny.Sequence = (_7_valueOrError3).Extract().(_dafny.Sequence) - _ = _8_ciphertextLoc - var _9_valueOrError4 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _8_ciphertextLoc)) && (_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _6_plaintextLoc)), _dafny.SeqOfString("Invalid file prefix in test vector")) - _ = _9_valueOrError4 - if (_9_valueOrError4).IsFailure() { - return (_9_valueOrError4).PropagateFailure() - } else { - var _10_valueOrError5 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetArray(_dafny.SeqOfString("master-keys"), obj) - _ = _10_valueOrError5 - if (_10_valueOrError5).IsFailure() { - return (_10_valueOrError5).PropagateFailure() - } else { - var _11_masterKeys _dafny.Sequence = (_10_valueOrError5).Extract().(_dafny.Sequence) - _ = _11_masterKeys - var _12_valueOrError6 m_Wrappers.Result = Companion_Default___.GetKeyDescriptions(_11_masterKeys, keys) - _ = _12_valueOrError6 - if (_12_valueOrError6).IsFailure() { - return (_12_valueOrError6).PropagateFailure() - } else { - var _13_keyDescriptions _dafny.Sequence = (_12_valueOrError6).Extract().(_dafny.Sequence) - _ = _13_keyDescriptions - var _14_valueOrError7 m_Wrappers.Result = Companion_Default___.ToMultiKeyDescription(_13_keyDescriptions) - _ = _14_valueOrError7 - if (_14_valueOrError7).IsFailure() { - return (_14_valueOrError7).PropagateFailure() - } else { - var _15_keyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription = (_14_valueOrError7).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) - _ = _15_keyDescription - return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkTestVectors.Companion_EsdkDecryptTestVector_.Create_PositiveV1OrV2DecryptTestVector_(name, version, (op).Dtor_manifestPath(), (_8_ciphertextLoc).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), (_6_plaintextLoc).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), _15_keyDescription, m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_(), name, m_EsdkTestVectors.Companion_DecryptionMethod_.Create_OneShot_())) - } - } - } - } - } - } - } - } - } -} -func (_static *CompanionStruct_Default___) V3ToDecryptTestVector(op m_EsdkManifestOptions.ManifestOptions, keys *m_KeyVectors.KeyVectorsClient, name _dafny.Sequence, obj _dafny.Sequence, version _dafny.Int) m_Wrappers.Result { - var _0_scenarioString _dafny.Sequence = _dafny.SeqOfString("decryption-scenario") - _ = _0_scenarioString - var _1_valueOrError0 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetObject(_0_scenarioString, obj) - _ = _1_valueOrError0 - if (_1_valueOrError0).IsFailure() { - return (_1_valueOrError0).PropagateFailure() - } else { - var _2_scenario _dafny.Sequence = (_1_valueOrError0).Extract().(_dafny.Sequence) - _ = _2_scenario - var _3_typeString _dafny.Sequence = _dafny.SeqOfString("type") - _ = _3_typeString - var _4_valueOrError1 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_3_typeString, _2_scenario) - _ = _4_valueOrError1 - if (_4_valueOrError1).IsFailure() { - return (_4_valueOrError1).PropagateFailure() - } else { - var _5_typ _dafny.Sequence = (_4_valueOrError1).Extract().(_dafny.Sequence) - _ = _5_typ - var _6_valueOrError2 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(Companion_Default___.CiphertextJsonKey(), _2_scenario) - _ = _6_valueOrError2 - if (_6_valueOrError2).IsFailure() { - return (_6_valueOrError2).PropagateFailure() - } else { - var _7_ciphertextLoc _dafny.Sequence = (_6_valueOrError2).Extract().(_dafny.Sequence) - _ = _7_ciphertextLoc - var _8_valueOrError3 m_Wrappers.Result = m_ParseJsonManifests.Companion_Default___.GetAlgorithmSuiteInfo(_2_scenario) - _ = _8_valueOrError3 - if (_8_valueOrError3).IsFailure() { - return (_8_valueOrError3).PropagateFailure() - } else { - var _9_algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo = (_8_valueOrError3).Extract().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) - _ = _9_algorithmSuite - var _10_valueOrError4 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need(((_9_algorithmSuite).Dtor_id()).Is_ESDK(), _dafny.SeqOfString("Unsupported algorithmSuiteId")) - _ = _10_valueOrError4 - if (_10_valueOrError4).IsFailure() { - return (_10_valueOrError4).PropagateFailure() - } else { - var _11_valueOrError5 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetOptionalPositiveLong(Companion_Default___.FrameSizeJsonKey(), _2_scenario) - _ = _11_valueOrError5 - if (_11_valueOrError5).IsFailure() { - return (_11_valueOrError5).PropagateFailure() - } else { - var _12_frameLength m_Wrappers.Option = (_11_valueOrError5).Extract().(m_Wrappers.Option) - _ = _12_frameLength - var _13_valueOrError6 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.SmallObjectToStringStringMap(Companion_Default___.ReproducedEncryptionContextJsonKey(), _2_scenario) - _ = _13_valueOrError6 - if (_13_valueOrError6).IsFailure() { - return (_13_valueOrError6).PropagateFailure() - } else { - var _14_reproducedEncryptionContextStrings _dafny.Map = (_13_valueOrError6).Extract().(_dafny.Map) - _ = _14_reproducedEncryptionContextStrings - var _15_valueOrError7 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.Utf8EncodeMap(_14_reproducedEncryptionContextStrings) - _ = _15_valueOrError7 - if (_15_valueOrError7).IsFailure() { - return (_15_valueOrError7).PropagateFailure() - } else { - var _16_reproducedEncryptionContext _dafny.Map = (_15_valueOrError7).Extract().(_dafny.Map) - _ = _16_reproducedEncryptionContext - var _17_valueOrError8 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("description"), _2_scenario) - _ = _17_valueOrError8 - if (_17_valueOrError8).IsFailure() { - return (_17_valueOrError8).PropagateFailure() - } else { - var _18_description _dafny.Sequence = (_17_valueOrError8).Extract().(_dafny.Sequence) - _ = _18_description - var _19_valueOrError9 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(_dafny.SeqOfString("result"), _2_scenario) - _ = _19_valueOrError9 - if (_19_valueOrError9).IsFailure() { - return (_19_valueOrError9).PropagateFailure() - } else { - var _20_result _dafny.Sequence = (_19_valueOrError9).Extract().(_dafny.Sequence) - _ = _20_result - var _21_valueOrError10 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _7_ciphertextLoc)) && (_dafny.Companion_Sequence_.IsProperPrefixOf(_dafny.SeqOfString("file://"), _20_result)), _dafny.SeqOfString("Invalid file prefix in test vector")) - _ = _21_valueOrError10 - if (_21_valueOrError10).IsFailure() { - return (_21_valueOrError10).PropagateFailure() - } else { - var _source0 _dafny.Sequence = _5_typ - _ = _source0 - { - if (_source0).Equals(_dafny.SeqOfString("positive-esdk")) { - var _22_valueOrError11 m_Wrappers.Result = m_ParseJsonManifests.Companion_Default___.GetKeyDescription(keys, Companion_Default___.DecryptKeyDescription(), _2_scenario) - _ = _22_valueOrError11 - if (_22_valueOrError11).IsFailure() { - return (_22_valueOrError11).PropagateFailure() - } else { - var _23_decryptKeyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription = (_22_valueOrError11).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription) - _ = _23_decryptKeyDescription - return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkTestVectors.Companion_EsdkDecryptTestVector_.Create_PositiveDecryptTestVector_(name, version, (op).Dtor_manifestPath(), (_7_ciphertextLoc).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), (_20_result).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32()), m_Wrappers.Companion_Option_.Create_Some_(_16_reproducedEncryptionContext), _23_decryptKeyDescription, m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_(), _12_frameLength, m_Wrappers.Companion_Option_.Create_Some_(_9_algorithmSuite), _18_description, m_EsdkTestVectors.Companion_DecryptionMethod_.Create_OneShot_())) - } - } - } - { - return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOfString("Unsupported ESDK TestVector type: "), _5_typ)) - } - } - } - } - } - } - } - } - } - } - } - } -} -func (_static *CompanionStruct_Default___) GetKeyDescriptions(keyArray _dafny.Sequence, keys *m_KeyVectors.KeyVectorsClient) m_Wrappers.Result { - if (_dafny.IntOfUint32((keyArray).Cardinality())).Sign() == 0 { - return m_Wrappers.Companion_Result_.Create_Success_(_dafny.SeqOf()) - } else { - var _0_currKey m_JSON_Values.JSON = (keyArray).Select(0).(m_JSON_Values.JSON) - _ = _0_currKey - var _1_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_0_currKey).Is_Object(), _dafny.SeqOfString("Not an object")) - _ = _1_valueOrError0 - if (_1_valueOrError0).IsFailure() { - return (_1_valueOrError0).PropagateFailure() - } else { - var _2_valueOrError1 m_Wrappers.Result = (m_JSON_API.Companion_Default___.Serialize(_0_currKey)).MapFailure(func(coer6 func(m_JSON_Errors.SerializationError) _dafny.Sequence) func(interface{}) interface{} { - return func(arg8 interface{}) interface{} { - return coer6(arg8.(m_JSON_Errors.SerializationError)) - } - }(func(_3_e m_JSON_Errors.SerializationError) _dafny.Sequence { - return (_3_e).ToString() - })) - _ = _2_valueOrError1 - if (_2_valueOrError1).IsFailure() { - return (_2_valueOrError1).PropagateFailure() - } else { - var _4_encryptStr _dafny.Sequence = (_2_valueOrError1).Extract().(_dafny.Sequence) - _ = _4_encryptStr - var _5_valueOrError2 m_Wrappers.Result = ((keys).GetKeyDescription(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_GetKeyDescriptionInput_.Create_GetKeyDescriptionInput_(_4_encryptStr))).MapFailure(func(coer7 func(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error) _dafny.Sequence) func(interface{}) interface{} { - return func(arg9 interface{}) interface{} { - return coer7(arg9.(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Error)) - } - }(m_ParseJsonManifests.Companion_Default___.ErrorToString)) - _ = _5_valueOrError2 - if (_5_valueOrError2).IsFailure() { - return (_5_valueOrError2).PropagateFailure() - } else { - var _6_encryptDecryptKeyDescription m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.GetKeyDescriptionOutput = (_5_valueOrError2).Extract().(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.GetKeyDescriptionOutput) - _ = _6_encryptDecryptKeyDescription - var _7_valueOrError3 m_Wrappers.Result = Companion_Default___.GetKeyDescriptions((keyArray).Drop(1), keys) - _ = _7_valueOrError3 - if (_7_valueOrError3).IsFailure() { - return (_7_valueOrError3).PropagateFailure() - } else { - var _8_tail _dafny.Sequence = (_7_valueOrError3).Extract().(_dafny.Sequence) - _ = _8_tail - return m_Wrappers.Companion_Result_.Create_Success_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOf((_6_encryptDecryptKeyDescription).Dtor_keyDescription()), _8_tail)) - } - } - } - } - } -} -func (_static *CompanionStruct_Default___) ToMultiKeyDescription(keyDescriptions _dafny.Sequence) m_Wrappers.Result { - if (_dafny.IntOfUint32((keyDescriptions).Cardinality())).Cmp(_dafny.One) == 0 { - return m_Wrappers.Companion_Result_.Create_Success_((keyDescriptions).Select(0).(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription)) - } else { - var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((keyDescriptions).Cardinality())).Cmp(_dafny.One) > 0, _dafny.SeqOfString("Received invalid key description length")) - _ = _0_valueOrError0 - if (_0_valueOrError0).IsFailure() { - return (_0_valueOrError0).PropagateFailure() - } else { - return m_Wrappers.Companion_Result_.Create_Success_(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_KeyDescription_.Create_Multi_(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Companion_MultiKeyring_.Create_MultiKeyring_(m_Wrappers.Companion_Option_.Create_Some_((keyDescriptions).Select(0).(m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.KeyDescription)), (keyDescriptions).Drop(1)))) - } - } -} -func (_static *CompanionStruct_Default___) GetPath(key _dafny.Sequence, obj _dafny.Sequence) m_Wrappers.Result { - var _0_valueOrError0 m_Wrappers.Result = m_JSONHelpers.Companion_Default___.GetString(key, obj) - _ = _0_valueOrError0 - if (_0_valueOrError0).IsFailure() { - return (_0_valueOrError0).PropagateFailure() - } else { - var _1_path _dafny.Sequence = (_0_valueOrError0).Extract().(_dafny.Sequence) - _ = _1_path - var _2_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need(_dafny.Companion_Sequence_.IsProperPrefixOf(Companion_Default___.FILE__PREPEND(), _1_path), _dafny.SeqOfString("Received Invalid location for plaintext or ciphertext.")) - _ = _2_valueOrError1 - if (_2_valueOrError1).IsFailure() { - return (_2_valueOrError1).PropagateFailure() - } else { - return m_Wrappers.Companion_Result_.Create_Success_((_1_path).Drop((_dafny.IntOfUint32((Companion_Default___.FILE__PREPEND()).Cardinality())).Uint32())) - } - } -} -func (_static *CompanionStruct_Default___) Result_q(key _dafny.Sequence) bool { - return (_dafny.Companion_Sequence_.Equal(key, _dafny.SeqOfString("output"))) || (_dafny.Companion_Sequence_.Equal(key, _dafny.SeqOfString("error"))) -} -func (_static *CompanionStruct_Default___) CiphertextJsonKey() _dafny.Sequence { - return _dafny.SeqOfString("ciphertext") -} -func (_static *CompanionStruct_Default___) FrameSizeJsonKey() _dafny.Sequence { - return _dafny.SeqOfString("frame-size") -} -func (_static *CompanionStruct_Default___) ReproducedEncryptionContextJsonKey() _dafny.Sequence { - return _dafny.SeqOfString("reproduced-encryption-context") -} -func (_static *CompanionStruct_Default___) DecryptKeyDescription() _dafny.Sequence { - return _dafny.SeqOfString("decryptKeyDescription") -} -func (_static *CompanionStruct_Default___) FILE__PREPEND() _dafny.Sequence { - return _dafny.SeqOfString("file://") -} -func (_static *CompanionStruct_Default___) NegativeTestVectorFound() _dafny.Sequence { - return _dafny.SeqOfString("Negative test vector found; not supported yet.") -} -func (_static *CompanionStruct_Default___) BuildTestVectorError() _dafny.Sequence { - return _dafny.SeqOfString("Error other than negative test vector found thrown") -} -func (_static *CompanionStruct_Default___) PlaintextJsonKey() _dafny.Sequence { - return _dafny.SeqOfString("plaintext") -} -func (_static *CompanionStruct_Default___) EncryptionContextJsonKey() _dafny.Sequence { - return _dafny.SeqOfString("encryption-context") -} -func (_static *CompanionStruct_Default___) EncryptKeyDescription() _dafny.Sequence { - return _dafny.SeqOfString("encryptKeyDescription") -} -func (_static *CompanionStruct_Default___) MasterKeysJsonKey() _dafny.Sequence { - return _dafny.SeqOfString("master-keys") -} -func (_static *CompanionStruct_Default___) DecryptionMethodJsonKey() _dafny.Sequence { - return _dafny.SeqOfString("decryption-method") -} - -// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDK/WrappedESDK.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDK/WrappedESDK.go deleted file mode 100644 index 0e646bbd5..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDK/WrappedESDK.go +++ /dev/null @@ -1,449 +0,0 @@ -// Package WrappedESDK -// Dafny module WrappedESDK compiled into Go - -package WrappedESDK - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ - -type Dummy__ struct{} - -// Definition of class Default__ -type Default__ struct { - dummy byte -} - -func New_Default___() *Default__ { - _this := Default__{} - - return &_this -} - -type CompanionStruct_Default___ struct { -} - -var Companion_Default___ = CompanionStruct_Default___{} - -func (_this *Default__) Equals(other *Default__) bool { - return _this == other -} - -func (_this *Default__) EqualsGeneric(x interface{}) bool { - other, ok := x.(*Default__) - return ok && _this.Equals(other) -} - -func (*Default__) String() string { - return "WrappedESDK.Default__" -} -func (_this *Default__) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = &Default__{} - -func (_static *CompanionStruct_Default___) WrappedDefaultAwsEncryptionSdkConfig() m_AwsCryptographyEncryptionSdkTypes.AwsEncryptionSdkConfig { - return m_AwsCryptographyEncryptionSdkTypes.Companion_AwsEncryptionSdkConfig_.Create_AwsEncryptionSdkConfig_(m_Wrappers.Companion_Option_.Create_Some_(m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_REQUIRE__ENCRYPT__REQUIRE__DECRYPT_()), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_()) -} -func (_static *CompanionStruct_Default___) WrappedAwsEncryptionSdkConfigWithSuppliedCommitment(commitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy) m_AwsCryptographyEncryptionSdkTypes.AwsEncryptionSdkConfig { - return m_AwsCryptographyEncryptionSdkTypes.Companion_AwsEncryptionSdkConfig_.Create_AwsEncryptionSdkConfig_(m_Wrappers.Companion_Option_.Create_Some_(commitmentPolicy), m_Wrappers.Companion_Option_.Create_None_(), m_Wrappers.Companion_Option_.Create_None_()) -} -func (_static *CompanionStruct_Default___) WrappedAwsEncryptionSdkConfig(commitmentPolicy m_AwsCryptographyMaterialProvidersTypes.ESDKCommitmentPolicy, maxEncryptedDataKeys int64, netV4__0__0__RetryPolicy m_AwsCryptographyEncryptionSdkTypes.NetV4__0__0__RetryPolicy) m_AwsCryptographyEncryptionSdkTypes.AwsEncryptionSdkConfig { - return m_AwsCryptographyEncryptionSdkTypes.Companion_AwsEncryptionSdkConfig_.Create_AwsEncryptionSdkConfig_(m_Wrappers.Companion_Option_.Create_Some_(commitmentPolicy), m_Wrappers.Companion_Option_.Create_Some_(maxEncryptedDataKeys), m_Wrappers.Companion_Option_.Create_Some_(netV4__0__0__RetryPolicy)) -} - -// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDKMain/WrappedESDKMain.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDKMain/WrappedESDKMain.go deleted file mode 100644 index e3ca772e7..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/WrappedESDKMain/WrappedESDKMain.go +++ /dev/null @@ -1,689 +0,0 @@ -// Package WrappedESDKMain -// Dafny module WrappedESDKMain compiled into Go - -package WrappedESDKMain - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" - m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" - m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" - m_EsdkTestManifests "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestManifests" - m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" - m_ParseEsdkJsonManifest "github.com/aws/aws-encryption-sdk/testvectors/ParseEsdkJsonManifest" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" - m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ -var _ m_WrappedESDK.Dummy__ -var _ m_EsdkManifestOptions.Dummy__ -var _ m_EsdkTestVectors.Dummy__ -var _ m_AllEsdkV4NoReqEc.Dummy__ -var _ m_AllEsdkV4WithReqEc.Dummy__ -var _ m_WriteEsdkJsonManifests.Dummy__ -var _ m_WriteVectors.Dummy__ -var _ m_ParseEsdkJsonManifest.Dummy__ -var _ m_EsdkTestManifests.Dummy__ - -type Dummy__ struct{} - -// Definition of class Default__ -type Default__ struct { - dummy byte -} - -func New_Default___() *Default__ { - _this := Default__{} - - return &_this -} - -type CompanionStruct_Default___ struct { -} - -var Companion_Default___ = CompanionStruct_Default___{} - -func (_this *Default__) Equals(other *Default__) bool { - return _this == other -} - -func (_this *Default__) EqualsGeneric(x interface{}) bool { - other, ok := x.(*Default__) - return ok && _this.Equals(other) -} - -func (*Default__) String() string { - return "WrappedESDKMain.Default__" -} -func (_this *Default__) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = &Default__{} - -func (_static *CompanionStruct_Default___) Main2(args _dafny.Sequence) { - var _0_vectorOptions m_GetOpt.Options - _ = _0_vectorOptions - _0_vectorOptions = m_GetOpt.Companion_Options_.Create_Options_(_dafny.SeqOfString("test-vectors"), _dafny.SeqOfString("?"), _dafny.SeqOf(m_GetOpt.Companion_Param_.Create_Command_(m_GetOpt.Companion_Options_.Create_Options_(_dafny.SeqOfString("decrypt"), _dafny.SeqOfString("decrypt command for test-vectors"), _dafny.SeqOf(m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("manifest-path"), _dafny.SeqOfString("relative path to the location of the manifest"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_Required_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_()), m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("manifest-name"), _dafny.SeqOfString("name of file that contains the decrypt vectors file"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_Required_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_()), m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("test-name"), _dafny.SeqOfString("id of the test to run"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_UnusedOk_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_())))), m_GetOpt.Companion_Param_.Create_Command_(m_GetOpt.Companion_Options_.Create_Options_(_dafny.SeqOfString("encrypt"), _dafny.SeqOfString("encrypt command for test-vectors"), _dafny.SeqOf(m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("manifest-path"), _dafny.SeqOfString("relative path to the location of the manifest"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_Required_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_()), m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("decrypt-manifest-path"), _dafny.SeqOfString("relative path to the location where the decrypted manifest will be written to."), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_Required_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_()), m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("test-name"), _dafny.SeqOfString("id of the test to run"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_UnusedOk_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_())))), m_GetOpt.Companion_Param_.Create_Command_(m_GetOpt.Companion_Options_.Create_Options_(_dafny.SeqOfString("encrypt-manifest"), _dafny.SeqOfString("encryp manifest command for test-vectors"), _dafny.SeqOf(m_GetOpt.Companion_Param_.Create_Opt_(_dafny.SeqOfString("encrypt-manifest-output"), _dafny.SeqOfString("relative path of where to store the encrypt-manifest produced"), _dafny.SeqOfString("arg"), m_GetOpt.Companion_Default___.NullChar(), m_GetOpt.Companion_Unused_.Create_Required_(), false, m_GetOpt.Companion_Visibility_.Create_Normal_(), _dafny.SeqOfChars(), _dafny.SeqOf(), m_GetOpt.Companion_Tri_.Create_No_())))))) - if !((_dafny.IntOfUint32((args).Cardinality())).Sign() == 1) { - panic("dafny/TestVectors/src/Index.dfy(40,4): " + (_dafny.SeqOfString("expectation violation")).String()) - } - var _1_parsedOptions_q m_Wrappers.Result - _ = _1_parsedOptions_q - _1_parsedOptions_q = m_GetOpt.Companion_Default___.GetOptions(_0_vectorOptions, args) - if (_1_parsedOptions_q).Is_Success() { - var _2_h m_Wrappers.Option - _ = _2_h - _2_h = m_GetOpt.Companion_Default___.NeedsHelp(_0_vectorOptions, (_1_parsedOptions_q).Dtor_value().(m_GetOpt.Parsed), _dafny.SeqOfString("")) - if (_2_h).Is_Some() { - _dafny.Print(((_2_h).Dtor_value().(_dafny.Sequence)).SetString()) - return - } - var _3_op_q m_Wrappers.Result - _ = _3_op_q - _3_op_q = Companion_Default___.ParseCommandLineOptions((_1_parsedOptions_q).Dtor_value().(m_GetOpt.Parsed)) - if (_3_op_q).Is_Success() { - var _4_op m_EsdkManifestOptions.ManifestOptions - _ = _4_op - _4_op = (_3_op_q).Dtor_value().(m_EsdkManifestOptions.ManifestOptions) - var _source0 m_EsdkManifestOptions.ManifestOptions = _4_op - _ = _source0 - { - { - if _source0.Is_Decrypt() { - var _5_result m_Wrappers.Result - _ = _5_result - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = m_EsdkTestManifests.Companion_Default___.StartDecryptVectors(_4_op) - _5_result = _out0 - if (_5_result).Is_Failure() { - _dafny.Print(((_5_result).Dtor_error().(_dafny.Sequence)).SetString()) - } - if !((_5_result).Is_Success()) { - panic("dafny/TestVectors/src/Index.dfy(59,10): " + (_dafny.SeqOfString("expectation violation")).String()) - } - goto Lmatch0 - } - } - { - if _source0.Is_Encrypt() { - var _6_result m_Wrappers.Result - _ = _6_result - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = m_EsdkTestManifests.Companion_Default___.StartEncryptVectors(_4_op) - _6_result = _out1 - if (_6_result).Is_Failure() { - _dafny.Print(((_6_result).Dtor_error().(_dafny.Sequence)).SetString()) - } - if !((_6_result).Is_Success()) { - panic("dafny/TestVectors/src/Index.dfy(65,10): " + (_dafny.SeqOfString("expectation violation")).String()) - } - goto Lmatch0 - } - } - { - var _7_result m_Wrappers.Result - _ = _7_result - var _out2 m_Wrappers.Result - _ = _out2 - _out2 = m_WriteVectors.Companion_Default___.WriteTestVectors(_4_op) - _7_result = _out2 - if (_7_result).Is_Failure() { - _dafny.Print(((_7_result).Dtor_error().(_dafny.Sequence)).SetString()) - } - if !((_7_result).Is_Success()) { - panic("dafny/TestVectors/src/Index.dfy(71,10): " + (_dafny.SeqOfString("expectation violation")).String()) - } - } - goto Lmatch0 - } - Lmatch0: - } else { - _dafny.Print((_dafny.Companion_Sequence_.Concatenate((_3_op_q).Dtor_error().(_dafny.Sequence), _dafny.SeqOfString("\n"))).SetString()) - _dafny.Print((_dafny.SeqOfString("help\n")).SetString()) - } - } else { - _dafny.Print((_dafny.Companion_Sequence_.Concatenate((_1_parsedOptions_q).Dtor_error().(_dafny.Sequence), _dafny.SeqOfString("\n"))).SetString()) - } -} -func (_static *CompanionStruct_Default___) ParseCommandLineOptions(parsedOptions m_GetOpt.Parsed) m_Wrappers.Result { - var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need(((parsedOptions).Dtor_subcommand()).Is_Some(), _dafny.SeqOfString("Must supply subcommand\n")) - _ = _0_valueOrError0 - if (_0_valueOrError0).IsFailure() { - return (_0_valueOrError0).PropagateFailure() - } else { - var _source0 _dafny.Sequence = (((parsedOptions).Dtor_subcommand()).Dtor_value().(m_GetOpt.Parsed)).Dtor_command() - _ = _source0 - { - if (_source0).Equals(_dafny.SeqOfString("decrypt")) { - return Companion_Default___.ParseDecryptCmd((((parsedOptions).Dtor_subcommand()).Dtor_value().(m_GetOpt.Parsed)).Dtor_params()) - } - } - { - if (_source0).Equals(_dafny.SeqOfString("encrypt")) { - return Companion_Default___.ParseEncryptCmd((((parsedOptions).Dtor_subcommand()).Dtor_value().(m_GetOpt.Parsed)).Dtor_params()) - } - } - { - if (_source0).Equals(_dafny.SeqOfString("encrypt-manifest")) { - return Companion_Default___.ParseEncryptManifestCmd((((parsedOptions).Dtor_subcommand()).Dtor_value().(m_GetOpt.Parsed)).Dtor_params()) - } - } - { - return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Received unknown subcommand")) - } - } -} -func (_static *CompanionStruct_Default___) ParseDecryptCmd(params _dafny.Sequence) m_Wrappers.Result { - var _0_manifestPath_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("manifest-path")) - _ = _0_manifestPath_q - var _1_testName_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("test-name")) - _ = _1_testName_q - var _2_manifestFileName_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("manifest-name")) - _ = _2_manifestFileName_q - var _3_manifestPath _dafny.Sequence = (func() _dafny.Sequence { - if (_0_manifestPath_q).Is_Some() { - return (_0_manifestPath_q).Dtor_value().(_dafny.Sequence) - } - return _dafny.SeqOfString(".") - })() - _ = _3_manifestPath - var _4_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((_3_manifestPath).Cardinality())).Sign() == 1, _dafny.SeqOfString("Invalid manifest path length\n")) - _ = _4_valueOrError0 - if (_4_valueOrError0).IsFailure() { - return (_4_valueOrError0).PropagateFailure() - } else { - var _5_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_2_manifestFileName_q).Is_Some(), _dafny.SeqOfString("Must supply manifest file name")) - _ = _5_valueOrError1 - if (_5_valueOrError1).IsFailure() { - return (_5_valueOrError1).PropagateFailure() - } else { - var _6_manifestFileName _dafny.Sequence = (_2_manifestFileName_q).Dtor_value().(_dafny.Sequence) - _ = _6_manifestFileName - return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_Decrypt_((func() _dafny.Sequence { - if (m_Seq.Companion_Default___.Last(_3_manifestPath).(_dafny.Char)) == (_dafny.Char('/')) { - return _3_manifestPath - } - return _dafny.Companion_Sequence_.Concatenate(_3_manifestPath, _dafny.SeqOfString("/")) - })(), _6_manifestFileName, (func() m_Wrappers.Option { - if (_1_testName_q).Is_Some() { - return _1_testName_q - } - return m_Wrappers.Companion_Option_.Create_None_() - })())) - } - } -} -func (_static *CompanionStruct_Default___) ParseEncryptCmd(params _dafny.Sequence) m_Wrappers.Result { - var _0_manifestPath_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("manifest-path")) - _ = _0_manifestPath_q - var _1_manifestName_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("manifest")) - _ = _1_manifestName_q - var _2_decryptManifestPath_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("decrypt-manifest-path")) - _ = _2_decryptManifestPath_q - var _3_testName_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("test-name")) - _ = _3_testName_q - var _4_manifestPath _dafny.Sequence = (func() _dafny.Sequence { - if (_0_manifestPath_q).Is_Some() { - return (_0_manifestPath_q).Dtor_value().(_dafny.Sequence) - } - return _dafny.SeqOfString(".") - })() - _ = _4_manifestPath - var _5_manifestName _dafny.Sequence = (func() _dafny.Sequence { - if (_1_manifestName_q).Is_Some() { - return (_1_manifestName_q).Dtor_value().(_dafny.Sequence) - } - return _dafny.SeqOfString("encrypt-manifest.json") - })() - _ = _5_manifestName - var _6_decryptManifestPath _dafny.Sequence = (func() _dafny.Sequence { - if (_2_decryptManifestPath_q).Is_Some() { - return (_2_decryptManifestPath_q).Dtor_value().(_dafny.Sequence) - } - return _dafny.SeqOfString(".") - })() - _ = _6_decryptManifestPath - var _7_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need(((_dafny.IntOfUint32((_4_manifestPath).Cardinality())).Sign() == 1) && ((_dafny.IntOfUint32((_6_decryptManifestPath).Cardinality())).Sign() == 1), _dafny.SeqOfString("Invalid manifest or decrypt manifest path length\n")) - _ = _7_valueOrError0 - if (_7_valueOrError0).IsFailure() { - return (_7_valueOrError0).PropagateFailure() - } else { - return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_Encrypt_((func() _dafny.Sequence { - if (m_Seq.Companion_Default___.Last(_4_manifestPath).(_dafny.Char)) == (_dafny.Char('/')) { - return _4_manifestPath - } - return _dafny.Companion_Sequence_.Concatenate(_4_manifestPath, _dafny.SeqOfString("/")) - })(), _5_manifestName, (func() _dafny.Sequence { - if (m_Seq.Companion_Default___.Last(_6_decryptManifestPath).(_dafny.Char)) == (_dafny.Char('/')) { - return _6_decryptManifestPath - } - return _dafny.Companion_Sequence_.Concatenate(_6_decryptManifestPath, _dafny.SeqOfString("/")) - })(), (func() m_Wrappers.Option { - if (_3_testName_q).Is_Some() { - return _3_testName_q - } - return m_Wrappers.Companion_Option_.Create_None_() - })())) - } -} -func (_static *CompanionStruct_Default___) ParseEncryptManifestCmd(params _dafny.Sequence) m_Wrappers.Result { - var _0_encryptManifestOutput_q m_Wrappers.Option = m_GetOpt.Companion_Default___.OptValue(params, _dafny.SeqOfString("encrypt-manifest-output")) - _ = _0_encryptManifestOutput_q - var _1_encryptManifestOutput _dafny.Sequence = (func() _dafny.Sequence { - if (_0_encryptManifestOutput_q).Is_Some() { - return (_0_encryptManifestOutput_q).Dtor_value().(_dafny.Sequence) - } - return _dafny.SeqOfString(".") - })() - _ = _1_encryptManifestOutput - var _2_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((_1_encryptManifestOutput).Cardinality())).Sign() == 1, _dafny.SeqOfString("Invalid encrypt manifest output length")) - _ = _2_valueOrError0 - if (_2_valueOrError0).IsFailure() { - return (_2_valueOrError0).PropagateFailure() - } else { - return m_Wrappers.Companion_Result_.Create_Success_(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_EncryptManifest_((func() _dafny.Sequence { - if (m_Seq.Companion_Default___.Last(_1_encryptManifestOutput).(_dafny.Char)) == (_dafny.Char('/')) { - return _1_encryptManifestOutput - } - return _dafny.Companion_Sequence_.Concatenate(_1_encryptManifestOutput, _dafny.SeqOfString("/")) - })(), _dafny.IntOfInt64(5))) - } -} - -// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteEsdkJsonManifests/WriteEsdkJsonManifests.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteEsdkJsonManifests/WriteEsdkJsonManifests.go deleted file mode 100644 index 4f3af9a3c..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteEsdkJsonManifests/WriteEsdkJsonManifests.go +++ /dev/null @@ -1,683 +0,0 @@ -// Package WriteEsdkJsonManifests -// Dafny module WriteEsdkJsonManifests compiled into Go - -package WriteEsdkJsonManifests - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" - m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" - m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" - m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_SortedSets "github.com/dafny-lang/DafnyStandardLibGo/SortedSets" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UTF8 "github.com/dafny-lang/DafnyStandardLibGo/UTF8" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ -var _ m_WrappedESDK.Dummy__ -var _ m_EsdkManifestOptions.Dummy__ -var _ m_EsdkTestVectors.Dummy__ -var _ m_AllEsdkV4NoReqEc.Dummy__ -var _ m_AllEsdkV4WithReqEc.Dummy__ - -type Dummy__ struct{} - -// Definition of class Default__ -type Default__ struct { - dummy byte -} - -func New_Default___() *Default__ { - _this := Default__{} - - return &_this -} - -type CompanionStruct_Default___ struct { -} - -var Companion_Default___ = CompanionStruct_Default___{} - -func (_this *Default__) Equals(other *Default__) bool { - return _this == other -} - -func (_this *Default__) EqualsGeneric(x interface{}) bool { - other, ok := x.(*Default__) - return ok && _this.Equals(other) -} - -func (*Default__) String() string { - return "WriteEsdkJsonManifests.Default__" -} -func (_this *Default__) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = &Default__{} - -func (_static *CompanionStruct_Default___) EncryptionContextKeysToJson(keys m_Wrappers.Option) m_Wrappers.Result { - if (keys).Is_Some() { - var _0_valueOrError0 m_Wrappers.Result = m_Seq.Companion_Default___.MapWithResult(func(coer2 func(_dafny.Sequence) m_Wrappers.Result) func(interface{}) m_Wrappers.Result { - return func(arg2 interface{}) m_Wrappers.Result { - return coer2(arg2.(_dafny.Sequence)) - } - }(func(_1_bytes _dafny.Sequence) m_Wrappers.Result { - return func(_pat_let0_0 m_Wrappers.Result) m_Wrappers.Result { - return func(_2_valueOrError1 m_Wrappers.Result) m_Wrappers.Result { - return (func() m_Wrappers.Result { - if (_2_valueOrError1).IsFailure() { - return (_2_valueOrError1).PropagateFailure() - } - return func(_pat_let1_0 _dafny.Sequence) m_Wrappers.Result { - return func(_3_key _dafny.Sequence) m_Wrappers.Result { - return m_Wrappers.Companion_Result_.Create_Success_(m_JSON_Values.Companion_JSON_.Create_String_(_3_key)) - }(_pat_let1_0) - }((_2_valueOrError1).Extract().(_dafny.Sequence)) - })() - }(_pat_let0_0) - }(m_UTF8.Decode(_1_bytes)) - }), (keys).Dtor_value().(_dafny.Sequence)) - _ = _0_valueOrError0 - if (_0_valueOrError0).IsFailure() { - return (_0_valueOrError0).PropagateFailure() - } else { - var _4_tmp _dafny.Sequence = (_0_valueOrError0).Extract().(_dafny.Sequence) - _ = _4_tmp - return m_Wrappers.Companion_Result_.Create_Success_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("requiredEncryptionContextKeys"), m_JSON_Values.Companion_JSON_.Create_Array_(_4_tmp)))) - } - } else { - return m_Wrappers.Companion_Result_.Create_Success_(_dafny.SeqOf()) - } -} -func (_static *CompanionStruct_Default___) EncryptionContextToJson(key _dafny.Sequence, m _dafny.Map) m_Wrappers.Result { - var _0_keys _dafny.Sequence = m_SortedSets.SetToOrderedSequence2((m).Keys(), func(coer3 func(uint8, uint8) bool) func(interface{}, interface{}) bool { - return func(arg3 interface{}, arg4 interface{}) bool { - return coer3(arg3.(uint8), arg4.(uint8)) - } - }(func(_1_a uint8, _2_b uint8) bool { - return (_1_a) < (_2_b) - })) - _ = _0_keys - var _3_valueOrError0 m_Wrappers.Result = m_Seq.Companion_Default___.MapWithResult(func(coer4 func(_dafny.Sequence) m_Wrappers.Result) func(interface{}) m_Wrappers.Result { - return func(arg5 interface{}) m_Wrappers.Result { - return coer4(arg5.(_dafny.Sequence)) - } - }((func(_4_m _dafny.Map) func(_dafny.Sequence) m_Wrappers.Result { - return func(_5_k _dafny.Sequence) m_Wrappers.Result { - return func(_pat_let2_0 m_Wrappers.Result) m_Wrappers.Result { - return func(_6_valueOrError1 m_Wrappers.Result) m_Wrappers.Result { - return (func() m_Wrappers.Result { - if (_6_valueOrError1).IsFailure() { - return (_6_valueOrError1).PropagateFailure() - } - return func(_pat_let3_0 _dafny.Sequence) m_Wrappers.Result { - return func(_7_key _dafny.Sequence) m_Wrappers.Result { - return func(_pat_let4_0 m_Wrappers.Result) m_Wrappers.Result { - return func(_8_valueOrError2 m_Wrappers.Result) m_Wrappers.Result { - return (func() m_Wrappers.Result { - if (_8_valueOrError2).IsFailure() { - return (_8_valueOrError2).PropagateFailure() - } - return func(_pat_let5_0 _dafny.Sequence) m_Wrappers.Result { - return func(_9_value _dafny.Sequence) m_Wrappers.Result { - return m_Wrappers.Companion_Result_.Create_Success_(_dafny.TupleOf(_7_key, m_JSON_Values.Companion_JSON_.Create_String_(_9_value))) - }(_pat_let5_0) - }((_8_valueOrError2).Extract().(_dafny.Sequence)) - })() - }(_pat_let4_0) - }(m_UTF8.Decode((_4_m).Get(_5_k).(_dafny.Sequence))) - }(_pat_let3_0) - }((_6_valueOrError1).Extract().(_dafny.Sequence)) - })() - }(_pat_let2_0) - }(m_UTF8.Decode(_5_k)) - } - })(m)), _0_keys) - _ = _3_valueOrError0 - if (_3_valueOrError0).IsFailure() { - return (_3_valueOrError0).PropagateFailure() - } else { - var _10_pairsBytes _dafny.Sequence = (_3_valueOrError0).Extract().(_dafny.Sequence) - _ = _10_pairsBytes - return m_Wrappers.Companion_Result_.Create_Success_(_dafny.SeqOf(_dafny.TupleOf(key, m_JSON_Values.Companion_JSON_.Create_Object_(_10_pairsBytes)))) - } -} -func (_static *CompanionStruct_Default___) PrintJson(j m_JSON_Values.JSON) _dafny.Tuple { - var _hresult _dafny.Tuple = _dafny.TupleOf() - _ = _hresult - _dafny.Print(j) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - _hresult = _dafny.TupleOf() - return _hresult - return _hresult -} -func (_static *CompanionStruct_Default___) EncryptTestVectorToJson(test m_EsdkTestVectors.EsdkEncryptTestVector) m_Wrappers.Result { - var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((((test).Dtor_algorithmSuiteId()).Is_Some()) && (((test).Dtor_frameLength()).Is_Some()), _dafny.SeqOfString("test is missing algorithmSuite ID, or frameLength")) - _ = _0_valueOrError0 - if (_0_valueOrError0).IsFailure() { - return (_0_valueOrError0).PropagateFailure() - } else { - var _1_id _dafny.Sequence = m_AllAlgorithmSuites.Companion_Default___.ToHex(((test).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) - _ = _1_id - var _2_valueOrError1 m_Wrappers.Result = (func() m_Wrappers.Result { - if ((test).Dtor_encryptionContext()).Is_Some() { - return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("encryption-context"), ((test).Dtor_encryptionContext()).Dtor_value().(_dafny.Map)) - } - return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("encryption-context"), _dafny.NewMapBuilder().ToMap()) - })() - _ = _2_valueOrError1 - if (_2_valueOrError1).IsFailure() { - return (_2_valueOrError1).PropagateFailure() - } else { - var _3_encryptionContext _dafny.Sequence = (_2_valueOrError1).Extract().(_dafny.Sequence) - _ = _3_encryptionContext - var _4_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((_3_encryptionContext).Cardinality())).Cmp(_dafny.One) == 0, _dafny.SeqOfString("Error parsing encryption context")) - _ = _4_valueOrError2 - if (_4_valueOrError2).IsFailure() { - return (_4_valueOrError2).PropagateFailure() - } else { - var _5_valueOrError3 m_Wrappers.Result = (func() m_Wrappers.Result { - if ((test).Dtor_reproducedEncryptionContext()).Is_Some() { - return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("reproduced-encryption-context"), ((test).Dtor_reproducedEncryptionContext()).Dtor_value().(_dafny.Map)) - } - return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("reproduced-encryption-context"), _dafny.NewMapBuilder().ToMap()) - })() - _ = _5_valueOrError3 - if (_5_valueOrError3).IsFailure() { - return (_5_valueOrError3).PropagateFailure() - } else { - var _6_reproducedEncryptionContext _dafny.Sequence = (_5_valueOrError3).Extract().(_dafny.Sequence) - _ = _6_reproducedEncryptionContext - var _7_optionalValues _dafny.Sequence = _dafny.Companion_Sequence_.Concatenate(_3_encryptionContext, _6_reproducedEncryptionContext) - _ = _7_optionalValues - var _source0 m_EsdkTestVectors.EsdkEncryptTestVector = test - _ = _source0 - { - if _source0.Is_PositiveEncryptTestVector() { - var _8_valueOrError4 m_Wrappers.Result = m_KeyDescription.Companion_Default___.ToJson((test).Dtor_encryptDescriptions(), _dafny.IntOfInt64(3)) - _ = _8_valueOrError4 - if (_8_valueOrError4).IsFailure() { - return (_8_valueOrError4).PropagateFailure() - } else { - var _9_encrypt m_JSON_Values.JSON = (_8_valueOrError4).Extract().(m_JSON_Values.JSON) - _ = _9_encrypt - var _10_valueOrError5 m_Wrappers.Result = m_KeyDescription.Companion_Default___.ToJson((test).Dtor_decryptDescriptions(), _dafny.IntOfInt64(3)) - _ = _10_valueOrError5 - if (_10_valueOrError5).IsFailure() { - return (_10_valueOrError5).PropagateFailure() - } else { - var _11_decrypt m_JSON_Values.JSON = (_10_valueOrError5).Extract().(m_JSON_Values.JSON) - _ = _11_decrypt - var _12_scenario m_JSON_Values.JSON = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("type"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("positive-esdk"))), _dafny.TupleOf(_dafny.SeqOfString("plaintext"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("small"))), _dafny.TupleOf(_dafny.SeqOfString("description"), m_JSON_Values.Companion_JSON_.Create_String_((test).Dtor_description())), _dafny.TupleOf(_dafny.SeqOfString("algorithmSuiteId"), m_JSON_Values.Companion_JSON_.Create_String_(_1_id)), _dafny.TupleOf(_dafny.SeqOfString("frame-size"), m_JSON_Values.Companion_JSON_.Create_Number_(m_JSON_Values.Companion_Default___.Int(_dafny.IntOfInt64(((test).Dtor_frameLength()).Dtor_value().(int64))))), _dafny.TupleOf(_dafny.SeqOfString("encryptKeyDescription"), _9_encrypt), _dafny.TupleOf(_dafny.SeqOfString("decryptKeyDescription"), _11_decrypt)), _7_optionalValues)) - _ = _12_scenario - return m_Wrappers.Companion_Result_.Create_Success_(m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("encryption-scenario"), _12_scenario)))) - } - } - } - } - { - return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Only Positive Tests supported :(")) - } - } - } - } - } -} -func (_static *CompanionStruct_Default___) OptionalBytes(key _dafny.Sequence, secret m_Wrappers.Option) _dafny.Sequence { - if (secret).Is_Some() { - var _0_base64 _dafny.Sequence = m_Base64.Companion_Default___.Encode((secret).Dtor_value().(_dafny.Sequence)) - _ = _0_base64 - return _dafny.SeqOf(_dafny.TupleOf(key, m_JSON_Values.Companion_JSON_.Create_String_(_0_base64))) - } else { - return _dafny.SeqOf() - } -} -func (_static *CompanionStruct_Default___) DecryptTestVectorToJson(test m_EsdkTestVectors.EsdkDecryptTestVector) m_Wrappers.Result { - var _0_valueOrError0 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((((test).Dtor_algorithmSuiteId()).Is_Some()) && (((test).Dtor_frameLength()).Is_Some()), _dafny.SeqOfString("test is missing algorithmSuite ID, or frameLength")) - _ = _0_valueOrError0 - if (_0_valueOrError0).IsFailure() { - return (_0_valueOrError0).PropagateFailure() - } else { - var _1_id _dafny.Sequence = m_AllAlgorithmSuites.Companion_Default___.ToHex(((test).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) - _ = _1_id - var _2_description _dafny.Sequence = _dafny.Companion_Sequence_.Concatenate(_dafny.Companion_Sequence_.Concatenate((test).Dtor_description(), _dafny.SeqOfString(" ")), _1_id) - _ = _2_description - var _3_valueOrError1 m_Wrappers.Result = (func() m_Wrappers.Result { - if ((test).Dtor_reproducedEncryptionContext()).Is_Some() { - return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("reproduced-encryption-context"), ((test).Dtor_reproducedEncryptionContext()).Dtor_value().(_dafny.Map)) - } - return Companion_Default___.EncryptionContextToJson(_dafny.SeqOfString("reproduced-encryption-context"), _dafny.NewMapBuilder().ToMap()) - })() - _ = _3_valueOrError1 - if (_3_valueOrError1).IsFailure() { - return (_3_valueOrError1).PropagateFailure() - } else { - var _4_reproducedEncryptionContext _dafny.Sequence = (_3_valueOrError1).Extract().(_dafny.Sequence) - _ = _4_reproducedEncryptionContext - var _5_valueOrError2 m_Wrappers.Outcome = m_Wrappers.Companion_Default___.Need((_dafny.IntOfUint32((_4_reproducedEncryptionContext).Cardinality())).Cmp(_dafny.One) == 0, _dafny.SeqOfString("Error parsing encryption context")) - _ = _5_valueOrError2 - if (_5_valueOrError2).IsFailure() { - return (_5_valueOrError2).PropagateFailure() - } else { - var _6_optionalValues _dafny.Sequence = _4_reproducedEncryptionContext - _ = _6_optionalValues - var _source0 m_EsdkTestVectors.EsdkDecryptTestVector = test - _ = _source0 - { - if _source0.Is_PositiveDecryptTestVector() { - var _7_valueOrError3 m_Wrappers.Result = m_KeyDescription.Companion_Default___.ToJson((test).Dtor_decryptDescriptions(), _dafny.IntOfInt64(3)) - _ = _7_valueOrError3 - if (_7_valueOrError3).IsFailure() { - return (_7_valueOrError3).PropagateFailure() - } else { - var _8_decrypt m_JSON_Values.JSON = (_7_valueOrError3).Extract().(m_JSON_Values.JSON) - _ = _8_decrypt - var _9_scenario m_JSON_Values.JSON = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("type"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("positive-esdk"))), _dafny.TupleOf(_dafny.SeqOfString("ciphertext"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOfString("file://ciphertexts/"), (test).Dtor_id()))), _dafny.TupleOf(_dafny.SeqOfString("result"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.Companion_Sequence_.Concatenate(_dafny.SeqOfString("file://"), (test).Dtor_plaintextPath()))), _dafny.TupleOf(_dafny.SeqOfString("algorithmSuiteId"), m_JSON_Values.Companion_JSON_.Create_String_(_1_id)), _dafny.TupleOf(_dafny.SeqOfString("frame-size"), m_JSON_Values.Companion_JSON_.Create_Number_(m_JSON_Values.Companion_Default___.Int(_dafny.IntOfInt64(((test).Dtor_frameLength()).Dtor_value().(int64))))), _dafny.TupleOf(_dafny.SeqOfString("description"), m_JSON_Values.Companion_JSON_.Create_String_((test).Dtor_description())), _dafny.TupleOf(_dafny.SeqOfString("decryptKeyDescription"), _8_decrypt)), _6_optionalValues)) - _ = _9_scenario - return m_Wrappers.Companion_Result_.Create_Success_(m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("decryption-scenario"), _9_scenario)))) - } - } - } - { - return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Only Positive Tests supported :(")) - } - } - } - } -} - -// End of class Default__ diff --git a/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteVectors/WriteVectors.go b/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteVectors/WriteVectors.go deleted file mode 100644 index 1ec43f0fd..000000000 --- a/TestVectors/runtimes/go/ImplementationFromDafny-go/WriteVectors/WriteVectors.go +++ /dev/null @@ -1,657 +0,0 @@ -// Package WriteVectors -// Dafny module WriteVectors compiled into Go - -package WriteVectors - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" - m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" - m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" - m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_SortedSets "github.com/dafny-lang/DafnyStandardLibGo/SortedSets" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UUID "github.com/dafny-lang/DafnyStandardLibGo/UUID" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ -var _ m_WrappedESDK.Dummy__ -var _ m_EsdkManifestOptions.Dummy__ -var _ m_EsdkTestVectors.Dummy__ -var _ m_AllEsdkV4NoReqEc.Dummy__ -var _ m_AllEsdkV4WithReqEc.Dummy__ -var _ m_WriteEsdkJsonManifests.Dummy__ - -type Dummy__ struct{} - -// Definition of class Default__ -type Default__ struct { - dummy byte -} - -func New_Default___() *Default__ { - _this := Default__{} - - return &_this -} - -type CompanionStruct_Default___ struct { -} - -var Companion_Default___ = CompanionStruct_Default___{} - -func (_this *Default__) Equals(other *Default__) bool { - return _this == other -} - -func (_this *Default__) EqualsGeneric(x interface{}) bool { - other, ok := x.(*Default__) - return ok && _this.Equals(other) -} - -func (*Default__) String() string { - return "WriteVectors.Default__" -} -func (_this *Default__) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = &Default__{} - -func (_static *CompanionStruct_Default___) GetCommitmentPolicyString(algorithmSuite m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo) _dafny.Sequence { - var _source0 m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteId = (algorithmSuite).Dtor_id() - _ = _source0 - { - if _source0.Is_ESDK() { - if ((algorithmSuite).Dtor_commitment()).Is_None() { - return _dafny.SeqOfString("FORBID_ENCRYPT_ALLOW_DECRYPT") - } else { - return _dafny.SeqOfString("REQUIRE_ENCRYPT_REQUIRE_DECRYPT") - } - } - } - { - return _dafny.SeqOfString("NOT SUPPORTED FOR UNSTRUCTURED ENCRYPTION") - } -} -func (_static *CompanionStruct_Default___) GetCommitmentPolicyType(commitmentPolicy _dafny.Sequence) m_AwsCryptographyMaterialProvidersTypes.CommitmentPolicy { - if _dafny.Companion_Sequence_.Equal(commitmentPolicy, _dafny.SeqOfString("FORBID_ENCRYPT_ALLOW_DECRYPT")) { - return m_AwsCryptographyMaterialProvidersTypes.Companion_CommitmentPolicy_.Create_ESDK_(m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_FORBID__ENCRYPT__ALLOW__DECRYPT_()) - } else { - return m_AwsCryptographyMaterialProvidersTypes.Companion_CommitmentPolicy_.Create_ESDK_(m_AwsCryptographyMaterialProvidersTypes.Companion_ESDKCommitmentPolicy_.Create_REQUIRE__ENCRYPT__REQUIRE__DECRYPT_()) - } -} -func (_static *CompanionStruct_Default___) WriteTestVectors(op m_EsdkManifestOptions.ManifestOptions) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) - _ = output - var _0_version _dafny.Int - _ = _0_version - _0_version = (op).Dtor_version() - var _1_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySet) - _ = _1_valueOrError0 - _1_valueOrError0 = Companion_Default___.GetVersionTests(_0_version) - if (_1_valueOrError0).IsFailure() { - output = (_1_valueOrError0).PropagateFailure() - return output - } - var _2_allTests _dafny.Set - _ = _2_allTests - _2_allTests = (_1_valueOrError0).Extract().(_dafny.Set) - var _3_tests _dafny.Sequence - _ = _3_tests - var _out0 _dafny.Sequence - _ = _out0 - _out0 = m_SortedSets.SetToSequence(_2_allTests) - _3_tests = _out0 - var _4_sortedTests _dafny.Sequence - _ = _4_sortedTests - _4_sortedTests = m_Seq_MergeSort.Companion_Default___.MergeSortBy(_3_tests, func(coer5 func(m_EsdkTestVectors.EsdkEncryptTestVector, m_EsdkTestVectors.EsdkEncryptTestVector) bool) func(interface{}, interface{}) bool { - return func(arg6 interface{}, arg7 interface{}) bool { - return coer5(arg6.(m_EsdkTestVectors.EsdkEncryptTestVector), arg7.(m_EsdkTestVectors.EsdkEncryptTestVector)) - } - }(Companion_Default___.DescriptionLessThan)) - var _5_testsJSON _dafny.Sequence - _ = _5_testsJSON - _5_testsJSON = _dafny.SeqOf() - var _hi0 _dafny.Int = _dafny.IntOfUint32((_4_sortedTests).Cardinality()) - _ = _hi0 - for _6_i := _dafny.Zero; _6_i.Cmp(_hi0) < 0; _6_i = _6_i.Plus(_dafny.One) { - var _7_valueOrError1 m_Wrappers.Outcome = m_Wrappers.Companion_Outcome_.Default() - _ = _7_valueOrError1 - _7_valueOrError1 = m_Wrappers.Companion_Default___.Need((true) && ((((_4_sortedTests).Select((_6_i).Uint32()).(m_EsdkTestVectors.EsdkEncryptTestVector)).Dtor_algorithmSuiteId()).Is_Some()), _dafny.SeqOfString("No algorithm suite defined in test")) - if (_7_valueOrError1).IsFailure() { - output = (_7_valueOrError1).PropagateFailure() - return output - } - var _8_id _dafny.Sequence - _ = _8_id - _8_id = m_AllAlgorithmSuites.Companion_Default___.ToHex((((_4_sortedTests).Select((_6_i).Uint32()).(m_EsdkTestVectors.EsdkEncryptTestVector)).Dtor_algorithmSuiteId()).Dtor_value().(m_AwsCryptographyMaterialProvidersTypes.AlgorithmSuiteInfo)) - var _9_valueOrError2 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq.SetString()) - _ = _9_valueOrError2 - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = m_UUID.GenerateUUID() - _9_valueOrError2 = _out1 - if !(!((_9_valueOrError2).IsFailure())) { - panic("dafny/TestVectors/src/WriteVectors.dfy(82,18): " + (_9_valueOrError2).String()) - } - var _10_uuid _dafny.Sequence - _ = _10_uuid - _10_uuid = (_9_valueOrError2).Extract().(_dafny.Sequence) - var _11_valueOrError3 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(m_JSON_Values.Companion_JSON_.Default()) - _ = _11_valueOrError3 - _11_valueOrError3 = m_WriteEsdkJsonManifests.Companion_Default___.EncryptTestVectorToJson((_4_sortedTests).Select((_6_i).Uint32()).(m_EsdkTestVectors.EsdkEncryptTestVector)) - if (_11_valueOrError3).IsFailure() { - output = (_11_valueOrError3).PropagateFailure() - return output - } - var _12_test m_JSON_Values.JSON - _ = _12_test - _12_test = (_11_valueOrError3).Extract().(m_JSON_Values.JSON) - _5_testsJSON = _dafny.Companion_Sequence_.Concatenate(_5_testsJSON, _dafny.SeqOf(_dafny.TupleOf(_10_uuid, _12_test))) - } - var _13_manifestJson m_JSON_Values.JSON - _ = _13_manifestJson - _13_manifestJson = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("type"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("awses-encrypt"))), _dafny.TupleOf(_dafny.SeqOfString("version"), m_JSON_Values.Companion_JSON_.Create_Number_(m_JSON_Values.Companion_Default___.Int(_dafny.IntOfInt64(5)))))) - var _14_plaintexts m_JSON_Values.JSON - _ = _14_plaintexts - _14_plaintexts = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("small"), m_JSON_Values.Companion_JSON_.Create_Number_(m_JSON_Values.Companion_Default___.Int(_dafny.IntOfInt64(10240)))))) - var _15_esdkEncryptManifests m_JSON_Values.JSON - _ = _15_esdkEncryptManifests - _15_esdkEncryptManifests = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("manifest"), _13_manifestJson), _dafny.TupleOf(_dafny.SeqOfString("keys"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("file://keys.json"))), _dafny.TupleOf(_dafny.SeqOfString("plaintexts"), _14_plaintexts), _dafny.TupleOf(_dafny.SeqOfString("tests"), m_JSON_Values.Companion_JSON_.Create_Object_(_5_testsJSON)))) - var _16_valueOrError4 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _16_valueOrError4 - _16_valueOrError4 = m_JSON_API.Companion_Default___.Serialize(_15_esdkEncryptManifests) - if !(!((_16_valueOrError4).IsFailure())) { - panic("dafny/TestVectors/src/WriteVectors.dfy(102,36): " + (_16_valueOrError4).String()) - } - var _17_esdkEncryptManifestBytes _dafny.Sequence - _ = _17_esdkEncryptManifestBytes - _17_esdkEncryptManifestBytes = (_16_valueOrError4).Extract().(_dafny.Sequence) - var _18_esdkEncryptManifestBv _dafny.Sequence - _ = _18_esdkEncryptManifestBv - _18_esdkEncryptManifestBv = m_JSONHelpers.Companion_Default___.BytesBv(_17_esdkEncryptManifestBytes) - var _19_valueOrError5 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) - _ = _19_valueOrError5 - var _out2 m_Wrappers.Result - _ = _out2 - _out2 = m_FileIO.Companion_Default___.WriteBytesToFile(_dafny.Companion_Sequence_.Concatenate((op).Dtor_encryptManifestOutput(), _dafny.SeqOfString("encrypt-manifest.json")), _18_esdkEncryptManifestBv) - _19_valueOrError5 = _out2 - if !(!((_19_valueOrError5).IsFailure())) { - panic("dafny/TestVectors/src/WriteVectors.dfy(105,13): " + (_19_valueOrError5).String()) - } - var _20___v2 _dafny.Tuple - _ = _20___v2 - _20___v2 = (_19_valueOrError5).Extract().(_dafny.Tuple) - output = m_Wrappers.Companion_Result_.Create_Success_(_dafny.TupleOf()) - return output -} -func (_static *CompanionStruct_Default___) WriteDecryptManifest(op m_EsdkManifestOptions.ManifestOptions, keys *m_KeyVectors.KeyVectorsClient, tests _dafny.Sequence) m_Wrappers.Result { - var output m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) - _ = output - var _0_testsJSON _dafny.Sequence - _ = _0_testsJSON - _0_testsJSON = _dafny.SeqOf() - var _hi0 _dafny.Int = _dafny.IntOfUint32((tests).Cardinality()) - _ = _hi0 - for _1_i := _dafny.Zero; _1_i.Cmp(_hi0) < 0; _1_i = _1_i.Plus(_dafny.One) { - var _2_name _dafny.Sequence - _ = _2_name - _2_name = ((tests).Select((_1_i).Uint32()).(m_EsdkTestVectors.EsdkDecryptTestVector)).Dtor_id() - var _3_valueOrError0 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(m_JSON_Values.Companion_JSON_.Default()) - _ = _3_valueOrError0 - _3_valueOrError0 = m_WriteEsdkJsonManifests.Companion_Default___.DecryptTestVectorToJson((tests).Select((_1_i).Uint32()).(m_EsdkTestVectors.EsdkDecryptTestVector)) - if (_3_valueOrError0).IsFailure() { - output = (_3_valueOrError0).PropagateFailure() - return output - } - var _4_test m_JSON_Values.JSON - _ = _4_test - _4_test = (_3_valueOrError0).Extract().(m_JSON_Values.JSON) - _0_testsJSON = _dafny.Companion_Sequence_.Concatenate(_0_testsJSON, _dafny.SeqOf(_dafny.TupleOf(_2_name, _4_test))) - } - var _5_manifestJson m_JSON_Values.JSON - _ = _5_manifestJson - _5_manifestJson = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("type"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("awses-decrypt"))), _dafny.TupleOf(_dafny.SeqOfString("version"), m_JSON_Values.Companion_JSON_.Create_Number_(m_JSON_Values.Companion_Default___.Int(_dafny.IntOfInt64(3)))))) - var _6_esdkDecryptManifest m_JSON_Values.JSON - _ = _6_esdkDecryptManifest - _6_esdkDecryptManifest = m_JSON_Values.Companion_JSON_.Create_Object_(_dafny.SeqOf(_dafny.TupleOf(_dafny.SeqOfString("manifest"), _5_manifestJson), _dafny.TupleOf(_dafny.SeqOfString("client"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("aws-encryption-sdk-dafny"))), _dafny.TupleOf(_dafny.SeqOfString("keys"), m_JSON_Values.Companion_JSON_.Create_String_(_dafny.SeqOfString("file://keys.json"))), _dafny.TupleOf(_dafny.SeqOfString("tests"), m_JSON_Values.Companion_JSON_.Create_Object_(_0_testsJSON)))) - var _7_valueOrError1 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.EmptySeq) - _ = _7_valueOrError1 - _7_valueOrError1 = m_JSON_API.Companion_Default___.Serialize(_6_esdkDecryptManifest) - if !(!((_7_valueOrError1).IsFailure())) { - panic("dafny/TestVectors/src/WriteVectors.dfy(146,36): " + (_7_valueOrError1).String()) - } - var _8_esdkDecryptManifestBytes _dafny.Sequence - _ = _8_esdkDecryptManifestBytes - _8_esdkDecryptManifestBytes = (_7_valueOrError1).Extract().(_dafny.Sequence) - var _9_esdkDecryptManifestBv _dafny.Sequence - _ = _9_esdkDecryptManifestBv - _9_esdkDecryptManifestBv = m_JSONHelpers.Companion_Default___.BytesBv(_8_esdkDecryptManifestBytes) - var _10_valueOrError2 m_Wrappers.Result = m_Wrappers.Companion_Result_.Default(_dafny.TupleOf()) - _ = _10_valueOrError2 - var _out0 m_Wrappers.Result - _ = _out0 - _out0 = m_FileIO.Companion_Default___.WriteBytesToFile(_dafny.Companion_Sequence_.Concatenate((op).Dtor_decryptManifestOutput(), _dafny.SeqOfString("decrypt-manifest.json")), _9_esdkDecryptManifestBv) - _10_valueOrError2 = _out0 - if !(!((_10_valueOrError2).IsFailure())) { - panic("dafny/TestVectors/src/WriteVectors.dfy(149,13): " + (_10_valueOrError2).String()) - } - var _11___v3 _dafny.Tuple - _ = _11___v3 - _11___v3 = (_10_valueOrError2).Extract().(_dafny.Tuple) - output = m_Wrappers.Companion_Result_.Create_Success_(_dafny.TupleOf()) - return output -} -func (_static *CompanionStruct_Default___) GetVersionTests(version _dafny.Int) m_Wrappers.Result { - var _source0 _dafny.Int = version - _ = _source0 - { - if (_source0).Cmp(_dafny.IntOfInt64(5)) == 0 { - return m_Wrappers.Companion_Result_.Create_Success_((m_AllEsdkV4NoReqEc.Companion_Default___.Tests()).Union(m_AllEsdkV4WithReqEc.Companion_Default___.Tests())) - } - } - { - return m_Wrappers.Companion_Result_.Create_Failure_(_dafny.SeqOfString("Only version 4 of generate manifest is supported\n")) - } -} -func (_static *CompanionStruct_Default___) DescriptionLessThan(x m_EsdkTestVectors.EsdkEncryptTestVector, y m_EsdkTestVectors.EsdkEncryptTestVector) bool { - return Companion_Default___.Below((x).Dtor_description(), (y).Dtor_description()) -} -func (_static *CompanionStruct_Default___) Below(x _dafny.Sequence, y _dafny.Sequence) bool { - return !((_dafny.IntOfUint32((x).Cardinality())).Sign() != 0) || ((((_dafny.IntOfUint32((y).Cardinality())).Sign() != 0) && (((x).Select(0).(_dafny.Char)) <= ((y).Select(0).(_dafny.Char)))) && (!(((x).Select(0).(_dafny.Char)) == ((y).Select(0).(_dafny.Char))) || (Companion_Default___.Below((x).Drop(1), (y).Drop(1))))) -} - -// End of class Default__ diff --git a/TestVectors/runtimes/go/TestsFromDafny-go/TestWrappedESDKMain/TestWrappedESDKMain.go b/TestVectors/runtimes/go/TestsFromDafny-go/TestWrappedESDKMain/TestWrappedESDKMain.go deleted file mode 100644 index 63b2aab13..000000000 --- a/TestVectors/runtimes/go/TestsFromDafny-go/TestWrappedESDKMain/TestWrappedESDKMain.go +++ /dev/null @@ -1,525 +0,0 @@ -// Package TestWrappedESDKMain -// Dafny module TestWrappedESDKMain compiled into Go - -package TestWrappedESDKMain - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" - m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" - m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" - m_EsdkTestManifests "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestManifests" - m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" - m_ParseEsdkJsonManifest "github.com/aws/aws-encryption-sdk/testvectors/ParseEsdkJsonManifest" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m_WrappedESDKMain "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDKMain" - m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" - m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_WrappedESDK.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_EsdkManifestOptions.Dummy__ -var _ m_EsdkTestVectors.Dummy__ -var _ m_AllEsdkV4NoReqEc.Dummy__ -var _ m_AllEsdkV4WithReqEc.Dummy__ -var _ m_WriteEsdkJsonManifests.Dummy__ -var _ m_WriteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_ParseEsdkJsonManifest.Dummy__ -var _ m_EsdkTestManifests.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_WrappedESDKMain.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ - -type Dummy__ struct{} - -// Definition of class Default__ -type Default__ struct { - dummy byte -} - -func New_Default___() *Default__ { - _this := Default__{} - - return &_this -} - -type CompanionStruct_Default___ struct { -} - -var Companion_Default___ = CompanionStruct_Default___{} - -func (_this *Default__) Equals(other *Default__) bool { - return _this == other -} - -func (_this *Default__) EqualsGeneric(x interface{}) bool { - other, ok := x.(*Default__) - return ok && _this.Equals(other) -} - -func (*Default__) String() string { - return "TestWrappedESDKMain.Default__" -} -func (_this *Default__) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = &Default__{} - -func (_static *CompanionStruct_Default___) RunManifestTests() { - Companion_Default___.TestGenerateEncryptManifest() - Companion_Default___.TestEncryptManifest() - Companion_Default___.TestDecryptManifest() -} -func (_static *CompanionStruct_Default___) TestGenerateEncryptManifest() { - var _0_directory _dafny.Sequence - _ = _0_directory - var _out0 _dafny.Sequence - _ = _out0 - _out0 = GetTestVectorExecutionDirectory() - _0_directory = _out0 - var _1_result m_Wrappers.Result - _ = _1_result - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = m_WriteVectors.Companion_Default___.WriteTestVectors(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_EncryptManifest_(_dafny.Companion_Sequence_.Concatenate(_0_directory, _dafny.SeqOfString("dafny/TestVectors/test/")), _dafny.IntOfInt64(5))) - _1_result = _out1 - if (_1_result).Is_Failure() { - _dafny.Print(((_1_result).Dtor_error().(_dafny.Sequence)).SetString()) - } - if !((_1_result).Is_Success()) { - panic("dafny/TestVectors/test/RunMain.dfy(38,4): " + (_dafny.SeqOfString("expectation violation")).String()) - } -} -func (_static *CompanionStruct_Default___) TestEncryptManifest() { - var _0_directory _dafny.Sequence - _ = _0_directory - var _out0 _dafny.Sequence - _ = _out0 - _out0 = GetTestVectorExecutionDirectory() - _0_directory = _out0 - var _1_result m_Wrappers.Result - _ = _1_result - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = m_EsdkTestManifests.Companion_Default___.StartEncryptVectors(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_Encrypt_(_dafny.Companion_Sequence_.Concatenate(_0_directory, _dafny.SeqOfString("dafny/TestVectors/test/")), _dafny.SeqOfString("encrypt-manifest.json"), _dafny.Companion_Sequence_.Concatenate(_0_directory, _dafny.SeqOfString("dafny/TestVectors/test/")), m_Wrappers.Companion_Option_.Create_None_())) - _1_result = _out1 - if (_1_result).Is_Failure() { - _dafny.Print(((_1_result).Dtor_error().(_dafny.Sequence)).SetString()) - } - if !((_1_result).Is_Success()) { - panic("dafny/TestVectors/test/RunMain.dfy(53,4): " + (_dafny.SeqOfString("expectation violation")).String()) - } -} -func (_static *CompanionStruct_Default___) TestDecryptManifest() { - var _0_directory _dafny.Sequence - _ = _0_directory - var _out0 _dafny.Sequence - _ = _out0 - _out0 = GetTestVectorExecutionDirectory() - _0_directory = _out0 - var _1_result m_Wrappers.Result - _ = _1_result - var _out1 m_Wrappers.Result - _ = _out1 - _out1 = m_EsdkTestManifests.Companion_Default___.StartDecryptVectors(m_EsdkManifestOptions.Companion_ManifestOptions_.Create_Decrypt_(_dafny.Companion_Sequence_.Concatenate(_0_directory, _dafny.SeqOfString("dafny/TestVectors/test/")), _dafny.SeqOfString("decrypt-manifest.json"), m_Wrappers.Companion_Option_.Create_None_())) - _1_result = _out1 - if (_1_result).Is_Failure() { - _dafny.Print(((_1_result).Dtor_error().(_dafny.Sequence)).SetString()) - } - if !((_1_result).Is_Success()) { - panic("dafny/TestVectors/test/RunMain.dfy(69,4): " + (_dafny.SeqOfString("expectation violation")).String()) - } -} - -// End of class Default__ diff --git a/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny-go.dtr b/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny-go.dtr deleted file mode 100644 index 5067e0c75..000000000 --- a/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny-go.dtr +++ /dev/null @@ -1,5 +0,0 @@ -file_format_version = "1.0" -dafny_version = "4.9.1.0" -[options_by_module.TestWrappedESDKMain] -go-module-name = "github.com/aws/aws-encryption-sdk/testvectors/test" -legacy-module-names = false diff --git a/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny.go b/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny.go deleted file mode 100644 index 6a75540ca..000000000 --- a/TestVectors/runtimes/go/TestsFromDafny-go/TestsFromDafny.go +++ /dev/null @@ -1,489 +0,0 @@ -// Dafny program the_program compiled into Go -package main - -import ( - os "os" - - m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/ComAmazonawsDynamodbTypes" - m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/dynamodb/Com_Amazonaws_Dynamodb" - m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/kms/ComAmazonawsKmsTypes" - m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/kms/Com_Amazonaws_Kms" - m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/mpl/AlgorithmSuites" - m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsArnParsing" - m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreOperations" - m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyKeyStoreTypes" - m_AwsCryptographyMaterialProvidersOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersOperations" - m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsCryptographyMaterialProvidersTypes" - m_AwsKmsDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsDiscoveryKeyring" - m_AwsKmsEcdhKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsEcdhKeyring" - m_AwsKmsHierarchicalKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsHierarchicalKeyring" - m_AwsKmsKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsKeyring" - m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkAreUnique" - m_AwsKmsMrkDiscoveryKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkDiscoveryKeyring" - m_AwsKmsMrkKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkKeyring" - m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsMrkMatchForDecrypt" - m_AwsKmsRsaKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsRsaKeyring" - m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/mpl/AwsKmsUtils" - m_CMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/CMM" - m_CacheConstants "github.com/aws/aws-cryptographic-material-providers-library/mpl/CacheConstants" - m_CanonicalEncryptionContext "github.com/aws/aws-cryptographic-material-providers-library/mpl/CanonicalEncryptionContext" - m_Commitment "github.com/aws/aws-cryptographic-material-providers-library/mpl/Commitment" - m_Constants "github.com/aws/aws-cryptographic-material-providers-library/mpl/Constants" - m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeyStoreTable" - m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/CreateKeys" - m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/DDBKeystoreOperations" - m_DefaultCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultCMM" - m_DefaultClientSupplier "github.com/aws/aws-cryptographic-material-providers-library/mpl/DefaultClientSupplier" - m_Defaults "github.com/aws/aws-cryptographic-material-providers-library/mpl/Defaults" - m_DiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/DiscoveryMultiKeyring" - m_EcdhEdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EcdhEdkWrapping" - m_EdkWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/EdkWrapping" - m_ErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/ErrorMessages" - m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/mpl/GetKeys" - m_IntermediateKeyWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/IntermediateKeyWrapping" - m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/mpl/KMSKeystoreOperations" - m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStore" - m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/mpl/KeyStoreErrorMessages" - m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/Keyring" - m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/mpl/KmsArn" - m_LocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/LocalCMC" - m_MaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialProviders" - m_MaterialWrapping "github.com/aws/aws-cryptographic-material-providers-library/mpl/MaterialWrapping" - m_Materials "github.com/aws/aws-cryptographic-material-providers-library/mpl/Materials" - m_MrkAwareDiscoveryMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareDiscoveryMultiKeyring" - m_MrkAwareStrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MrkAwareStrictMultiKeyring" - m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/MultiKeyring" - m_RawAESKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawAESKeyring" - m_RawECDHKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawECDHKeyring" - m_RawRSAKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/RawRSAKeyring" - m_RequiredEncryptionContextCMM "github.com/aws/aws-cryptographic-material-providers-library/mpl/RequiredEncryptionContextCMM" - m_StormTracker "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTracker" - m_StormTrackingCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/StormTrackingCMC" - m_StrictMultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/mpl/StrictMultiKeyring" - m_Structure "github.com/aws/aws-cryptographic-material-providers-library/mpl/Structure" - m_SynchronizedLocalCMC "github.com/aws/aws-cryptographic-material-providers-library/mpl/SynchronizedLocalCMC" - m_Utils "github.com/aws/aws-cryptographic-material-providers-library/mpl/Utils" - m_AESEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/AESEncryption" - m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/primitives/AtomicPrimitives" - m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesOperations" - m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/primitives/AwsCryptographyPrimitivesTypes" - m_Digest "github.com/aws/aws-cryptographic-material-providers-library/primitives/Digest" - m_ECDH "github.com/aws/aws-cryptographic-material-providers-library/primitives/ECDH" - m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/HKDF" - m_HMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/HMAC" - m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/primitives/KdfCtr" - m_RSAEncryption "github.com/aws/aws-cryptographic-material-providers-library/primitives/RSAEncryption" - m_Random "github.com/aws/aws-cryptographic-material-providers-library/primitives/Random" - m_Signature "github.com/aws/aws-cryptographic-material-providers-library/primitives/Signature" - m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHKDF" - m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/primitives/WrappedHMAC" - m_AllAlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllAlgorithmSuites" - m_AllDefaultCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllDefaultCmm" - m_AllHierarchy "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllHierarchy" - m_AllKms "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKms" - m_AllKmsEcdh "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsEcdh" - m_AllKmsMrkAware "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAware" - m_AllKmsMrkAwareDiscovery "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsMrkAwareDiscovery" - m_AllKmsRsa "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllKmsRsa" - m_AllMulti "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllMulti" - m_AllRawAES "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawAES" - m_AllRawECDH "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawECDH" - m_AllRawRSA "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRawRSA" - m_AllRequiredEncryptionContextCmm "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AllRequiredEncryptionContextCmm" - m_AwsCryptographyMaterialProvidersTestVectorKeysTypes "github.com/aws/aws-cryptographic-material-providers-library/testvectors/AwsCryptographyMaterialProvidersTestVectorKeysTypes" - m_CmmFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CmmFromKeyDescription" - m_CompleteVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CompleteVectors" - m_CreateStaticKeyStores "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyStores" - m_CreateStaticKeyrings "github.com/aws/aws-cryptographic-material-providers-library/testvectors/CreateStaticKeyrings" - m_JSONHelpers "github.com/aws/aws-cryptographic-material-providers-library/testvectors/JSONHelpers" - m_KeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyDescription" - m_KeyMaterial "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyMaterial" - m_KeyVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyVectors" - m_KeyringFromKeyDescription "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeyringFromKeyDescription" - m_KeysVectorOperations "github.com/aws/aws-cryptographic-material-providers-library/testvectors/KeysVectorOperations" - m_MplManifestOptions "github.com/aws/aws-cryptographic-material-providers-library/testvectors/MplManifestOptions" - m_ParseJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/ParseJsonManifests" - m_TestManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestManifests" - m_TestVectors "github.com/aws/aws-cryptographic-material-providers-library/testvectors/TestVectors" - m_WrappedMaterialProviders "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProviders" - m_WrappedMaterialProvidersMain "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WrappedMaterialProvidersMain" - m_WriteJsonManifests "github.com/aws/aws-cryptographic-material-providers-library/testvectors/WriteJsonManifests" - m_AwsCryptographyEncryptionSdkTypes "github.com/aws/aws-encryption-sdk/AwsCryptographyEncryptionSdkTypes" - m_AwsEncryptionSdkOperations "github.com/aws/aws-encryption-sdk/AwsEncryptionSdkOperations" - m_EncryptDecryptHelpers "github.com/aws/aws-encryption-sdk/EncryptDecryptHelpers" - m_EncryptedDataKeys "github.com/aws/aws-encryption-sdk/EncryptedDataKeys" - m_EncryptionContext "github.com/aws/aws-encryption-sdk/EncryptionContext" - m_EncryptionSdk "github.com/aws/aws-encryption-sdk/EncryptionSdk" - m_Frames "github.com/aws/aws-encryption-sdk/Frames" - m_Header "github.com/aws/aws-encryption-sdk/Header" - m_HeaderAuth "github.com/aws/aws-encryption-sdk/HeaderAuth" - m_HeaderTypes "github.com/aws/aws-encryption-sdk/HeaderTypes" - m_KeyDerivation "github.com/aws/aws-encryption-sdk/KeyDerivation" - m_MessageBody "github.com/aws/aws-encryption-sdk/MessageBody" - m_SerializableTypes "github.com/aws/aws-encryption-sdk/SerializableTypes" - m_SerializeFunctions "github.com/aws/aws-encryption-sdk/SerializeFunctions" - m_SharedHeaderFunctions "github.com/aws/aws-encryption-sdk/SharedHeaderFunctions" - m_V1HeaderBody "github.com/aws/aws-encryption-sdk/V1HeaderBody" - m_V2HeaderBody "github.com/aws/aws-encryption-sdk/V2HeaderBody" - m_AllEsdkV4NoReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4NoReqEc" - m_AllEsdkV4WithReqEc "github.com/aws/aws-encryption-sdk/testvectors/AllEsdkV4WithReqEc" - m_EsdkManifestOptions "github.com/aws/aws-encryption-sdk/testvectors/EsdkManifestOptions" - m_EsdkTestManifests "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestManifests" - m_EsdkTestVectors "github.com/aws/aws-encryption-sdk/testvectors/EsdkTestVectors" - m_ParseEsdkJsonManifest "github.com/aws/aws-encryption-sdk/testvectors/ParseEsdkJsonManifest" - m_WrappedESDK "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDK" - m_WrappedESDKMain "github.com/aws/aws-encryption-sdk/testvectors/WrappedESDKMain" - m_WriteEsdkJsonManifests "github.com/aws/aws-encryption-sdk/testvectors/WriteEsdkJsonManifests" - m_WriteVectors "github.com/aws/aws-encryption-sdk/testvectors/WriteVectors" - m_TestWrappedESDKMain "github.com/aws/aws-encryption-sdk/testvectors/test/TestWrappedESDKMain" - m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_" - _dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny" - m_Actions "github.com/dafny-lang/DafnyStandardLibGo/Actions" - m_Base64 "github.com/dafny-lang/DafnyStandardLibGo/Base64" - m_Base64Lemmas "github.com/dafny-lang/DafnyStandardLibGo/Base64Lemmas" - m_BoundedInts "github.com/dafny-lang/DafnyStandardLibGo/BoundedInts" - m_DivInternals "github.com/dafny-lang/DafnyStandardLibGo/DivInternals" - m_DivInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/DivInternalsNonlinear" - m_DivMod "github.com/dafny-lang/DafnyStandardLibGo/DivMod" - m_FileIO "github.com/dafny-lang/DafnyStandardLibGo/FileIO" - m_FloatCompare "github.com/dafny-lang/DafnyStandardLibGo/FloatCompare" - m_Functions "github.com/dafny-lang/DafnyStandardLibGo/Functions" - m_GeneralInternals "github.com/dafny-lang/DafnyStandardLibGo/GeneralInternals" - m_GetOpt "github.com/dafny-lang/DafnyStandardLibGo/GetOpt" - m_HexStrings "github.com/dafny-lang/DafnyStandardLibGo/HexStrings" - m_JSON_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_API" - m_JSON_ConcreteSyntax_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_Spec" - m_JSON_ConcreteSyntax_SpecProperties "github.com/dafny-lang/DafnyStandardLibGo/JSON_ConcreteSyntax_SpecProperties" - m_JSON_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer" - m_JSON_Deserializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_ByteStrConversion" - m_JSON_Deserializer_Uint16StrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Deserializer_Uint16StrConversion" - m_JSON_Errors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Errors" - m_JSON_Grammar "github.com/dafny-lang/DafnyStandardLibGo/JSON_Grammar" - m_JSON_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer" - m_JSON_Serializer_ByteStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Serializer_ByteStrConversion" - m_JSON_Spec "github.com/dafny-lang/DafnyStandardLibGo/JSON_Spec" - m_JSON_Utils_Cursors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Cursors" - m_JSON_Utils_Lexers_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Core" - m_JSON_Utils_Lexers_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Lexers_Strings" - m_JSON_Utils_Parsers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Parsers" - m_JSON_Utils_Seq "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Seq" - m_JSON_Utils_Str "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str" - m_JSON_Utils_Str_CharStrConversion "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrConversion" - m_JSON_Utils_Str_CharStrEscaping "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Str_CharStrEscaping" - m_JSON_Utils_Vectors "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Vectors" - m_JSON_Utils_Views_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Core" - m_JSON_Utils_Views_Writers "github.com/dafny-lang/DafnyStandardLibGo/JSON_Utils_Views_Writers" - m_JSON_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_Values" - m_JSON_ZeroCopy_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_API" - m_JSON_ZeroCopy_Deserializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer" - m_JSON_ZeroCopy_Deserializer_API "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_API" - m_JSON_ZeroCopy_Deserializer_ArrayParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ArrayParams" - m_JSON_ZeroCopy_Deserializer_Arrays "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Arrays" - m_JSON_ZeroCopy_Deserializer_Constants "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Constants" - m_JSON_ZeroCopy_Deserializer_Core "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Core" - m_JSON_ZeroCopy_Deserializer_Numbers "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Numbers" - m_JSON_ZeroCopy_Deserializer_ObjectParams "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_ObjectParams" - m_JSON_ZeroCopy_Deserializer_Objects "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Objects" - m_JSON_ZeroCopy_Deserializer_Strings "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Strings" - m_JSON_ZeroCopy_Deserializer_Values "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Deserializer_Values" - m_JSON_ZeroCopy_Serializer "github.com/dafny-lang/DafnyStandardLibGo/JSON_ZeroCopy_Serializer" - m_Logarithm "github.com/dafny-lang/DafnyStandardLibGo/Logarithm" - m__Math "github.com/dafny-lang/DafnyStandardLibGo/Math_" - m_ModInternals "github.com/dafny-lang/DafnyStandardLibGo/ModInternals" - m_ModInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/ModInternalsNonlinear" - m_Mul "github.com/dafny-lang/DafnyStandardLibGo/Mul" - m_MulInternals "github.com/dafny-lang/DafnyStandardLibGo/MulInternals" - m_MulInternalsNonlinear "github.com/dafny-lang/DafnyStandardLibGo/MulInternalsNonlinear" - m_Power "github.com/dafny-lang/DafnyStandardLibGo/Power" - m_Relations "github.com/dafny-lang/DafnyStandardLibGo/Relations" - m_Seq "github.com/dafny-lang/DafnyStandardLibGo/Seq" - m_Seq_MergeSort "github.com/dafny-lang/DafnyStandardLibGo/Seq_MergeSort" - m_Sorting "github.com/dafny-lang/DafnyStandardLibGo/Sorting" - m_StandardLibrary "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary" - m_StandardLibraryInterop "github.com/dafny-lang/DafnyStandardLibGo/StandardLibraryInterop" - m_StandardLibrary_Sequence "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_Sequence" - m_StandardLibrary_String "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_String" - m_StandardLibrary_UInt "github.com/dafny-lang/DafnyStandardLibGo/StandardLibrary_UInt" - m_Streams "github.com/dafny-lang/DafnyStandardLibGo/Streams" - m_UnicodeStrings "github.com/dafny-lang/DafnyStandardLibGo/UnicodeStrings" - m__Unicode "github.com/dafny-lang/DafnyStandardLibGo/Unicode_" - m_Utf16EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf16EncodingForm" - m_Utf8EncodingForm "github.com/dafny-lang/DafnyStandardLibGo/Utf8EncodingForm" - m_Wrappers "github.com/dafny-lang/DafnyStandardLibGo/Wrappers" -) - -var _ = os.Args -var _ _dafny.Dummy__ -var _ m__System.Dummy__ -var _ m_Wrappers.Dummy__ -var _ m_BoundedInts.Dummy__ -var _ m_StandardLibrary_UInt.Dummy__ -var _ m_StandardLibrary_Sequence.Dummy__ -var _ m_StandardLibrary_String.Dummy__ -var _ m_StandardLibrary.Dummy__ -var _ m_ComAmazonawsDynamodbTypes.Dummy__ -var _ m_ComAmazonawsKmsTypes.Dummy__ -var _ m_AwsCryptographyKeyStoreTypes.Dummy__ -var _ m_AwsCryptographyPrimitivesTypes.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__ -var _ m_AwsCryptographyEncryptionSdkTypes.Dummy__ -var _ m_Random.Dummy__ -var _ m_AESEncryption.Dummy__ -var _ m_Digest.Dummy__ -var _ m_HMAC.Dummy__ -var _ m_WrappedHMAC.Dummy__ -var _ m_HKDF.Dummy__ -var _ m_WrappedHKDF.Dummy__ -var _ m_Signature.Dummy__ -var _ m_KdfCtr.Dummy__ -var _ m_RSAEncryption.Dummy__ -var _ m_ECDH.Dummy__ -var _ m_AwsCryptographyPrimitivesOperations.Dummy__ -var _ m_AtomicPrimitives.Dummy__ -var _ m_Base64.Dummy__ -var _ m_AlgorithmSuites.Dummy__ -var _ m_Materials.Dummy__ -var _ m_Keyring.Dummy__ -var _ m_Relations.Dummy__ -var _ m_Seq_MergeSort.Dummy__ -var _ m__Math.Dummy__ -var _ m_Seq.Dummy__ -var _ m_MultiKeyring.Dummy__ -var _ m_AwsArnParsing.Dummy__ -var _ m_AwsKmsMrkAreUnique.Dummy__ -var _ m_Actions.Dummy__ -var _ m_AwsKmsMrkMatchForDecrypt.Dummy__ -var _ m_AwsKmsUtils.Dummy__ -var _ m_Constants.Dummy__ -var _ m_MaterialWrapping.Dummy__ -var _ m_CanonicalEncryptionContext.Dummy__ -var _ m_IntermediateKeyWrapping.Dummy__ -var _ m_EdkWrapping.Dummy__ -var _ m_ErrorMessages.Dummy__ -var _ m_AwsKmsKeyring.Dummy__ -var _ m_StrictMultiKeyring.Dummy__ -var _ m_AwsKmsDiscoveryKeyring.Dummy__ -var _ m_Com_Amazonaws_Kms.Dummy__ -var _ m_Com_Amazonaws_Dynamodb.Dummy__ -var _ m_DiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkDiscoveryKeyring.Dummy__ -var _ m_MrkAwareDiscoveryMultiKeyring.Dummy__ -var _ m_AwsKmsMrkKeyring.Dummy__ -var _ m_MrkAwareStrictMultiKeyring.Dummy__ -var _ m_LocalCMC.Dummy__ -var _ m_SynchronizedLocalCMC.Dummy__ -var _ m_StormTracker.Dummy__ -var _ m_StormTrackingCMC.Dummy__ -var _ m_CacheConstants.Dummy__ -var _ m_AwsKmsHierarchicalKeyring.Dummy__ -var _ m_AwsKmsRsaKeyring.Dummy__ -var _ m_EcdhEdkWrapping.Dummy__ -var _ m_RawECDHKeyring.Dummy__ -var _ m_AwsKmsEcdhKeyring.Dummy__ -var _ m_RawAESKeyring.Dummy__ -var _ m_RawRSAKeyring.Dummy__ -var _ m_CMM.Dummy__ -var _ m_Defaults.Dummy__ -var _ m_Commitment.Dummy__ -var _ m_DefaultCMM.Dummy__ -var _ m_DefaultClientSupplier.Dummy__ -var _ m_Utils.Dummy__ -var _ m_RequiredEncryptionContextCMM.Dummy__ -var _ m_AwsCryptographyMaterialProvidersOperations.Dummy__ -var _ m_MaterialProviders.Dummy__ -var _ m_Streams.Dummy__ -var _ m_SerializableTypes.Dummy__ -var _ m_SerializeFunctions.Dummy__ -var _ m_EncryptionContext.Dummy__ -var _ m_HeaderTypes.Dummy__ -var _ m_SharedHeaderFunctions.Dummy__ -var _ m_EncryptedDataKeys.Dummy__ -var _ m_V1HeaderBody.Dummy__ -var _ m_V2HeaderBody.Dummy__ -var _ m_HeaderAuth.Dummy__ -var _ m_Header.Dummy__ -var _ m_Frames.Dummy__ -var _ m_MessageBody.Dummy__ -var _ m_KeyDerivation.Dummy__ -var _ m_EncryptDecryptHelpers.Dummy__ -var _ m_AwsEncryptionSdkOperations.Dummy__ -var _ m_EncryptionSdk.Dummy__ -var _ m_WrappedESDK.Dummy__ -var _ m_HexStrings.Dummy__ -var _ m_AllAlgorithmSuites.Dummy__ -var _ m_WrappedMaterialProviders.Dummy__ -var _ m_AwsCryptographyMaterialProvidersTestVectorKeysTypes.Dummy__ -var _ m_JSON_Utils_Views_Core.Dummy__ -var _ m_JSON_Utils_Views_Writers.Dummy__ -var _ m_JSON_Utils_Lexers_Core.Dummy__ -var _ m_JSON_Utils_Lexers_Strings.Dummy__ -var _ m_JSON_Utils_Cursors.Dummy__ -var _ m_JSON_Utils_Parsers.Dummy__ -var _ m_GeneralInternals.Dummy__ -var _ m_MulInternalsNonlinear.Dummy__ -var _ m_MulInternals.Dummy__ -var _ m_Mul.Dummy__ -var _ m_ModInternalsNonlinear.Dummy__ -var _ m_DivInternalsNonlinear.Dummy__ -var _ m_ModInternals.Dummy__ -var _ m_DivInternals.Dummy__ -var _ m_DivMod.Dummy__ -var _ m_Power.Dummy__ -var _ m_Logarithm.Dummy__ -var _ m_JSON_Utils_Str_CharStrConversion.Dummy__ -var _ m_JSON_Utils_Str_CharStrEscaping.Dummy__ -var _ m_JSON_Utils_Str.Dummy__ -var _ m_JSON_Utils_Seq.Dummy__ -var _ m_JSON_Utils_Vectors.Dummy__ -var _ m_JSON_Errors.Dummy__ -var _ m_JSON_Values.Dummy__ -var _ m__Unicode.Dummy__ -var _ m_Functions.Dummy__ -var _ m_Utf8EncodingForm.Dummy__ -var _ m_Utf16EncodingForm.Dummy__ -var _ m_UnicodeStrings.Dummy__ -var _ m_JSON_Spec.Dummy__ -var _ m_JSON_Grammar.Dummy__ -var _ m_JSON_Serializer_ByteStrConversion.Dummy__ -var _ m_JSON_Serializer.Dummy__ -var _ m_JSON_Deserializer_Uint16StrConversion.Dummy__ -var _ m_JSON_Deserializer_ByteStrConversion.Dummy__ -var _ m_JSON_Deserializer.Dummy__ -var _ m_JSON_ConcreteSyntax_Spec.Dummy__ -var _ m_JSON_ConcreteSyntax_SpecProperties.Dummy__ -var _ m_JSON_ZeroCopy_Serializer.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Core.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Strings.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Numbers.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ObjectParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Objects.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_ArrayParams.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Arrays.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Constants.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_Values.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer_API.Dummy__ -var _ m_JSON_ZeroCopy_Deserializer.Dummy__ -var _ m_JSON_ZeroCopy_API.Dummy__ -var _ m_JSON_API.Dummy__ -var _ m_JSONHelpers.Dummy__ -var _ m_KeyDescription.Dummy__ -var _ m_KeyMaterial.Dummy__ -var _ m_CreateStaticKeyrings.Dummy__ -var _ m_CreateStaticKeyStores.Dummy__ -var _ m_KeyringFromKeyDescription.Dummy__ -var _ m_CmmFromKeyDescription.Dummy__ -var _ m_KeysVectorOperations.Dummy__ -var _ m_FileIO.Dummy__ -var _ m_KeyVectors.Dummy__ -var _ m_TestVectors.Dummy__ -var _ m_AllHierarchy.Dummy__ -var _ m_AllKms.Dummy__ -var _ m_AllKmsMrkAware.Dummy__ -var _ m_AllKmsMrkAwareDiscovery.Dummy__ -var _ m_AllKmsRsa.Dummy__ -var _ m_AllKmsEcdh.Dummy__ -var _ m_AllRawAES.Dummy__ -var _ m_AllRawRSA.Dummy__ -var _ m_AllRawECDH.Dummy__ -var _ m_AllDefaultCmm.Dummy__ -var _ m_AllRequiredEncryptionContextCmm.Dummy__ -var _ m_AllMulti.Dummy__ -var _ m_MplManifestOptions.Dummy__ -var _ m_WriteJsonManifests.Dummy__ -var _ m_CompleteVectors.Dummy__ -var _ m_EsdkManifestOptions.Dummy__ -var _ m_EsdkTestVectors.Dummy__ -var _ m_AllEsdkV4NoReqEc.Dummy__ -var _ m_AllEsdkV4WithReqEc.Dummy__ -var _ m_WriteEsdkJsonManifests.Dummy__ -var _ m_WriteVectors.Dummy__ -var _ m_ParseJsonManifests.Dummy__ -var _ m_ParseEsdkJsonManifest.Dummy__ -var _ m_EsdkTestManifests.Dummy__ -var _ m_GetOpt.Dummy__ -var _ m_WrappedESDKMain.Dummy__ -var _ m_TestManifests.Dummy__ -var _ m_WrappedMaterialProvidersMain.Dummy__ -var _ m_KeyStoreErrorMessages.Dummy__ -var _ m_KmsArn.Dummy__ -var _ m_Structure.Dummy__ -var _ m_KMSKeystoreOperations.Dummy__ -var _ m_DDBKeystoreOperations.Dummy__ -var _ m_CreateKeys.Dummy__ -var _ m_CreateKeyStoreTable.Dummy__ -var _ m_GetKeys.Dummy__ -var _ m_AwsCryptographyKeyStoreOperations.Dummy__ -var _ m_KeyStore.Dummy__ -var _ m_StandardLibraryInterop.Dummy__ -var _ m_Sorting.Dummy__ -var _ m_FloatCompare.Dummy__ -var _ m_Base64Lemmas.Dummy__ - -// Definition of class Default__ -type Default__ struct { - dummy byte -} - -func New_Default___() *Default__ { - _this := Default__{} - - return &_this -} - -type CompanionStruct_Default___ struct { -} - -var Companion_Default___ = CompanionStruct_Default___{} - -func (_this *Default__) Equals(other *Default__) bool { - return _this == other -} - -func (_this *Default__) EqualsGeneric(x interface{}) bool { - other, ok := x.(*Default__) - return ok && _this.Equals(other) -} - -func (*Default__) String() string { - return "_module.Default__" -} -func (_this *Default__) ParentTraits_() []*_dafny.TraitID { - return [](*_dafny.TraitID){} -} - -var _ _dafny.TraitOffspring = &Default__{} - -func (_static *CompanionStruct_Default___) Test____Main____(__noArgsParameter _dafny.Sequence) { - var _0_success bool - _ = _0_success - _0_success = true - _dafny.Print((_dafny.SeqOfString("TestWrappedESDKMain.RunManifestTests: ")).SetString()) - func() { - defer func() { - if r := recover(); r != nil { - var _1_haltMessage = _dafny.SeqOfString(r.(string)) - { - _dafny.Print((_dafny.SeqOfString("FAILED\n ")).SetString()) - _dafny.Print((_1_haltMessage).SetString()) - _dafny.Print((_dafny.SeqOfString("\n")).SetString()) - _0_success = false - } - } - }() - { - m_TestWrappedESDKMain.Companion_Default___.RunManifestTests() - { - _dafny.Print((_dafny.SeqOfString("PASSED\n")).SetString()) - } - } - }() - if !(_0_success) { - panic("(1,0): " + (_dafny.SeqOfString("Test failures occurred: see above.\n")).String()) - } -} - -// End of class Default__ -func main() { - defer _dafny.CatchHalt() - Companion_Default___.Test____Main____(_dafny.FromMainArguments(os.Args)) -} From bed53f45ce84fa70457f7497985c73aec6bb8643 Mon Sep 17 00:00:00 2001 From: rishav-karanjit Date: Thu, 5 Dec 2024 14:20:44 -0800 Subject: [PATCH 3/4] revert later --- .../AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy | 1 + 1 file changed, 1 insertion(+) diff --git a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy index 8c78050a2..0bfa986bb 100644 --- a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy +++ b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy @@ -63,6 +63,7 @@ module TestRequiredEncryptionContext { frameLength := None )); + print(encryptOutput); expect encryptOutput.Success?; var esdkCiphertext := encryptOutput.value.ciphertext; From e73ff6f542a283f7d5acb68feb44442b87a722c2 Mon Sep 17 00:00:00 2001 From: rishav-karanjit Date: Thu, 5 Dec 2024 14:40:32 -0800 Subject: [PATCH 4/4] Revert "revert later" This reverts commit bed53f45ce84fa70457f7497985c73aec6bb8643. --- .../AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy | 1 - 1 file changed, 1 deletion(-) diff --git a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy index 0bfa986bb..8c78050a2 100644 --- a/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy +++ b/AwsEncryptionSDK/dafny/AwsEncryptionSdk/test/TestRequiredEncryptionContext.dfy @@ -63,7 +63,6 @@ module TestRequiredEncryptionContext { frameLength := None )); - print(encryptOutput); expect encryptOutput.Success?; var esdkCiphertext := encryptOutput.value.ciphertext;