Skip to content

Commit

Permalink
feat(mpl): Go release v0.0.1 (#1211)
Browse files Browse the repository at this point in the history
Co-authored-by: Shubham Chaturvedi <[email protected]>
Co-authored-by: seebees <[email protected]>
  • Loading branch information
3 people authored Jan 15, 2025
1 parent 983f553 commit 4508ab8
Show file tree
Hide file tree
Showing 85 changed files with 59,990 additions and 0 deletions.
471 changes: 471 additions & 0 deletions releases/go/mpl/AlgorithmSuites/AlgorithmSuites.go

Large diffs are not rendered by default.

1,135 changes: 1,135 additions & 0 deletions releases/go/mpl/AwsArnParsing/AwsArnParsing.go

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2,713 changes: 2,713 additions & 0 deletions releases/go/mpl/AwsCryptographyKeyStoreTypes/AwsCryptographyKeyStoreTypes.go

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

808 changes: 808 additions & 0 deletions releases/go/mpl/AwsKmsDiscoveryKeyring/AwsKmsDiscoveryKeyring.go

Large diffs are not rendered by default.

1,185 changes: 1,185 additions & 0 deletions releases/go/mpl/AwsKmsEcdhKeyring/AwsKmsEcdhKeyring.go

Large diffs are not rendered by default.

2,230 changes: 2,230 additions & 0 deletions releases/go/mpl/AwsKmsHierarchicalKeyring/AwsKmsHierarchicalKeyring.go

Large diffs are not rendered by default.

1,372 changes: 1,372 additions & 0 deletions releases/go/mpl/AwsKmsKeyring/AwsKmsKeyring.go

Large diffs are not rendered by default.

274 changes: 274 additions & 0 deletions releases/go/mpl/AwsKmsMrkAreUnique/AwsKmsMrkAreUnique.go

Large diffs are not rendered by default.

711 changes: 711 additions & 0 deletions releases/go/mpl/AwsKmsMrkDiscoveryKeyring/AwsKmsMrkDiscoveryKeyring.go

Large diffs are not rendered by default.

608 changes: 608 additions & 0 deletions releases/go/mpl/AwsKmsMrkKeyring/AwsKmsMrkKeyring.go

Large diffs are not rendered by default.

184 changes: 184 additions & 0 deletions releases/go/mpl/AwsKmsMrkMatchForDecrypt/AwsKmsMrkMatchForDecrypt.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
// Package AwsKmsMrkMatchForDecrypt
// Dafny module AwsKmsMrkMatchForDecrypt compiled into Go

package AwsKmsMrkMatchForDecrypt

import (
os "os"

m_ComAmazonawsDynamodbTypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/dynamodb/ComAmazonawsDynamodbTypes"
m_ComAmazonawsKmsTypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/kms/ComAmazonawsKmsTypes"
m_AwsArnParsing "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsArnParsing"
m_AwsCryptographyKeyStoreTypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsCryptographyKeyStoreTypes"
m_AwsCryptographyMaterialProvidersTypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl/AwsCryptographyMaterialProvidersTypes"
m_AtomicPrimitives "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/AtomicPrimitives"
m_AwsCryptographyPrimitivesOperations "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/AwsCryptographyPrimitivesOperations"
m_AwsCryptographyPrimitivesTypes "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/AwsCryptographyPrimitivesTypes"
m_Digest "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/Digest"
m_HKDF "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/HKDF"
m_KdfCtr "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/KdfCtr"
m_Random "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/Random"
m_WrappedHKDF "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/WrappedHKDF"
m_WrappedHMAC "github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives/WrappedHMAC"
m_Actions "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Actions"
m_Base64 "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Base64"
m_Base64Lemmas "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Base64Lemmas"
m_BoundedInts "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/BoundedInts"
m_DivInternals "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/DivInternals"
m_DivInternalsNonlinear "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/DivInternalsNonlinear"
m_DivMod "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/DivMod"
m_FileIO "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/FileIO"
m_FloatCompare "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/FloatCompare"
m_Functions "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Functions"
m_GeneralInternals "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/GeneralInternals"
m_GetOpt "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/GetOpt"
m_HexStrings "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/HexStrings"
m_Logarithm "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Logarithm"
m__Math "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Math_"
m_ModInternals "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/ModInternals"
m_ModInternalsNonlinear "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/ModInternalsNonlinear"
m_Mul "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Mul"
m_MulInternals "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/MulInternals"
m_MulInternalsNonlinear "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/MulInternalsNonlinear"
m_Power "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Power"
m_Relations "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Relations"
m_Seq "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Seq"
m_Seq_MergeSort "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Seq_MergeSort"
m_Sorting "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Sorting"
m_StandardLibrary "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/StandardLibrary"
m_StandardLibraryInterop "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/StandardLibraryInterop"
m_StandardLibrary_Sequence "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/StandardLibrary_Sequence"
m_StandardLibrary_String "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/StandardLibrary_String"
m_StandardLibrary_UInt "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/StandardLibrary_UInt"
m_Streams "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Streams"
m_UnicodeStrings "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/UnicodeStrings"
m__Unicode "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Unicode_"
m_Utf16EncodingForm "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Utf16EncodingForm"
m_Utf8EncodingForm "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Utf8EncodingForm"
m_Wrappers "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Wrappers"
m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_"
_dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny"
)

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_Digest.Dummy__
var _ m_WrappedHMAC.Dummy__
var _ m_HKDF.Dummy__
var _ m_WrappedHKDF.Dummy__
var _ m_KdfCtr.Dummy__
var _ m_AwsCryptographyPrimitivesOperations.Dummy__
var _ m_AtomicPrimitives.Dummy__
var _ m_ComAmazonawsDynamodbTypes.Dummy__
var _ m_ComAmazonawsKmsTypes.Dummy__
var _ m_Relations.Dummy__
var _ m_Seq_MergeSort.Dummy__
var _ m__Math.Dummy__
var _ m_Seq.Dummy__
var _ m__Unicode.Dummy__
var _ m_Functions.Dummy__
var _ m_Utf8EncodingForm.Dummy__
var _ m_Utf16EncodingForm.Dummy__
var _ m_UnicodeStrings.Dummy__
var _ m_FileIO.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_StandardLibraryInterop.Dummy__
var _ m_Streams.Dummy__
var _ m_Sorting.Dummy__
var _ m_HexStrings.Dummy__
var _ m_GetOpt.Dummy__
var _ m_FloatCompare.Dummy__
var _ m_Base64.Dummy__
var _ m_Base64Lemmas.Dummy__
var _ m_Actions.Dummy__
var _ m_AwsCryptographyKeyStoreTypes.Dummy__
var _ m_AwsCryptographyMaterialProvidersTypes.Dummy__
var _ m_AwsArnParsing.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 "AwsKmsMrkMatchForDecrypt.Default__"
}
func (_this *Default__) ParentTraits_() []*_dafny.TraitID {
return [](*_dafny.TraitID){}
}

var _ _dafny.TraitOffspring = &Default__{}

func (_static *CompanionStruct_Default___) AwsKmsMrkMatchForDecrypt(configuredAwsKmsIdentifier m_AwsArnParsing.AwsKmsIdentifier, messageAwsKmsIdentifer m_AwsArnParsing.AwsKmsIdentifier) bool {
if (configuredAwsKmsIdentifier).Equals(messageAwsKmsIdentifer) {
return true
} else {
var _source0 _dafny.Tuple = _dafny.TupleOf(messageAwsKmsIdentifer, configuredAwsKmsIdentifier)
_ = _source0
{
var _00 m_AwsArnParsing.AwsKmsIdentifier = (*(_source0).IndexInt(0)).(m_AwsArnParsing.AwsKmsIdentifier)
_ = _00
if _00.Is_AwsKmsArnIdentifier() {
var _0_configuredAwsKmsArn m_AwsArnParsing.AwsArn = _00.Get_().(m_AwsArnParsing.AwsKmsIdentifier_AwsKmsArnIdentifier).A
_ = _0_configuredAwsKmsArn
var _10 m_AwsArnParsing.AwsKmsIdentifier = (*(_source0).IndexInt(1)).(m_AwsArnParsing.AwsKmsIdentifier)
_ = _10
if _10.Is_AwsKmsArnIdentifier() {
var _1_messageAwsKmsArn m_AwsArnParsing.AwsArn = _10.Get_().(m_AwsArnParsing.AwsKmsIdentifier_AwsKmsArnIdentifier).A
_ = _1_messageAwsKmsArn
if (!(m_AwsArnParsing.Companion_Default___.IsMultiRegionAwsKmsArn(_0_configuredAwsKmsArn))) || (!(m_AwsArnParsing.Companion_Default___.IsMultiRegionAwsKmsArn(_1_messageAwsKmsArn))) {
return false
} else {
return (((_dafny.Companion_Sequence_.Equal((_1_messageAwsKmsArn).Dtor_partition(), (_0_configuredAwsKmsArn).Dtor_partition())) && (_dafny.Companion_Sequence_.Equal((_1_messageAwsKmsArn).Dtor_service(), (_0_configuredAwsKmsArn).Dtor_service()))) && (_dafny.Companion_Sequence_.Equal((_1_messageAwsKmsArn).Dtor_account(), (_0_configuredAwsKmsArn).Dtor_account()))) && (((_1_messageAwsKmsArn).Dtor_resource()).Equals((_0_configuredAwsKmsArn).Dtor_resource()))
}
}
}
}
{
return false
}
}
}

// End of class Default__
Loading

0 comments on commit 4508ab8

Please sign in to comment.