cosmian-kms 4.16.0__cp37-abi3-macosx_10_12_x86_64.whl → 4.18.0__cp37-abi3-macosx_10_12_x86_64.whl
Sign up to get free protection for your applications and to get access to all the features.
- cosmian_kms/__init__.py +2 -1
- cosmian_kms/__init__.pyi +25 -0
- cosmian_kms/cosmian_kms.abi3.so +0 -0
- {cosmian_kms-4.16.0.dist-info → cosmian_kms-4.18.0.dist-info}/METADATA +2 -2
- cosmian_kms-4.18.0.dist-info/RECORD +7 -0
- {cosmian_kms-4.16.0.dist-info → cosmian_kms-4.18.0.dist-info}/WHEEL +1 -1
- cosmian_kms-4.16.0.dist-info/RECORD +0 -7
cosmian_kms/__init__.py
CHANGED
@@ -4,7 +4,8 @@ from typing import List, Union
|
|
4
4
|
from .cosmian_kms import *
|
5
5
|
|
6
6
|
UidOrTags = Union[str, List[str]]
|
7
|
-
|
7
|
+
# KMS Objects (e.g. keys) can either be referenced by an UID using a single string,
|
8
|
+
# or by a list of tags using a list of string.
|
8
9
|
|
9
10
|
__doc__ = cosmian_kms.__doc__
|
10
11
|
if hasattr(cosmian_kms, '__all__'):
|
cosmian_kms/__init__.pyi
CHANGED
@@ -13,6 +13,7 @@ class KmsObject:
|
|
13
13
|
Returns:
|
14
14
|
str
|
15
15
|
"""
|
16
|
+
|
16
17
|
def key_block(self) -> bytes:
|
17
18
|
"""Retrieve key bytes
|
18
19
|
|
@@ -31,6 +32,7 @@ class KmsEncryptResponse:
|
|
31
32
|
Args:
|
32
33
|
data (str): The JSON string representing the KmsEncryptResponse.
|
33
34
|
"""
|
35
|
+
|
34
36
|
def unique_identifier(self) -> str:
|
35
37
|
"""
|
36
38
|
Retrieves the unique identifier of the key used during encryption.
|
@@ -38,6 +40,7 @@ class KmsEncryptResponse:
|
|
38
40
|
Returns:
|
39
41
|
str: The unique identifier of the key.
|
40
42
|
"""
|
43
|
+
|
41
44
|
def data(self) -> bytes:
|
42
45
|
"""
|
43
46
|
Retrieves the data bytes from the encryption response.
|
@@ -45,6 +48,7 @@ class KmsEncryptResponse:
|
|
45
48
|
Returns:
|
46
49
|
bytes.
|
47
50
|
"""
|
51
|
+
|
48
52
|
def iv_counter_nonce(self) -> bytes:
|
49
53
|
"""
|
50
54
|
Retrieves the IV, Counter, or Nonce bytes from the encryption response.
|
@@ -52,6 +56,7 @@ class KmsEncryptResponse:
|
|
52
56
|
Returns:
|
53
57
|
bytes
|
54
58
|
"""
|
59
|
+
|
55
60
|
def authenticated_encryption_tag(self) -> bytes:
|
56
61
|
"""
|
57
62
|
Retrieves the authentication tag bytes from the encryption response.
|
@@ -59,6 +64,7 @@ class KmsEncryptResponse:
|
|
59
64
|
Returns:
|
60
65
|
bytes
|
61
66
|
"""
|
67
|
+
|
62
68
|
def correlation_value(self) -> bytes:
|
63
69
|
"""
|
64
70
|
Retrieves the correlation value bytes from the encryption response.
|
@@ -93,6 +99,7 @@ class KmsClient:
|
|
93
99
|
insecure_mode (bool, optional): accept self signed ssl cert. Defaults to False.
|
94
100
|
allowed_tee_tls_cert (Optional[bytes]) : PEM certificate of a tee.
|
95
101
|
"""
|
102
|
+
|
96
103
|
def create_cover_crypt_master_key_pair(
|
97
104
|
self, policy: Union[Policy, bytes]
|
98
105
|
) -> Future[Tuple[str, str]]:
|
@@ -104,6 +111,7 @@ class KmsClient:
|
|
104
111
|
Returns:
|
105
112
|
Future[Tuple[str, str]]: (Public key UID, Master secret key UID)
|
106
113
|
"""
|
114
|
+
|
107
115
|
def import_cover_crypt_master_private_key(
|
108
116
|
self,
|
109
117
|
private_key: bytes,
|
@@ -129,6 +137,7 @@ class KmsClient:
|
|
129
137
|
Returns:
|
130
138
|
Future[str]: the unique identifier of the key
|
131
139
|
"""
|
140
|
+
|
132
141
|
def import_cover_crypt_public_key(
|
133
142
|
self,
|
134
143
|
public_key: bytes,
|
@@ -149,6 +158,7 @@ class KmsClient:
|
|
149
158
|
Returns:
|
150
159
|
Future[str]: the unique identifier of the key
|
151
160
|
"""
|
161
|
+
|
152
162
|
def rekey_cover_crypt_access_policy(
|
153
163
|
self,
|
154
164
|
access_policy: str,
|
@@ -164,6 +174,7 @@ class KmsClient:
|
|
164
174
|
Returns:
|
165
175
|
Future[Tuple[str, str]]: (Public key UID, Master secret key UID)
|
166
176
|
"""
|
177
|
+
|
167
178
|
async def prune_cover_crypt_access_policy(
|
168
179
|
self,
|
169
180
|
access_policy: str,
|
@@ -181,6 +192,7 @@ class KmsClient:
|
|
181
192
|
Returns:
|
182
193
|
Tuple[str, str]: (Public key UID, Master secret key UID)
|
183
194
|
"""
|
195
|
+
|
184
196
|
async def remove_cover_crypt_attribute(
|
185
197
|
self,
|
186
198
|
attribute: str,
|
@@ -204,6 +216,7 @@ class KmsClient:
|
|
204
216
|
Returns:
|
205
217
|
Tuple[str, str]: (Public key UID, Master secret key UID)
|
206
218
|
"""
|
219
|
+
|
207
220
|
async def disable_cover_crypt_attribute(
|
208
221
|
self,
|
209
222
|
attribute: str,
|
@@ -223,6 +236,7 @@ class KmsClient:
|
|
223
236
|
Returns:
|
224
237
|
Tuple[str, str]: (Public key UID, Master secret key UID)
|
225
238
|
"""
|
239
|
+
|
226
240
|
async def add_cover_crypt_attribute(
|
227
241
|
self,
|
228
242
|
attribute: str,
|
@@ -244,6 +258,7 @@ class KmsClient:
|
|
244
258
|
Returns:
|
245
259
|
Tuple[str, str]: (Public key UID, Master secret key UID)
|
246
260
|
"""
|
261
|
+
|
247
262
|
async def rename_cover_crypt_attribute(
|
248
263
|
self,
|
249
264
|
attribute: str,
|
@@ -261,6 +276,7 @@ class KmsClient:
|
|
261
276
|
Returns:
|
262
277
|
Tuple[str, str]: (Public key UID, Master secret key UID)
|
263
278
|
"""
|
279
|
+
|
264
280
|
def create_cover_crypt_user_decryption_key(
|
265
281
|
self,
|
266
282
|
access_policy: str,
|
@@ -278,6 +294,7 @@ class KmsClient:
|
|
278
294
|
Returns:
|
279
295
|
Future[str]: User secret key UID
|
280
296
|
"""
|
297
|
+
|
281
298
|
def import_cover_crypt_user_decryption_key(
|
282
299
|
self,
|
283
300
|
private_key: bytes,
|
@@ -304,6 +321,7 @@ class KmsClient:
|
|
304
321
|
Returns:
|
305
322
|
Future[str]: User secret key UID
|
306
323
|
"""
|
324
|
+
|
307
325
|
def cover_crypt_encryption(
|
308
326
|
self,
|
309
327
|
encryption_policy_str: str,
|
@@ -325,6 +343,7 @@ class KmsClient:
|
|
325
343
|
Returns:
|
326
344
|
Future[bytes]: ciphertext
|
327
345
|
"""
|
346
|
+
|
328
347
|
def cover_crypt_decryption(
|
329
348
|
self,
|
330
349
|
encrypted_data: bytes,
|
@@ -341,6 +360,7 @@ class KmsClient:
|
|
341
360
|
Returns:
|
342
361
|
Future[Tuple[bytes, bytes]]: (plaintext bytes, header metadata bytes)
|
343
362
|
"""
|
363
|
+
|
344
364
|
def get_object(self, unique_identifier: UidOrTags) -> Future[KmsObject]:
|
345
365
|
"""Fetch KMIP object by UID.
|
346
366
|
|
@@ -350,6 +370,7 @@ class KmsClient:
|
|
350
370
|
Returns:
|
351
371
|
Future[KmsObject]
|
352
372
|
"""
|
373
|
+
|
353
374
|
def revoke_key(
|
354
375
|
self,
|
355
376
|
revocation_reason: str,
|
@@ -364,6 +385,7 @@ class KmsClient:
|
|
364
385
|
Returns:
|
365
386
|
Future[str]: uid of the revoked key
|
366
387
|
"""
|
388
|
+
|
367
389
|
def destroy_key(
|
368
390
|
self,
|
369
391
|
key_identifier: UidOrTags,
|
@@ -376,6 +398,7 @@ class KmsClient:
|
|
376
398
|
Returns:
|
377
399
|
Future[str]: uid of the destroyed key
|
378
400
|
"""
|
401
|
+
|
379
402
|
def create_symmetric_key(
|
380
403
|
self,
|
381
404
|
key_len_in_bits: int,
|
@@ -392,6 +415,7 @@ class KmsClient:
|
|
392
415
|
Returns:
|
393
416
|
Future[str]: uid of the created key.
|
394
417
|
"""
|
418
|
+
|
395
419
|
def encrypt(
|
396
420
|
self,
|
397
421
|
data: bytes,
|
@@ -406,6 +430,7 @@ class KmsClient:
|
|
406
430
|
Returns:
|
407
431
|
Future[KmsEncryptResponse]: encryption result
|
408
432
|
"""
|
433
|
+
|
409
434
|
def decrypt(
|
410
435
|
self,
|
411
436
|
encrypted_data: bytes,
|
cosmian_kms/cosmian_kms.abi3.so
CHANGED
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.1
|
2
2
|
Name: cosmian_kms
|
3
|
-
Version: 4.
|
3
|
+
Version: 4.18.0
|
4
4
|
Classifier: Programming Language :: Rust
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
@@ -0,0 +1,7 @@
|
|
1
|
+
cosmian_kms-4.18.0.dist-info/METADATA,sha256=x-zKMQCVKrviza2UsR2qojzFvYQrG2z0NwYtrZn2Erg,1263
|
2
|
+
cosmian_kms-4.18.0.dist-info/WHEEL,sha256=sNJvxUukS6cco7JOpSbnkvq4pZWgu5pjx8brC1Dhg7U,104
|
3
|
+
cosmian_kms/__init__.pyi,sha256=j6PBX789uUqFLm_v-1GT-YAgSQ9ODQ3YqOUF3RzDxRU,15602
|
4
|
+
cosmian_kms/__init__.py,sha256=RFE0iC3agi76L3Tu7aW_qHBzcFMZ-w-In6lPnZpPPL8,350
|
5
|
+
cosmian_kms/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
6
|
+
cosmian_kms/cosmian_kms.abi3.so,sha256=WFdIhUaU0CN5eQWLADrLyokRgJu9Wag5E-pzQQ4Pfms,4457776
|
7
|
+
cosmian_kms-4.18.0.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
cosmian_kms-4.16.0.dist-info/METADATA,sha256=w_cIY5X_pkcFUdXlsQgWSZazJgsgOLVSj8Zrh9pl4d4,1263
|
2
|
-
cosmian_kms-4.16.0.dist-info/WHEEL,sha256=KLO-L3iESXnpD4aBmtLZGXEb2gHQL4oZJiU_nxbTYiI,104
|
3
|
-
cosmian_kms/__init__.pyi,sha256=F1-i1cZW0cM2mnGtb0UoDa19ixt6pRVrm1oeoywUA68,15577
|
4
|
-
cosmian_kms/__init__.py,sha256=hFdRE02W0kEFxAj-F7jcOb91vgyojXlHWmhXKUDKl_U,352
|
5
|
-
cosmian_kms/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
6
|
-
cosmian_kms/cosmian_kms.abi3.so,sha256=yajhyxjPFEeaXJgPPCVQ9cjnY4-THcn99EKhHByvzgQ,4474520
|
7
|
-
cosmian_kms-4.16.0.dist-info/RECORD,,
|