github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl@v0.2.0/Constants/Constants.go (about)

     1  // Package Constants
     2  // Dafny module Constants compiled into Go
     3  
     4  package Constants
     5  
     6  import (
     7  	os "os"
     8  
     9  	m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/dynamodb/ComAmazonawsDynamodbTypes"
    10  	m_Com_Amazonaws_Dynamodb "github.com/aws/aws-cryptographic-material-providers-library/releases/go/dynamodb/Com_Amazonaws_Dynamodb"
    11  	m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/kms/ComAmazonawsKmsTypes"
    12  	m_Com_Amazonaws_Kms "github.com/aws/aws-cryptographic-material-providers-library/releases/go/kms/Com_Amazonaws_Kms"
    13  	m_AlgorithmSuites "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AlgorithmSuites"
    14  	m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsArnParsing"
    15  	m_AwsCryptographyKeyStoreOperations "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsCryptographyKeyStoreOperations"
    16  	m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsCryptographyKeyStoreTypes"
    17  	m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsCryptographyMaterialProvidersTypes"
    18  	m_AwsKmsMrkAreUnique "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsKmsMrkAreUnique"
    19  	m_AwsKmsMrkMatchForDecrypt "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsKmsMrkMatchForDecrypt"
    20  	m_AwsKmsUtils "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsKmsUtils"
    21  	m_CreateKeyStoreTable "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/CreateKeyStoreTable"
    22  	m_CreateKeys "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/CreateKeys"
    23  	m_DDBKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/DDBKeystoreOperations"
    24  	m_GetKeys "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/GetKeys"
    25  	m_KMSKeystoreOperations "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/KMSKeystoreOperations"
    26  	m_KeyStore "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/KeyStore"
    27  	m_KeyStoreErrorMessages "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/KeyStoreErrorMessages"
    28  	m_Keyring "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/Keyring"
    29  	m_KmsArn "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/KmsArn"
    30  	m_Materials "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/Materials"
    31  	m_MultiKeyring "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/MultiKeyring"
    32  	m_Structure "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/Structure"
    33  	m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/AtomicPrimitives"
    34  	m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/AwsCryptographyPrimitivesOperations"
    35  	m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/AwsCryptographyPrimitivesTypes"
    36  	m_Digest "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/Digest"
    37  	m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/HKDF"
    38  	m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/KdfCtr"
    39  	m_Random "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/Random"
    40  	m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/WrappedHKDF"
    41  	m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/WrappedHMAC"
    42  	m_Actions "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Actions"
    43  	m_Base64 "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Base64"
    44  	m_Base64Lemmas "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Base64Lemmas"
    45  	m_BoundedInts "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/BoundedInts"
    46  	m_DivInternals "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/DivInternals"
    47  	m_DivInternalsNonlinear "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/DivInternalsNonlinear"
    48  	m_DivMod "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/DivMod"
    49  	m_FileIO "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/FileIO"
    50  	m_FloatCompare "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/FloatCompare"
    51  	m_Functions "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Functions"
    52  	m_GeneralInternals "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/GeneralInternals"
    53  	m_GetOpt "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/GetOpt"
    54  	m_HexStrings "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/HexStrings"
    55  	m_Logarithm "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Logarithm"
    56  	m__Math "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Math_"
    57  	m_ModInternals "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/ModInternals"
    58  	m_ModInternalsNonlinear "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/ModInternalsNonlinear"
    59  	m_Mul "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Mul"
    60  	m_MulInternals "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/MulInternals"
    61  	m_MulInternalsNonlinear "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/MulInternalsNonlinear"
    62  	m_Power "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Power"
    63  	m_Relations "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Relations"
    64  	m_Seq "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Seq"
    65  	m_Seq_MergeSort "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Seq_MergeSort"
    66  	m_Sorting "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Sorting"
    67  	m_StandardLibrary "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/StandardLibrary"
    68  	m_StandardLibraryInterop "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/StandardLibraryInterop"
    69  	m_StandardLibrary_Sequence "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/StandardLibrary_Sequence"
    70  	m_StandardLibrary_String "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/StandardLibrary_String"
    71  	m_StandardLibrary_UInt "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/StandardLibrary_UInt"
    72  	m_Streams "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Streams"
    73  	m_UTF8 "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/UTF8"
    74  	m_UnicodeStrings "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/UnicodeStrings"
    75  	m__Unicode "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Unicode_"
    76  	m_Utf16EncodingForm "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Utf16EncodingForm"
    77  	m_Utf8EncodingForm "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Utf8EncodingForm"
    78  	m_Wrappers "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Wrappers"
    79  	m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_"
    80  	_dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny"
    81  )
    82  
    83  var _ = os.Args
    84  var _ _dafny.Dummy__
    85  var _ m__System.Dummy__
    86  var _ m_Wrappers.Dummy__
    87  var _ m_BoundedInts.Dummy__
    88  var _ m_StandardLibrary_UInt.Dummy__
    89  var _ m_StandardLibrary_Sequence.Dummy__
    90  var _ m_StandardLibrary_String.Dummy__
    91  var _ m_StandardLibrary.Dummy__
    92  var _ m_AwsCryptographyPrimitivesTypes.Dummy__
    93  var _ m_Random.Dummy__
    94  var _ m_Digest.Dummy__
    95  var _ m_WrappedHMAC.Dummy__
    96  var _ m_HKDF.Dummy__
    97  var _ m_WrappedHKDF.Dummy__
    98  var _ m_KdfCtr.Dummy__
    99  var _ m_AwsCryptographyPrimitivesOperations.Dummy__
   100  var _ m_AtomicPrimitives.Dummy__
   101  var _ m_ComAmazonawsDynamodbTypes.Dummy__
   102  var _ m_ComAmazonawsKmsTypes.Dummy__
   103  var _ m_Relations.Dummy__
   104  var _ m_Seq_MergeSort.Dummy__
   105  var _ m__Math.Dummy__
   106  var _ m_Seq.Dummy__
   107  var _ m__Unicode.Dummy__
   108  var _ m_Functions.Dummy__
   109  var _ m_Utf8EncodingForm.Dummy__
   110  var _ m_Utf16EncodingForm.Dummy__
   111  var _ m_UnicodeStrings.Dummy__
   112  var _ m_FileIO.Dummy__
   113  var _ m_GeneralInternals.Dummy__
   114  var _ m_MulInternalsNonlinear.Dummy__
   115  var _ m_MulInternals.Dummy__
   116  var _ m_Mul.Dummy__
   117  var _ m_ModInternalsNonlinear.Dummy__
   118  var _ m_DivInternalsNonlinear.Dummy__
   119  var _ m_ModInternals.Dummy__
   120  var _ m_DivInternals.Dummy__
   121  var _ m_DivMod.Dummy__
   122  var _ m_Power.Dummy__
   123  var _ m_Logarithm.Dummy__
   124  var _ m_StandardLibraryInterop.Dummy__
   125  var _ m_Streams.Dummy__
   126  var _ m_Sorting.Dummy__
   127  var _ m_HexStrings.Dummy__
   128  var _ m_GetOpt.Dummy__
   129  var _ m_FloatCompare.Dummy__
   130  var _ m_Base64.Dummy__
   131  var _ m_Base64Lemmas.Dummy__
   132  var _ m_Actions.Dummy__
   133  var _ m_AwsCryptographyKeyStoreTypes.Dummy__
   134  var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__
   135  var _ m_AwsArnParsing.Dummy__
   136  var _ m_AwsKmsMrkMatchForDecrypt.Dummy__
   137  var _ m_AwsKmsUtils.Dummy__
   138  var _ m_KeyStoreErrorMessages.Dummy__
   139  var _ m_KmsArn.Dummy__
   140  var _ m_Structure.Dummy__
   141  var _ m_KMSKeystoreOperations.Dummy__
   142  var _ m_DDBKeystoreOperations.Dummy__
   143  var _ m_CreateKeys.Dummy__
   144  var _ m_CreateKeyStoreTable.Dummy__
   145  var _ m_GetKeys.Dummy__
   146  var _ m_AwsCryptographyKeyStoreOperations.Dummy__
   147  var _ m_Com_Amazonaws_Kms.Dummy__
   148  var _ m_Com_Amazonaws_Dynamodb.Dummy__
   149  var _ m_KeyStore.Dummy__
   150  var _ m_AlgorithmSuites.Dummy__
   151  var _ m_Materials.Dummy__
   152  var _ m_Keyring.Dummy__
   153  var _ m_MultiKeyring.Dummy__
   154  var _ m_AwsKmsMrkAreUnique.Dummy__
   155  
   156  type Dummy__ struct{}
   157  
   158  // Definition of class Default__
   159  type Default__ struct {
   160  	dummy byte
   161  }
   162  
   163  func New_Default___() *Default__ {
   164  	_this := Default__{}
   165  
   166  	return &_this
   167  }
   168  
   169  type CompanionStruct_Default___ struct {
   170  }
   171  
   172  var Companion_Default___ = CompanionStruct_Default___{}
   173  
   174  func (_this *Default__) Equals(other *Default__) bool {
   175  	return _this == other
   176  }
   177  
   178  func (_this *Default__) EqualsGeneric(x interface{}) bool {
   179  	other, ok := x.(*Default__)
   180  	return ok && _this.Equals(other)
   181  }
   182  
   183  func (*Default__) String() string {
   184  	return "Constants.Default__"
   185  }
   186  func (_this *Default__) ParentTraits_() []*_dafny.TraitID {
   187  	return [](*_dafny.TraitID){}
   188  }
   189  
   190  var _ _dafny.TraitOffspring = &Default__{}
   191  
   192  func (_static *CompanionStruct_Default___) ECDH__PROVIDER__INFO__RPL__INDEX() uint32 {
   193  	return uint32(1)
   194  }
   195  func (_static *CompanionStruct_Default___) ECDH__PROVIDER__INFO__PUBLIC__KEY__LEN() _dafny.Int {
   196  	return _dafny.IntOfInt64(4)
   197  }
   198  func (_static *CompanionStruct_Default___) ECDH__PROVIDER__INFO__RPK__INDEX() uint32 {
   199  	return (Companion_Default___.ECDH__PROVIDER__INFO__RPL__INDEX()) + ((Companion_Default___.ECDH__PROVIDER__INFO__PUBLIC__KEY__LEN()).Uint32())
   200  }
   201  func (_static *CompanionStruct_Default___) ECDH__AES__256__ENC__KEY__LENGTH() int32 {
   202  	return int32(32)
   203  }
   204  func (_static *CompanionStruct_Default___) ECDH__AES__256__ENC__TAG__LENGTH() int32 {
   205  	return int32(16)
   206  }
   207  func (_static *CompanionStruct_Default___) ECDH__AES__256__ENC__IV__LENGTH() int32 {
   208  	return int32(12)
   209  }
   210  func (_static *CompanionStruct_Default___) ECDH__AES__256__ENC__ALG() m_AwsCryptographyPrimitivesTypes.AES__GCM {
   211  	return m_AwsCryptographyPrimitivesTypes.Companion_AES__GCM_.Create_AES__GCM_(Companion_Default___.ECDH__AES__256__ENC__KEY__LENGTH(), Companion_Default___.ECDH__AES__256__ENC__TAG__LENGTH(), Companion_Default___.ECDH__AES__256__ENC__IV__LENGTH())
   212  }
   213  func (_static *CompanionStruct_Default___) PROVIDER__ID() _dafny.Sequence {
   214  	var _0_s _dafny.Sequence = _dafny.SeqOf(uint8(97), uint8(119), uint8(115), uint8(45), uint8(107), uint8(109), uint8(115))
   215  	_ = _0_s
   216  	return _0_s
   217  }
   218  func (_static *CompanionStruct_Default___) UINT32__TO__SEQ__LEN() _dafny.Int {
   219  	return _dafny.IntOfInt64(4)
   220  }
   221  func (_static *CompanionStruct_Default___) KDF__SALT__LEN() int32 {
   222  	return int32(32)
   223  }
   224  func (_static *CompanionStruct_Default___) KDF__EXPECTED__LEN() int32 {
   225  	return int32(64)
   226  }
   227  func (_static *CompanionStruct_Default___) ECDH__COMMITMENT__KEY__LENGTH() _dafny.Int {
   228  	return _dafny.IntOfInt64(32)
   229  }
   230  func (_static *CompanionStruct_Default___) ECDH__COMMITMENT__KEY__INDEX() _dafny.Int {
   231  	return _dafny.IntOfInt64(32)
   232  }
   233  func (_static *CompanionStruct_Default___) ECDH__WRAPPED__KEY__MATERIAL__INDEX() _dafny.Int {
   234  	return _dafny.IntOfInt64(64)
   235  }
   236  func (_static *CompanionStruct_Default___) ECDH__KDF__STRING() _dafny.Sequence {
   237  	return _dafny.SeqOfString("ecdh-key-derivation")
   238  }
   239  func (_static *CompanionStruct_Default___) ECDH__KDF__PRF__STRING() _dafny.Sequence {
   240  	return _dafny.SeqOfString("HMAC_SHA384")
   241  }
   242  func (_static *CompanionStruct_Default___) ECDH__KDF__DELIMETER() _dafny.Sequence {
   243  	return _dafny.SeqOf(uint8(0))
   244  }
   245  func (_static *CompanionStruct_Default___) ECDH__PROVIDER__INFO__256__LEN() uint32 {
   246  	return uint32(75)
   247  }
   248  func (_static *CompanionStruct_Default___) ECDH__PROVIDER__INFO__384__LEN() uint32 {
   249  	return uint32(107)
   250  }
   251  func (_static *CompanionStruct_Default___) ECDH__PROVIDER__INFO__521__LEN() uint32 {
   252  	return uint32(143)
   253  }
   254  func (_static *CompanionStruct_Default___) ECDH__PUBLIC__KEY__LEN__ECC__NIST__256() _dafny.Int {
   255  	return _dafny.IntOfInt64(91)
   256  }
   257  func (_static *CompanionStruct_Default___) ECDH__PUBLIC__KEY__LEN__ECC__NIST__384() _dafny.Int {
   258  	return _dafny.IntOfInt64(120)
   259  }
   260  func (_static *CompanionStruct_Default___) ECDH__PUBLIC__KEY__LEN__ECC__NIST__521() _dafny.Int {
   261  	return _dafny.IntOfInt64(158)
   262  }
   263  func (_static *CompanionStruct_Default___) ECDH__PUBLIC__KEY__COMPRESSED__LEN__ECC__NIST__256() _dafny.Int {
   264  	return _dafny.IntOfInt64(33)
   265  }
   266  func (_static *CompanionStruct_Default___) ECDH__PUBLIC__KEY__COMPRESSED__LEN__ECC__NIST__384() _dafny.Int {
   267  	return _dafny.IntOfInt64(49)
   268  }
   269  func (_static *CompanionStruct_Default___) ECDH__PUBLIC__KEY__COMPRESSED__LEN__ECC__NIST__521() _dafny.Int {
   270  	return _dafny.IntOfInt64(67)
   271  }
   272  func (_static *CompanionStruct_Default___) CIPHERTEXT__WRAPPED__MATERIAL__INDEX() _dafny.Int {
   273  	return _dafny.IntOfInt64(68)
   274  }
   275  func (_static *CompanionStruct_Default___) PROVIDER__ID__HIERARCHY() _dafny.Sequence {
   276  	var _0_s _dafny.Sequence = _dafny.SeqOf(uint8(97), uint8(119), uint8(115), uint8(45), uint8(107), uint8(109), uint8(115), uint8(45), uint8(104), uint8(105), uint8(101), uint8(114), uint8(97), uint8(114), uint8(99), uint8(104), uint8(121))
   277  	_ = _0_s
   278  	return _0_s
   279  }
   280  func (_static *CompanionStruct_Default___) RSA__PROVIDER__ID() _dafny.Sequence {
   281  	var _0_s _dafny.Sequence = _dafny.SeqOf(uint8(97), uint8(119), uint8(115), uint8(45), uint8(107), uint8(109), uint8(115), uint8(45), uint8(114), uint8(115), uint8(97))
   282  	_ = _0_s
   283  	return _0_s
   284  }
   285  func (_static *CompanionStruct_Default___) KMS__ECDH__PROVIDER__ID() _dafny.Sequence {
   286  	return m_UTF8.Companion_Default___.EncodeAscii(_dafny.SeqOfString("aws-kms-ecdh"))
   287  }
   288  func (_static *CompanionStruct_Default___) RAW__ECDH__PROVIDER__ID() _dafny.Sequence {
   289  	return m_UTF8.Companion_Default___.EncodeAscii(_dafny.SeqOfString("raw-ecdh"))
   290  }
   291  func (_static *CompanionStruct_Default___) ECDH__KDF__PRF__NAME() _dafny.Sequence {
   292  	return m_UTF8.Companion_Default___.EncodeAscii(_dafny.SeqOfString("HMAC_SHA384"))
   293  }
   294  func (_static *CompanionStruct_Default___) ECDH__KDF__UTF8() _dafny.Sequence {
   295  	return m_UTF8.Companion_Default___.EncodeAscii(_dafny.SeqOfString("ecdh-key-derivation"))
   296  }
   297  
   298  // End of class Default__
   299  
   300  // Definition of class AwsKmsEncryptedDataKey
   301  type AwsKmsEncryptedDataKey struct {
   302  }
   303  
   304  func New_AwsKmsEncryptedDataKey_() *AwsKmsEncryptedDataKey {
   305  	_this := AwsKmsEncryptedDataKey{}
   306  
   307  	return &_this
   308  }
   309  
   310  type CompanionStruct_AwsKmsEncryptedDataKey_ struct {
   311  }
   312  
   313  var Companion_AwsKmsEncryptedDataKey_ = CompanionStruct_AwsKmsEncryptedDataKey_{}
   314  
   315  func (*AwsKmsEncryptedDataKey) String() string {
   316  	return "Constants.AwsKmsEncryptedDataKey"
   317  }
   318  
   319  // End of class AwsKmsEncryptedDataKey
   320  
   321  func Type_AwsKmsEncryptedDataKey_() _dafny.TypeDescriptor {
   322  	return type_AwsKmsEncryptedDataKey_{}
   323  }
   324  
   325  type type_AwsKmsEncryptedDataKey_ struct {
   326  }
   327  
   328  func (_this type_AwsKmsEncryptedDataKey_) Default() interface{} {
   329  	return m_AwsCryptographyMaterialProvidersTypes.Companion_EncryptedDataKey_.Default()
   330  }
   331  
   332  func (_this type_AwsKmsEncryptedDataKey_) String() string {
   333  	return "Constants.AwsKmsEncryptedDataKey"
   334  }
   335  func (_this *CompanionStruct_AwsKmsEncryptedDataKey_) Is_(__source m_AwsCryptographyMaterialProvidersTypes.EncryptedDataKey) bool {
   336  	var _0_edk m_AwsCryptographyMaterialProvidersTypes.EncryptedDataKey = (__source)
   337  	_ = _0_edk
   338  	return (_dafny.Companion_Sequence_.Equal((_0_edk).Dtor_keyProviderId(), Companion_Default___.PROVIDER__ID())) && (m_UTF8.Companion_Default___.ValidUTF8Seq((_0_edk).Dtor_keyProviderInfo()))
   339  }
   340  
   341  // Definition of datatype AwsKmsEdkHelper
   342  type AwsKmsEdkHelper struct {
   343  	Data_AwsKmsEdkHelper_
   344  }
   345  
   346  func (_this AwsKmsEdkHelper) Get_() Data_AwsKmsEdkHelper_ {
   347  	return _this.Data_AwsKmsEdkHelper_
   348  }
   349  
   350  type Data_AwsKmsEdkHelper_ interface {
   351  	isAwsKmsEdkHelper()
   352  }
   353  
   354  type CompanionStruct_AwsKmsEdkHelper_ struct {
   355  }
   356  
   357  var Companion_AwsKmsEdkHelper_ = CompanionStruct_AwsKmsEdkHelper_{}
   358  
   359  type AwsKmsEdkHelper_AwsKmsEdkHelper struct {
   360  	Edk m_AwsCryptographyMaterialProvidersTypes.EncryptedDataKey
   361  	Arn m_AwsArnParsing.AwsArn
   362  }
   363  
   364  func (AwsKmsEdkHelper_AwsKmsEdkHelper) isAwsKmsEdkHelper() {}
   365  
   366  func (CompanionStruct_AwsKmsEdkHelper_) Create_AwsKmsEdkHelper_(Edk m_AwsCryptographyMaterialProvidersTypes.EncryptedDataKey, Arn m_AwsArnParsing.AwsArn) AwsKmsEdkHelper {
   367  	return AwsKmsEdkHelper{AwsKmsEdkHelper_AwsKmsEdkHelper{Edk, Arn}}
   368  }
   369  
   370  func (_this AwsKmsEdkHelper) Is_AwsKmsEdkHelper() bool {
   371  	_, ok := _this.Get_().(AwsKmsEdkHelper_AwsKmsEdkHelper)
   372  	return ok
   373  }
   374  
   375  func (CompanionStruct_AwsKmsEdkHelper_) Default() AwsKmsEdkHelper {
   376  	return Companion_AwsKmsEdkHelper_.Create_AwsKmsEdkHelper_(m_AwsCryptographyMaterialProvidersTypes.Companion_EncryptedDataKey_.Default(), m_AwsArnParsing.Companion_AwsArn_.Default())
   377  }
   378  
   379  func (_this AwsKmsEdkHelper) Dtor_edk() m_AwsCryptographyMaterialProvidersTypes.EncryptedDataKey {
   380  	return _this.Get_().(AwsKmsEdkHelper_AwsKmsEdkHelper).Edk
   381  }
   382  
   383  func (_this AwsKmsEdkHelper) Dtor_arn() m_AwsArnParsing.AwsArn {
   384  	return _this.Get_().(AwsKmsEdkHelper_AwsKmsEdkHelper).Arn
   385  }
   386  
   387  func (_this AwsKmsEdkHelper) String() string {
   388  	switch data := _this.Get_().(type) {
   389  	case nil:
   390  		return "null"
   391  	case AwsKmsEdkHelper_AwsKmsEdkHelper:
   392  		{
   393  			return "Constants.AwsKmsEdkHelper.AwsKmsEdkHelper" + "(" + _dafny.String(data.Edk) + ", " + _dafny.String(data.Arn) + ")"
   394  		}
   395  	default:
   396  		{
   397  			return "<unexpected>"
   398  		}
   399  	}
   400  }
   401  
   402  func (_this AwsKmsEdkHelper) Equals(other AwsKmsEdkHelper) bool {
   403  	switch data1 := _this.Get_().(type) {
   404  	case AwsKmsEdkHelper_AwsKmsEdkHelper:
   405  		{
   406  			data2, ok := other.Get_().(AwsKmsEdkHelper_AwsKmsEdkHelper)
   407  			return ok && data1.Edk.Equals(data2.Edk) && data1.Arn.Equals(data2.Arn)
   408  		}
   409  	default:
   410  		{
   411  			return false // unexpected
   412  		}
   413  	}
   414  }
   415  
   416  func (_this AwsKmsEdkHelper) EqualsGeneric(other interface{}) bool {
   417  	typed, ok := other.(AwsKmsEdkHelper)
   418  	return ok && _this.Equals(typed)
   419  }
   420  
   421  func Type_AwsKmsEdkHelper_() _dafny.TypeDescriptor {
   422  	return type_AwsKmsEdkHelper_{}
   423  }
   424  
   425  type type_AwsKmsEdkHelper_ struct {
   426  }
   427  
   428  func (_this type_AwsKmsEdkHelper_) Default() interface{} {
   429  	return Companion_AwsKmsEdkHelper_.Default()
   430  }
   431  
   432  func (_this type_AwsKmsEdkHelper_) String() string {
   433  	return "Constants.AwsKmsEdkHelper"
   434  }
   435  func (_this AwsKmsEdkHelper) ParentTraits_() []*_dafny.TraitID {
   436  	return [](*_dafny.TraitID){}
   437  }
   438  
   439  var _ _dafny.TraitOffspring = AwsKmsEdkHelper{}
   440  
   441  // End of datatype AwsKmsEdkHelper