-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76b9b11
commit 7975d15
Showing
88 changed files
with
10,048 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[tool.poetry] | ||
name = "aws-encryption-sdk-test-vectors" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["AWS Crypto Tools <[email protected]>"] | ||
packages = [ | ||
{ include = "aws_encryption_sdk_test_vectors", from = "src" } | ||
] | ||
# Include generated internaldafny files in package distributions, | ||
# even though they are not included in version control | ||
include = ["**/internaldafny/generated/*.py"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.11.0" | ||
aws-cryptographic-material-providers = { path = "../../../mpl/AwsCryptographicMaterialProviders/runtimes/python", develop = false} | ||
aws-cryptography-internal-mpl-testvectors = { path = "../../../mpl/TestVectorsAwsCryptographicMaterialProviders/runtimes/python", develop = false} | ||
aws-encryption-sdk = { path = "../../../AwsEncryptionSDK/runtimes/python", develop = false} | ||
|
||
[tool.poetry.group.test.dependencies] | ||
pytest = "^7.4.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" |
8 changes: 8 additions & 0 deletions
8
TestVectors/runtimes/python/src/aws_encryption_sdk_test_vectors/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Initialize generated Dafny | ||
from .internaldafny.generated import module_ | ||
|
||
# Initialize externs | ||
from .internaldafny import extern |
Binary file added
BIN
+368 Bytes
.../runtimes/python/src/aws_encryption_sdk_test_vectors/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+330 Bytes
.../runtimes/python/src/aws_encryption_sdk_test_vectors/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
...tors/runtimes/python/src/aws_encryption_sdk_test_vectors/internaldafny/extern/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from . import ( | ||
wrapped_esdk, | ||
) |
Binary file added
BIN
+323 Bytes
...aws_encryption_sdk_test_vectors/internaldafny/extern/__pycache__/__init__.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+286 Bytes
...aws_encryption_sdk_test_vectors/internaldafny/extern/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+1.96 KB
...encryption_sdk_test_vectors/internaldafny/extern/__pycache__/wrapped_esdk.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+1.8 KB
...encryption_sdk_test_vectors/internaldafny/extern/__pycache__/wrapped_esdk.cpython-312.pyc
Binary file not shown.
18 changes: 18 additions & 0 deletions
18
.../runtimes/python/src/aws_encryption_sdk_test_vectors/internaldafny/extern/wrapped_esdk.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import aws_encryption_sdk_test_vectors.internaldafny.generated.WrappedESDK as WrappedESDK | ||
import smithy_dafny_standard_library.internaldafny.generated.Wrappers as Wrappers | ||
import aws_encryption_sdk.smithygenerated.aws_cryptography_encryptionsdk.client | ||
import aws_encryption_sdk.smithygenerated.aws_cryptography_encryptionsdk.config | ||
import aws_encryption_sdk.internaldafny.generated.EncryptionSdk as EncryptionSdk | ||
import aws_encryption_sdk_test_vectors.smithygenerated.aws_cryptography_encryptionsdk.shim as shim | ||
|
||
class default__(WrappedESDK.default__): | ||
|
||
@staticmethod | ||
def WrappedESDK(config): | ||
smithy_client = aws_encryption_sdk.smithygenerated.aws_cryptography_encryptionsdk.client.AwsEncryptionSdk( | ||
dafny_client=EncryptionSdk.default__.ESDK(config).value | ||
) | ||
wrapped_client = shim.ESDKShim(smithy_client) | ||
return Wrappers.Result_Success(wrapped_client) | ||
|
||
WrappedESDK.default__ = default__ |
277 changes: 277 additions & 0 deletions
277
...es/python/src/aws_encryption_sdk_test_vectors/internaldafny/generated/AllEsdkV4NoReqEc.py
Large diffs are not rendered by default.
Oops, something went wrong.
246 changes: 246 additions & 0 deletions
246
.../python/src/aws_encryption_sdk_test_vectors/internaldafny/generated/AllEsdkV4WithReqEc.py
Large diffs are not rendered by default.
Oops, something went wrong.
266 changes: 266 additions & 0 deletions
266
...python/src/aws_encryption_sdk_test_vectors/internaldafny/generated/EsdkManifestOptions.py
Large diffs are not rendered by default.
Oops, something went wrong.
633 changes: 633 additions & 0 deletions
633
...s/python/src/aws_encryption_sdk_test_vectors/internaldafny/generated/EsdkTestManifests.py
Large diffs are not rendered by default.
Oops, something went wrong.
780 changes: 780 additions & 0 deletions
780
...mes/python/src/aws_encryption_sdk_test_vectors/internaldafny/generated/EsdkTestVectors.py
Large diffs are not rendered by default.
Oops, something went wrong.
629 changes: 629 additions & 0 deletions
629
...thon/src/aws_encryption_sdk_test_vectors/internaldafny/generated/ParseEsdkJsonManifest.py
Large diffs are not rendered by default.
Oops, something went wrong.
229 changes: 229 additions & 0 deletions
229
...untimes/python/src/aws_encryption_sdk_test_vectors/internaldafny/generated/WrappedESDK.py
Large diffs are not rendered by default.
Oops, something went wrong.
346 changes: 346 additions & 0 deletions
346
...mes/python/src/aws_encryption_sdk_test_vectors/internaldafny/generated/WrappedESDKMain.py
Large diffs are not rendered by default.
Oops, something went wrong.
369 changes: 369 additions & 0 deletions
369
...hon/src/aws_encryption_sdk_test_vectors/internaldafny/generated/WriteEsdkJsonManifests.py
Large diffs are not rendered by default.
Oops, something went wrong.
369 changes: 369 additions & 0 deletions
369
...ntimes/python/src/aws_encryption_sdk_test_vectors/internaldafny/generated/WriteVectors.py
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
...s/runtimes/python/src/aws_encryption_sdk_test_vectors/internaldafny/generated/__main__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Dafny program the_program compiled into Python | ||
import sys | ||
from typing import Callable, Any, TypeVar, NamedTuple | ||
from math import floor | ||
from itertools import count | ||
|
||
import aws_encryption_sdk_test_vectors.internaldafny.generated.module_ as module_ | ||
import _dafny as _dafny | ||
|
||
try: | ||
dafnyArgs = [_dafny.Seq(a) for a in sys.argv] | ||
module_.default__.Test____Main____(dafnyArgs) | ||
except _dafny.HaltException as e: | ||
_dafny.print("[Program halted] " + e.message + "\n") | ||
sys.exit(1) |
Binary file added
BIN
+40.1 KB
...ion_sdk_test_vectors/internaldafny/generated/__pycache__/AllEsdkV4NoReqEc.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+33.9 KB
...ion_sdk_test_vectors/internaldafny/generated/__pycache__/AllEsdkV4NoReqEc.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+36.4 KB
...n_sdk_test_vectors/internaldafny/generated/__pycache__/AllEsdkV4WithReqEc.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+29.6 KB
...n_sdk_test_vectors/internaldafny/generated/__pycache__/AllEsdkV4WithReqEc.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+41.5 KB
..._sdk_test_vectors/internaldafny/generated/__pycache__/EsdkManifestOptions.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+34.2 KB
..._sdk_test_vectors/internaldafny/generated/__pycache__/EsdkManifestOptions.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+68.6 KB
...on_sdk_test_vectors/internaldafny/generated/__pycache__/EsdkTestManifests.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+60.1 KB
...on_sdk_test_vectors/internaldafny/generated/__pycache__/EsdkTestManifests.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+103 KB
...tion_sdk_test_vectors/internaldafny/generated/__pycache__/EsdkTestVectors.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+97.8 KB
...tion_sdk_test_vectors/internaldafny/generated/__pycache__/EsdkTestVectors.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+67 KB
...dk_test_vectors/internaldafny/generated/__pycache__/ParseEsdkJsonManifest.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+57.8 KB
...dk_test_vectors/internaldafny/generated/__pycache__/ParseEsdkJsonManifest.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+34.8 KB
...cryption_sdk_test_vectors/internaldafny/generated/__pycache__/WrappedESDK.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+27.8 KB
...cryption_sdk_test_vectors/internaldafny/generated/__pycache__/WrappedESDK.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+52.3 KB
...tion_sdk_test_vectors/internaldafny/generated/__pycache__/WrappedESDKMain.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+45.5 KB
...tion_sdk_test_vectors/internaldafny/generated/__pycache__/WrappedESDKMain.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+52 KB
...k_test_vectors/internaldafny/generated/__pycache__/WriteEsdkJsonManifests.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+44.4 KB
...k_test_vectors/internaldafny/generated/__pycache__/WriteEsdkJsonManifests.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+47.6 KB
...ryption_sdk_test_vectors/internaldafny/generated/__pycache__/WriteVectors.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+40.1 KB
...ryption_sdk_test_vectors/internaldafny/generated/__pycache__/WriteVectors.cpython-312.pyc
Binary file not shown.
Binary file added
BIN
+35.1 KB
...s_encryption_sdk_test_vectors/internaldafny/generated/__pycache__/module_.cpython-311.pyc
Binary file not shown.
Binary file added
BIN
+27.9 KB
...s_encryption_sdk_test_vectors/internaldafny/generated/__pycache__/module_.cpython-312.pyc
Binary file not shown.
35 changes: 35 additions & 0 deletions
35
...times/python/src/aws_encryption_sdk_test_vectors/internaldafny/generated/dafny_src-py.dtr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
file_format_version = "1.0" | ||
dafny_version = "4.9.0.0" | ||
[options_by_module.WrappedAbstractAwsCryptographyEncryptionSdkService] | ||
legacy-module-names = false | ||
python-module-name = "aws_encryption_sdk_test_vectors.internaldafny.generated" | ||
[options_by_module.WrappedESDK] | ||
legacy-module-names = false | ||
python-module-name = "aws_encryption_sdk_test_vectors.internaldafny.generated" | ||
[options_by_module.EsdkManifestOptions] | ||
legacy-module-names = false | ||
python-module-name = "aws_encryption_sdk_test_vectors.internaldafny.generated" | ||
[options_by_module.EsdkTestVectors] | ||
legacy-module-names = false | ||
python-module-name = "aws_encryption_sdk_test_vectors.internaldafny.generated" | ||
[options_by_module.AllEsdkV4NoReqEc] | ||
legacy-module-names = false | ||
python-module-name = "aws_encryption_sdk_test_vectors.internaldafny.generated" | ||
[options_by_module.AllEsdkV4WithReqEc] | ||
legacy-module-names = false | ||
python-module-name = "aws_encryption_sdk_test_vectors.internaldafny.generated" | ||
[options_by_module.WriteEsdkJsonManifests] | ||
legacy-module-names = false | ||
python-module-name = "aws_encryption_sdk_test_vectors.internaldafny.generated" | ||
[options_by_module.WriteVectors] | ||
legacy-module-names = false | ||
python-module-name = "aws_encryption_sdk_test_vectors.internaldafny.generated" | ||
[options_by_module.ParseEsdkJsonManifest] | ||
legacy-module-names = false | ||
python-module-name = "aws_encryption_sdk_test_vectors.internaldafny.generated" | ||
[options_by_module.EsdkTestManifests] | ||
legacy-module-names = false | ||
python-module-name = "aws_encryption_sdk_test_vectors.internaldafny.generated" | ||
[options_by_module.WrappedESDKMain] | ||
legacy-module-names = false | ||
python-module-name = "aws_encryption_sdk_test_vectors.internaldafny.generated" |
Oops, something went wrong.