cosmian-kms 4.15.2__cp37-abi3-win_amd64.whl → 4.17.0__cp37-abi3-win_amd64.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.pyd +0 -0
- {cosmian_kms-4.15.2.dist-info → cosmian_kms-4.17.0.dist-info}/METADATA +5 -4
- cosmian_kms-4.17.0.dist-info/RECORD +7 -0
- cosmian_kms-4.15.2.dist-info/RECORD +0 -8
- cosmian_kms-4.15.2.dist-info/license_files/LICENSE +0 -62
- {cosmian_kms-4.15.2.dist-info → cosmian_kms-4.17.0.dist-info}/WHEEL +0 -0
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.pyd
CHANGED
Binary file
|
@@ -1,14 +1,15 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: cosmian_kms
|
3
|
-
Version: 4.
|
3
|
+
Version: 4.17.0
|
4
4
|
Classifier: Programming Language :: Rust
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
7
|
-
|
8
|
-
Author: Hugo Rosenkranz-Costa <hugo.rosenkranz@cosmian.com>
|
9
|
-
|
7
|
+
Author: Bruno Grieder <bruno.grieder@cosmian.com>, Emmanuel Coste <emmanuel.coste@cosmian.com>, Hugo Rosenkranz-Costa <hugo.rosenkranz@cosmian.com>
|
8
|
+
Author-email: Bruno Grieder <bruno.grieder@cosmian.com>, Emmanuel Coste <emmanuel.coste@cosmian.com>, Hugo Rosenkranz-Costa <hugo.rosenkranz@cosmian.com>
|
9
|
+
License: BUSL-1.1
|
10
10
|
Requires-Python: >=3.7
|
11
11
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
12
|
+
Project-URL: Source Code, https://github.com/Cosmian/kms
|
12
13
|
|
13
14
|
# Cosmian KMS Python
|
14
15
|
|
@@ -0,0 +1,7 @@
|
|
1
|
+
cosmian_kms-4.17.0.dist-info/METADATA,sha256=wZ_BDWhENJc1lCUfwpzDObY7PIVn89LYBTihSYgPIyc,1263
|
2
|
+
cosmian_kms-4.17.0.dist-info/WHEEL,sha256=TZt2KSIVxFBqGJ3Nlzs-Ax5C_okeQ7lJKl6eUhy0Us4,94
|
3
|
+
cosmian_kms/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
4
|
+
cosmian_kms/__init__.pyi,sha256=j6PBX789uUqFLm_v-1GT-YAgSQ9ODQ3YqOUF3RzDxRU,15602
|
5
|
+
cosmian_kms/__init__.py,sha256=RFE0iC3agi76L3Tu7aW_qHBzcFMZ-w-In6lPnZpPPL8,350
|
6
|
+
cosmian_kms/cosmian_kms.pyd,sha256=b_lLMQd6mOUXZG0Zx3hfMmVmw6qHgjfd-sgHYdCh8Z8,7276032
|
7
|
+
cosmian_kms-4.17.0.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
cosmian_kms-4.15.2.dist-info/METADATA,sha256=B6JDpBYzy9W0Ovi4_Sy2mCmnOV1JaXRnI3e_hioFd3k,1034
|
2
|
-
cosmian_kms-4.15.2.dist-info/WHEEL,sha256=TZt2KSIVxFBqGJ3Nlzs-Ax5C_okeQ7lJKl6eUhy0Us4,94
|
3
|
-
cosmian_kms-4.15.2.dist-info/license_files/LICENSE,sha256=LfpyRX3ytu-bjM_tRWreUpT6uZPNKr9Aa_fHflEq7AM,2993
|
4
|
-
cosmian_kms/__init__.pyi,sha256=F1-i1cZW0cM2mnGtb0UoDa19ixt6pRVrm1oeoywUA68,15577
|
5
|
-
cosmian_kms/__init__.py,sha256=hFdRE02W0kEFxAj-F7jcOb91vgyojXlHWmhXKUDKl_U,352
|
6
|
-
cosmian_kms/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
7
|
-
cosmian_kms/cosmian_kms.pyd,sha256=SFb1kxP9pcrtwKTmC1fKF_funzJCK7p3TzhXtDMHUc0,7352320
|
8
|
-
cosmian_kms-4.15.2.dist-info/RECORD,,
|
@@ -1,62 +0,0 @@
|
|
1
|
-
License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved.
|
2
|
-
"Business Source License" is a trademark of MariaDB Corporation Ab.
|
3
|
-
|
4
|
-
Parameters
|
5
|
-
|
6
|
-
Licensor: Cosmian Tech SAS.
|
7
|
-
Licensed Work: Cosmian KMS version 4.11.3 or later.
|
8
|
-
The Licensed Work is (c) 2024 Cosmian Tech SAS.
|
9
|
-
Additional Use Grant: You may use the Licensed Work in production, provided
|
10
|
-
your total use of does not exceed a total of 4 vCPUS on virtual
|
11
|
-
machines or 2 physical cores on bare metal machines. This use
|
12
|
-
does not include offering the Licensed Work to third parties.
|
13
|
-
Change Date: Four years from the date the Licensed Work is published.
|
14
|
-
Change License: MPL 2.0
|
15
|
-
|
16
|
-
For information about alternative licensing arrangements for the Licensed Work,
|
17
|
-
please contact contact@cosmian.com.
|
18
|
-
|
19
|
-
Notice
|
20
|
-
|
21
|
-
Business Source License 1.1
|
22
|
-
|
23
|
-
Terms
|
24
|
-
|
25
|
-
The Licensor hereby grants you the right to copy, modify, create derivative
|
26
|
-
works, redistribute, and make non-production use of the Licensed Work. The
|
27
|
-
Licensor may make an Additional Use Grant, above, permitting limited production use.
|
28
|
-
|
29
|
-
Effective on the Change Date, or the fourth anniversary of the first publicly
|
30
|
-
available distribution of a specific version of the Licensed Work under this
|
31
|
-
License, whichever comes first, the Licensor hereby grants you rights under
|
32
|
-
the terms of the Change License, and the rights granted in the paragraph
|
33
|
-
above terminate.
|
34
|
-
|
35
|
-
If your use of the Licensed Work does not comply with the requirements
|
36
|
-
currently in effect as described in this License, you must purchase a
|
37
|
-
commercial license from the Licensor, its affiliated entities, or authorized
|
38
|
-
resellers, or you must refrain from using the Licensed Work.
|
39
|
-
|
40
|
-
All copies of the original and modified Licensed Work, and derivative works
|
41
|
-
of the Licensed Work, are subject to this License. This License applies
|
42
|
-
separately for each version of the Licensed Work and the Change Date may vary
|
43
|
-
for each version of the Licensed Work released by Licensor.
|
44
|
-
|
45
|
-
You must conspicuously display this License on each original or modified copy
|
46
|
-
of the Licensed Work. If you receive the Licensed Work in original or
|
47
|
-
modified form from a third party, the terms and conditions set forth in this
|
48
|
-
License apply to your use of that work.
|
49
|
-
|
50
|
-
Any use of the Licensed Work in violation of this License will automatically
|
51
|
-
terminate your rights under this License for the current and all other
|
52
|
-
versions of the Licensed Work.
|
53
|
-
|
54
|
-
This License does not grant you any right in any trademark or logo of
|
55
|
-
Licensor or its affiliates (provided that you may use a trademark or logo of
|
56
|
-
Licensor as expressly required by this License).
|
57
|
-
|
58
|
-
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
59
|
-
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
60
|
-
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
61
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
62
|
-
TITLE.
|
File without changes
|