File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
decrypt_oracle/src/aws_encryption_sdk_decrypt_oracle/key_providers Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 19
19
from aws_encryption_sdk .exceptions import DecryptKeyError
20
20
from aws_encryption_sdk .identifiers import AlgorithmSuite
21
21
from aws_encryption_sdk .key_providers .base import MasterKey , MasterKeyConfig
22
- from aws_encryption_sdk .structures import EncryptedDataKey
23
- from aws_encryption_sdk .structures import DataKey
22
+ from aws_encryption_sdk .structures import DataKey , EncryptedDataKey
24
23
25
24
26
25
class CountingMasterKeyConfig (MasterKeyConfig ):
@@ -40,6 +39,11 @@ class CountingMasterKey(MasterKey):
40
39
41
40
Generated/decrypted data keys are of the form: ``\01 \02 \03 \04 ...`` counting
42
41
bytes up from one to the data key length required for a given algorithm suite.
42
+
43
+ .. warning::
44
+
45
+ This master key is NOT secure and should never be used for anything other than testing.
46
+
43
47
"""
44
48
45
49
provider_id = "test_counting"
Original file line number Diff line number Diff line change 15
15
16
16
from aws_encryption_sdk .identifiers import AlgorithmSuite
17
17
from aws_encryption_sdk .key_providers .base import MasterKey , MasterKeyConfig
18
- from aws_encryption_sdk .structures import EncryptedDataKey
19
- from aws_encryption_sdk .structures import DataKey
18
+ from aws_encryption_sdk .structures import DataKey , EncryptedDataKey
20
19
21
20
22
21
class NullMasterKeyConfig (MasterKeyConfig ):
@@ -32,7 +31,13 @@ def __init__(self) -> None:
32
31
33
32
class NullMasterKey (MasterKey ):
34
33
"""Master key that generates null data keys and decrypts any data key with provider id
35
- "null" or "zero" as a null data key."""
34
+ "null" or "zero" as a null data key.
35
+
36
+ .. warning::
37
+
38
+ This master key is NOT secure and should never be used for anything other than testing.
39
+
40
+ """
36
41
37
42
provider_id = "null"
38
43
_allowed_provider_ids = (provider_id , "zero" )
You can’t perform that action at this time.
0 commit comments