Skip to content

Commit 54dfc23

Browse files
authored
Merge pull request #163 from mattsb42-aws/keyring-materials
Keyring materials
2 parents 1031f6e + 888fc17 commit 54dfc23

12 files changed

+961
-114
lines changed

decrypt_oracle/tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ basepython = python3
156156
deps =
157157
flake8
158158
flake8-docstrings
159+
pydocstyle < 4.0.0
159160
# https://github.com/JBKahn/flake8-print/pull/30
160161
flake8-print>=3.1.0
161162
commands =

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
boto3>=1.4.4
22
cryptography>=1.8.1
3-
attrs>=17.4.0
3+
attrs>=19.1.0
44
wrapt>=1.10.11

src/aws_encryption_sdk/exceptions.py

+14
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ class InvalidDataKeyError(AWSEncryptionSDKClientError):
5353
"""Exception class for Invalid Data Keys."""
5454

5555

56+
class InvalidKeyringTraceError(AWSEncryptionSDKClientError):
57+
"""Exception class for invalid Keyring Traces.
58+
59+
.. versionadded:: 1.5.0
60+
"""
61+
62+
5663
class InvalidProviderIdError(AWSEncryptionSDKClientError):
5764
"""Exception class for Invalid Provider IDs."""
5865

@@ -73,6 +80,13 @@ class DecryptKeyError(AWSEncryptionSDKClientError):
7380
"""Exception class for errors encountered when MasterKeys try to decrypt data keys."""
7481

7582

83+
class SignatureKeyError(AWSEncryptionSDKClientError):
84+
"""Exception class for errors encountered with signing or verification keys.
85+
86+
.. versionadded:: 1.5.0
87+
"""
88+
89+
7690
class ActionNotAllowedError(AWSEncryptionSDKClientError):
7791
"""Exception class for errors encountered when attempting to perform unallowed actions."""
7892

src/aws_encryption_sdk/identifiers.py

+10
Original file line numberDiff line numberDiff line change
@@ -328,3 +328,13 @@ class ContentAADString(Enum):
328328
FRAME_STRING_ID = b"AWSKMSEncryptionClient Frame"
329329
FINAL_FRAME_STRING_ID = b"AWSKMSEncryptionClient Final Frame"
330330
NON_FRAMED_STRING_ID = b"AWSKMSEncryptionClient Single Block"
331+
332+
333+
class KeyringTraceFlag(Enum):
334+
"""KeyRing Trace actions."""
335+
336+
WRAPPING_KEY_GENERATED_DATA_KEY = 1
337+
WRAPPING_KEY_ENCRYPTED_DATA_KEY = 1 << 1
338+
WRAPPING_KEY_DECRYPTED_DATA_KEY = 1 << 2
339+
WRAPPING_KEY_SIGNED_ENC_CTX = 1 << 3
340+
WRAPPING_KEY_VERIFIED_ENC_CTX = 1 << 4

0 commit comments

Comments
 (0)