winrt-Windows.Security.Cryptography.Core 2.2.0__cp313-cp313-win32.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,455 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import datetime
4
+ import sys
5
+ import types
6
+ import typing
7
+ import uuid as _uuid
8
+ from builtins import property as _property
9
+
10
+ import winrt._winrt
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+ import winrt.windows.security.cryptography.certificates as windows_security_cryptography_certificates
15
+ import winrt.windows.storage.streams as windows_storage_streams
16
+
17
+ from winrt.windows.security.cryptography.core import Capi1KdfTargetAlgorithm, CryptographicPadding, CryptographicPrivateKeyBlobType, CryptographicPublicKeyBlobType
18
+
19
+ Self = typing.TypeVar('Self')
20
+
21
+ @typing.final
22
+ class AsymmetricAlgorithmNames_Static(type):
23
+ @_property
24
+ def ecdsa_p521_sha512(cls) -> str: ...
25
+ @_property
26
+ def dsa_sha1(cls) -> str: ...
27
+ @_property
28
+ def dsa_sha256(cls) -> str: ...
29
+ @_property
30
+ def ecdsa_p256_sha256(cls) -> str: ...
31
+ @_property
32
+ def ecdsa_p384_sha384(cls) -> str: ...
33
+ @_property
34
+ def rsa_sign_pkcs1_sha256(cls) -> str: ...
35
+ @_property
36
+ def rsa_oaep_sha1(cls) -> str: ...
37
+ @_property
38
+ def rsa_oaep_sha256(cls) -> str: ...
39
+ @_property
40
+ def rsa_oaep_sha384(cls) -> str: ...
41
+ @_property
42
+ def rsa_oaep_sha512(cls) -> str: ...
43
+ @_property
44
+ def rsa_pkcs1(cls) -> str: ...
45
+ @_property
46
+ def rsa_sign_pkcs1_sha1(cls) -> str: ...
47
+ @_property
48
+ def rsa_sign_pkcs1_sha384(cls) -> str: ...
49
+ @_property
50
+ def rsa_sign_pkcs1_sha512(cls) -> str: ...
51
+ @_property
52
+ def rsa_sign_pss_sha1(cls) -> str: ...
53
+ @_property
54
+ def rsa_sign_pss_sha256(cls) -> str: ...
55
+ @_property
56
+ def rsa_sign_pss_sha384(cls) -> str: ...
57
+ @_property
58
+ def rsa_sign_pss_sha512(cls) -> str: ...
59
+ @_property
60
+ def ecdsa_sha384(cls) -> str: ...
61
+ @_property
62
+ def ecdsa_sha512(cls) -> str: ...
63
+ @_property
64
+ def ecdsa_sha256(cls) -> str: ...
65
+
66
+ @typing.final
67
+ class AsymmetricAlgorithmNames(winrt.system.Object, metaclass=AsymmetricAlgorithmNames_Static):
68
+ pass
69
+
70
+ @typing.final
71
+ class AsymmetricKeyAlgorithmProvider_Static(type):
72
+ def open_algorithm(cls, algorithm: str, /) -> typing.Optional[AsymmetricKeyAlgorithmProvider]: ...
73
+
74
+ @typing.final
75
+ class AsymmetricKeyAlgorithmProvider(winrt.system.Object, metaclass=AsymmetricKeyAlgorithmProvider_Static):
76
+ @staticmethod
77
+ def _from(obj: winrt.system.Object, /) -> AsymmetricKeyAlgorithmProvider: ...
78
+ def create_key_pair(self, key_size: winrt.system.UInt32, /) -> typing.Optional[CryptographicKey]: ...
79
+ def create_key_pair_with_curve_name(self, curve_name: str, /) -> typing.Optional[CryptographicKey]: ...
80
+ def create_key_pair_with_curve_parameters(self, parameters: winrt.system.Array[winrt.system.UInt8], /) -> typing.Optional[CryptographicKey]: ...
81
+ @typing.overload
82
+ def import_key_pair(self, key_blob: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[CryptographicKey]: ...
83
+ @typing.overload
84
+ def import_key_pair(self, key_blob: typing.Optional[windows_storage_streams.IBuffer], blob_type: CryptographicPrivateKeyBlobType, /) -> typing.Optional[CryptographicKey]: ...
85
+ @typing.overload
86
+ def import_public_key(self, key_blob: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[CryptographicKey]: ...
87
+ @typing.overload
88
+ def import_public_key(self, key_blob: typing.Optional[windows_storage_streams.IBuffer], blob_type: CryptographicPublicKeyBlobType, /) -> typing.Optional[CryptographicKey]: ...
89
+ @_property
90
+ def algorithm_name(self) -> str: ...
91
+
92
+ @typing.final
93
+ class CryptographicEngine_Static(type):
94
+ def decrypt(cls, key: typing.Optional[CryptographicKey], data: typing.Optional[windows_storage_streams.IBuffer], iv: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
95
+ def decrypt_and_authenticate(cls, key: typing.Optional[CryptographicKey], data: typing.Optional[windows_storage_streams.IBuffer], nonce: typing.Optional[windows_storage_streams.IBuffer], authentication_tag: typing.Optional[windows_storage_streams.IBuffer], authenticated_data: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
96
+ def decrypt_async(cls, key: typing.Optional[CryptographicKey], data: typing.Optional[windows_storage_streams.IBuffer], iv: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
97
+ def derive_key_material(cls, key: typing.Optional[CryptographicKey], parameters: typing.Optional[KeyDerivationParameters], desired_key_size: winrt.system.UInt32, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
98
+ def encrypt(cls, key: typing.Optional[CryptographicKey], data: typing.Optional[windows_storage_streams.IBuffer], iv: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
99
+ def encrypt_and_authenticate(cls, key: typing.Optional[CryptographicKey], data: typing.Optional[windows_storage_streams.IBuffer], nonce: typing.Optional[windows_storage_streams.IBuffer], authenticated_data: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[EncryptedAndAuthenticatedData]: ...
100
+ def sign(cls, key: typing.Optional[CryptographicKey], data: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
101
+ def sign_async(cls, key: typing.Optional[CryptographicKey], data: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
102
+ def sign_hashed_data(cls, key: typing.Optional[CryptographicKey], data: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
103
+ def sign_hashed_data_async(cls, key: typing.Optional[CryptographicKey], data: typing.Optional[windows_storage_streams.IBuffer], /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
104
+ def verify_signature(cls, key: typing.Optional[CryptographicKey], data: typing.Optional[windows_storage_streams.IBuffer], signature: typing.Optional[windows_storage_streams.IBuffer], /) -> bool: ...
105
+ def verify_signature_with_hash_input(cls, key: typing.Optional[CryptographicKey], data: typing.Optional[windows_storage_streams.IBuffer], signature: typing.Optional[windows_storage_streams.IBuffer], /) -> bool: ...
106
+
107
+ @typing.final
108
+ class CryptographicEngine(winrt.system.Object, metaclass=CryptographicEngine_Static):
109
+ pass
110
+
111
+ @typing.final
112
+ class CryptographicHash(winrt.system.Object):
113
+ @staticmethod
114
+ def _from(obj: winrt.system.Object, /) -> CryptographicHash: ...
115
+ def append(self, data: typing.Optional[windows_storage_streams.IBuffer], /) -> None: ...
116
+ def get_value_and_reset(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
117
+
118
+ @typing.final
119
+ class CryptographicKey(winrt.system.Object):
120
+ @staticmethod
121
+ def _from(obj: winrt.system.Object, /) -> CryptographicKey: ...
122
+ @typing.overload
123
+ def export(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
124
+ @typing.overload
125
+ def export(self, blob_type: CryptographicPrivateKeyBlobType, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
126
+ @typing.overload
127
+ def export_public_key(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
128
+ @typing.overload
129
+ def export_public_key(self, blob_type: CryptographicPublicKeyBlobType, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
130
+ @_property
131
+ def key_size(self) -> winrt.system.UInt32: ...
132
+
133
+ @typing.final
134
+ class EccCurveNames_Static(type):
135
+ @_property
136
+ def all_ecc_curve_names(cls) -> typing.Optional[windows_foundation_collections.IVectorView[str]]: ...
137
+ @_property
138
+ def brainpool_p160r1(cls) -> str: ...
139
+ @_property
140
+ def brainpool_p160t1(cls) -> str: ...
141
+ @_property
142
+ def brainpool_p192r1(cls) -> str: ...
143
+ @_property
144
+ def brainpool_p192t1(cls) -> str: ...
145
+ @_property
146
+ def brainpool_p224r1(cls) -> str: ...
147
+ @_property
148
+ def brainpool_p224t1(cls) -> str: ...
149
+ @_property
150
+ def brainpool_p256r1(cls) -> str: ...
151
+ @_property
152
+ def brainpool_p256t1(cls) -> str: ...
153
+ @_property
154
+ def brainpool_p320r1(cls) -> str: ...
155
+ @_property
156
+ def brainpool_p320t1(cls) -> str: ...
157
+ @_property
158
+ def brainpool_p384r1(cls) -> str: ...
159
+ @_property
160
+ def brainpool_p384t1(cls) -> str: ...
161
+ @_property
162
+ def brainpool_p512r1(cls) -> str: ...
163
+ @_property
164
+ def brainpool_p512t1(cls) -> str: ...
165
+ @_property
166
+ def curve25519(cls) -> str: ...
167
+ @_property
168
+ def ec192wapi(cls) -> str: ...
169
+ @_property
170
+ def nist_p192(cls) -> str: ...
171
+ @_property
172
+ def nist_p224(cls) -> str: ...
173
+ @_property
174
+ def nist_p256(cls) -> str: ...
175
+ @_property
176
+ def nist_p384(cls) -> str: ...
177
+ @_property
178
+ def nist_p521(cls) -> str: ...
179
+ @_property
180
+ def nums_p256t1(cls) -> str: ...
181
+ @_property
182
+ def nums_p384t1(cls) -> str: ...
183
+ @_property
184
+ def nums_p512t1(cls) -> str: ...
185
+ @_property
186
+ def sec_p160k1(cls) -> str: ...
187
+ @_property
188
+ def sec_p160r1(cls) -> str: ...
189
+ @_property
190
+ def sec_p160r2(cls) -> str: ...
191
+ @_property
192
+ def sec_p192k1(cls) -> str: ...
193
+ @_property
194
+ def sec_p192r1(cls) -> str: ...
195
+ @_property
196
+ def sec_p224k1(cls) -> str: ...
197
+ @_property
198
+ def sec_p224r1(cls) -> str: ...
199
+ @_property
200
+ def sec_p256k1(cls) -> str: ...
201
+ @_property
202
+ def sec_p256r1(cls) -> str: ...
203
+ @_property
204
+ def sec_p384r1(cls) -> str: ...
205
+ @_property
206
+ def sec_p521r1(cls) -> str: ...
207
+ @_property
208
+ def wtls12(cls) -> str: ...
209
+ @_property
210
+ def wtls7(cls) -> str: ...
211
+ @_property
212
+ def wtls9(cls) -> str: ...
213
+ @_property
214
+ def x962_p192v1(cls) -> str: ...
215
+ @_property
216
+ def x962_p192v2(cls) -> str: ...
217
+ @_property
218
+ def x962_p192v3(cls) -> str: ...
219
+ @_property
220
+ def x962_p239v1(cls) -> str: ...
221
+ @_property
222
+ def x962_p239v2(cls) -> str: ...
223
+ @_property
224
+ def x962_p239v3(cls) -> str: ...
225
+ @_property
226
+ def x962_p256v1(cls) -> str: ...
227
+
228
+ @typing.final
229
+ class EccCurveNames(winrt.system.Object, metaclass=EccCurveNames_Static):
230
+ pass
231
+
232
+ @typing.final
233
+ class EncryptedAndAuthenticatedData(winrt.system.Object):
234
+ @staticmethod
235
+ def _from(obj: winrt.system.Object, /) -> EncryptedAndAuthenticatedData: ...
236
+ @_property
237
+ def authentication_tag(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
238
+ @_property
239
+ def encrypted_data(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
240
+
241
+ @typing.final
242
+ class HashAlgorithmNames_Static(type):
243
+ @_property
244
+ def md5(cls) -> str: ...
245
+ @_property
246
+ def sha1(cls) -> str: ...
247
+ @_property
248
+ def sha256(cls) -> str: ...
249
+ @_property
250
+ def sha384(cls) -> str: ...
251
+ @_property
252
+ def sha512(cls) -> str: ...
253
+
254
+ @typing.final
255
+ class HashAlgorithmNames(winrt.system.Object, metaclass=HashAlgorithmNames_Static):
256
+ pass
257
+
258
+ @typing.final
259
+ class HashAlgorithmProvider_Static(type):
260
+ def open_algorithm(cls, algorithm: str, /) -> typing.Optional[HashAlgorithmProvider]: ...
261
+
262
+ @typing.final
263
+ class HashAlgorithmProvider(winrt.system.Object, metaclass=HashAlgorithmProvider_Static):
264
+ @staticmethod
265
+ def _from(obj: winrt.system.Object, /) -> HashAlgorithmProvider: ...
266
+ def create_hash(self) -> typing.Optional[CryptographicHash]: ...
267
+ def hash_data(self, data: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
268
+ @_property
269
+ def algorithm_name(self) -> str: ...
270
+ @_property
271
+ def hash_length(self) -> winrt.system.UInt32: ...
272
+
273
+ @typing.final
274
+ class KeyDerivationAlgorithmNames_Static(type):
275
+ @_property
276
+ def pbkdf2_sha256(cls) -> str: ...
277
+ @_property
278
+ def pbkdf2_md5(cls) -> str: ...
279
+ @_property
280
+ def pbkdf2_sha1(cls) -> str: ...
281
+ @_property
282
+ def sp800108_ctr_hmac_sha512(cls) -> str: ...
283
+ @_property
284
+ def pbkdf2_sha384(cls) -> str: ...
285
+ @_property
286
+ def pbkdf2_sha512(cls) -> str: ...
287
+ @_property
288
+ def sp800108_ctr_hmac_md5(cls) -> str: ...
289
+ @_property
290
+ def sp800108_ctr_hmac_sha1(cls) -> str: ...
291
+ @_property
292
+ def sp800108_ctr_hmac_sha256(cls) -> str: ...
293
+ @_property
294
+ def sp800108_ctr_hmac_sha384(cls) -> str: ...
295
+ @_property
296
+ def sp80056a_concat_md5(cls) -> str: ...
297
+ @_property
298
+ def sp80056a_concat_sha1(cls) -> str: ...
299
+ @_property
300
+ def sp80056a_concat_sha256(cls) -> str: ...
301
+ @_property
302
+ def sp80056a_concat_sha384(cls) -> str: ...
303
+ @_property
304
+ def sp80056a_concat_sha512(cls) -> str: ...
305
+ @_property
306
+ def capi_kdf_sha1(cls) -> str: ...
307
+ @_property
308
+ def capi_kdf_sha256(cls) -> str: ...
309
+ @_property
310
+ def capi_kdf_sha384(cls) -> str: ...
311
+ @_property
312
+ def capi_kdf_sha512(cls) -> str: ...
313
+ @_property
314
+ def capi_kdf_md5(cls) -> str: ...
315
+
316
+ @typing.final
317
+ class KeyDerivationAlgorithmNames(winrt.system.Object, metaclass=KeyDerivationAlgorithmNames_Static):
318
+ pass
319
+
320
+ @typing.final
321
+ class KeyDerivationAlgorithmProvider_Static(type):
322
+ def open_algorithm(cls, algorithm: str, /) -> typing.Optional[KeyDerivationAlgorithmProvider]: ...
323
+
324
+ @typing.final
325
+ class KeyDerivationAlgorithmProvider(winrt.system.Object, metaclass=KeyDerivationAlgorithmProvider_Static):
326
+ @staticmethod
327
+ def _from(obj: winrt.system.Object, /) -> KeyDerivationAlgorithmProvider: ...
328
+ def create_key(self, key_material: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[CryptographicKey]: ...
329
+ @_property
330
+ def algorithm_name(self) -> str: ...
331
+
332
+ @typing.final
333
+ class KeyDerivationParameters_Static(type):
334
+ def build_for_capi1_kdf(cls, capi1_kdf_target_algorithm: Capi1KdfTargetAlgorithm, /) -> typing.Optional[KeyDerivationParameters]: ...
335
+ def build_for_pbkdf2(cls, pbkdf2_salt: typing.Optional[windows_storage_streams.IBuffer], iteration_count: winrt.system.UInt32, /) -> typing.Optional[KeyDerivationParameters]: ...
336
+ def build_for_s_p800108(cls, label: typing.Optional[windows_storage_streams.IBuffer], context: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[KeyDerivationParameters]: ...
337
+ def build_for_s_p80056a(cls, algorithm_id: typing.Optional[windows_storage_streams.IBuffer], party_u_info: typing.Optional[windows_storage_streams.IBuffer], party_v_info: typing.Optional[windows_storage_streams.IBuffer], supp_pub_info: typing.Optional[windows_storage_streams.IBuffer], supp_priv_info: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[KeyDerivationParameters]: ...
338
+
339
+ @typing.final
340
+ class KeyDerivationParameters(winrt.system.Object, metaclass=KeyDerivationParameters_Static):
341
+ @staticmethod
342
+ def _from(obj: winrt.system.Object, /) -> KeyDerivationParameters: ...
343
+ @_property
344
+ def kdf_generic_binary(self) -> typing.Optional[windows_storage_streams.IBuffer]: ...
345
+ @kdf_generic_binary.setter
346
+ def kdf_generic_binary(self, value: typing.Optional[windows_storage_streams.IBuffer]) -> None: ...
347
+ @_property
348
+ def iteration_count(self) -> winrt.system.UInt32: ...
349
+ @_property
350
+ def capi1_kdf_target_algorithm(self) -> Capi1KdfTargetAlgorithm: ...
351
+ @capi1_kdf_target_algorithm.setter
352
+ def capi1_kdf_target_algorithm(self, value: Capi1KdfTargetAlgorithm) -> None: ...
353
+
354
+ @typing.final
355
+ class MacAlgorithmNames_Static(type):
356
+ @_property
357
+ def aes_cmac(cls) -> str: ...
358
+ @_property
359
+ def hmac_md5(cls) -> str: ...
360
+ @_property
361
+ def hmac_sha1(cls) -> str: ...
362
+ @_property
363
+ def hmac_sha256(cls) -> str: ...
364
+ @_property
365
+ def hmac_sha384(cls) -> str: ...
366
+ @_property
367
+ def hmac_sha512(cls) -> str: ...
368
+
369
+ @typing.final
370
+ class MacAlgorithmNames(winrt.system.Object, metaclass=MacAlgorithmNames_Static):
371
+ pass
372
+
373
+ @typing.final
374
+ class MacAlgorithmProvider_Static(type):
375
+ def open_algorithm(cls, algorithm: str, /) -> typing.Optional[MacAlgorithmProvider]: ...
376
+
377
+ @typing.final
378
+ class MacAlgorithmProvider(winrt.system.Object, metaclass=MacAlgorithmProvider_Static):
379
+ @staticmethod
380
+ def _from(obj: winrt.system.Object, /) -> MacAlgorithmProvider: ...
381
+ def create_hash(self, key_material: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[CryptographicHash]: ...
382
+ def create_key(self, key_material: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[CryptographicKey]: ...
383
+ @_property
384
+ def algorithm_name(self) -> str: ...
385
+ @_property
386
+ def mac_length(self) -> winrt.system.UInt32: ...
387
+
388
+ @typing.final
389
+ class PersistedKeyProvider_Static(type):
390
+ def open_key_pair_from_certificate_async(cls, certificate: typing.Optional[windows_security_cryptography_certificates.Certificate], hash_algorithm_name: str, padding: CryptographicPadding, /) -> windows_foundation.IAsyncOperation[CryptographicKey]: ...
391
+ def open_public_key_from_certificate(cls, certificate: typing.Optional[windows_security_cryptography_certificates.Certificate], hash_algorithm_name: str, padding: CryptographicPadding, /) -> typing.Optional[CryptographicKey]: ...
392
+
393
+ @typing.final
394
+ class PersistedKeyProvider(winrt.system.Object, metaclass=PersistedKeyProvider_Static):
395
+ pass
396
+
397
+ @typing.final
398
+ class SymmetricAlgorithmNames_Static(type):
399
+ @_property
400
+ def aes_cbc(cls) -> str: ...
401
+ @_property
402
+ def aes_cbc_pkcs7(cls) -> str: ...
403
+ @_property
404
+ def aes_ccm(cls) -> str: ...
405
+ @_property
406
+ def aes_ecb(cls) -> str: ...
407
+ @_property
408
+ def aes_ecb_pkcs7(cls) -> str: ...
409
+ @_property
410
+ def aes_gcm(cls) -> str: ...
411
+ @_property
412
+ def des_cbc(cls) -> str: ...
413
+ @_property
414
+ def des_cbc_pkcs7(cls) -> str: ...
415
+ @_property
416
+ def des_ecb(cls) -> str: ...
417
+ @_property
418
+ def des_ecb_pkcs7(cls) -> str: ...
419
+ @_property
420
+ def rc2_cbc(cls) -> str: ...
421
+ @_property
422
+ def rc2_cbc_pkcs7(cls) -> str: ...
423
+ @_property
424
+ def rc2_ecb(cls) -> str: ...
425
+ @_property
426
+ def rc2_ecb_pkcs7(cls) -> str: ...
427
+ @_property
428
+ def rc4(cls) -> str: ...
429
+ @_property
430
+ def triple_des_cbc(cls) -> str: ...
431
+ @_property
432
+ def triple_des_cbc_pkcs7(cls) -> str: ...
433
+ @_property
434
+ def triple_des_ecb(cls) -> str: ...
435
+ @_property
436
+ def triple_des_ecb_pkcs7(cls) -> str: ...
437
+
438
+ @typing.final
439
+ class SymmetricAlgorithmNames(winrt.system.Object, metaclass=SymmetricAlgorithmNames_Static):
440
+ pass
441
+
442
+ @typing.final
443
+ class SymmetricKeyAlgorithmProvider_Static(type):
444
+ def open_algorithm(cls, algorithm: str, /) -> typing.Optional[SymmetricKeyAlgorithmProvider]: ...
445
+
446
+ @typing.final
447
+ class SymmetricKeyAlgorithmProvider(winrt.system.Object, metaclass=SymmetricKeyAlgorithmProvider_Static):
448
+ @staticmethod
449
+ def _from(obj: winrt.system.Object, /) -> SymmetricKeyAlgorithmProvider: ...
450
+ def create_symmetric_key(self, key_material: typing.Optional[windows_storage_streams.IBuffer], /) -> typing.Optional[CryptographicKey]: ...
451
+ @_property
452
+ def algorithm_name(self) -> str: ...
453
+ @_property
454
+ def block_length(self) -> winrt.system.UInt32: ...
455
+
@@ -0,0 +1,72 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
+
3
+ import enum
4
+
5
+ import winrt.system
6
+ from winrt import _winrt_windows_security_cryptography_core
7
+
8
+ __all__ = [
9
+ "Capi1KdfTargetAlgorithm",
10
+ "CryptographicPadding",
11
+ "CryptographicPrivateKeyBlobType",
12
+ "CryptographicPublicKeyBlobType",
13
+ "AsymmetricAlgorithmNames",
14
+ "AsymmetricKeyAlgorithmProvider",
15
+ "CryptographicEngine",
16
+ "CryptographicHash",
17
+ "CryptographicKey",
18
+ "EccCurveNames",
19
+ "EncryptedAndAuthenticatedData",
20
+ "HashAlgorithmNames",
21
+ "HashAlgorithmProvider",
22
+ "KeyDerivationAlgorithmNames",
23
+ "KeyDerivationAlgorithmProvider",
24
+ "KeyDerivationParameters",
25
+ "MacAlgorithmNames",
26
+ "MacAlgorithmProvider",
27
+ "PersistedKeyProvider",
28
+ "SymmetricAlgorithmNames",
29
+ "SymmetricKeyAlgorithmProvider",
30
+ ]
31
+
32
+ class Capi1KdfTargetAlgorithm(enum.IntEnum):
33
+ NOT_AES = 0
34
+ AES = 1
35
+
36
+ class CryptographicPadding(enum.IntEnum):
37
+ NONE = 0
38
+ RSA_OAEP = 1
39
+ RSA_PKCS1_V15 = 2
40
+ RSA_PSS = 3
41
+
42
+ class CryptographicPrivateKeyBlobType(enum.IntEnum):
43
+ PKCS8_RAW_PRIVATE_KEY_INFO = 0
44
+ PKCS1_RSA_PRIVATE_KEY = 1
45
+ B_CRYPT_PRIVATE_KEY = 2
46
+ CAPI1_PRIVATE_KEY = 3
47
+ B_CRYPT_ECC_FULL_PRIVATE_KEY = 4
48
+
49
+ class CryptographicPublicKeyBlobType(enum.IntEnum):
50
+ X509_SUBJECT_PUBLIC_KEY_INFO = 0
51
+ PKCS1_RSA_PUBLIC_KEY = 1
52
+ B_CRYPT_PUBLIC_KEY = 2
53
+ CAPI1_PUBLIC_KEY = 3
54
+ B_CRYPT_ECC_FULL_PUBLIC_KEY = 4
55
+
56
+ AsymmetricAlgorithmNames = _winrt_windows_security_cryptography_core.AsymmetricAlgorithmNames
57
+ AsymmetricKeyAlgorithmProvider = _winrt_windows_security_cryptography_core.AsymmetricKeyAlgorithmProvider
58
+ CryptographicEngine = _winrt_windows_security_cryptography_core.CryptographicEngine
59
+ CryptographicHash = _winrt_windows_security_cryptography_core.CryptographicHash
60
+ CryptographicKey = _winrt_windows_security_cryptography_core.CryptographicKey
61
+ EccCurveNames = _winrt_windows_security_cryptography_core.EccCurveNames
62
+ EncryptedAndAuthenticatedData = _winrt_windows_security_cryptography_core.EncryptedAndAuthenticatedData
63
+ HashAlgorithmNames = _winrt_windows_security_cryptography_core.HashAlgorithmNames
64
+ HashAlgorithmProvider = _winrt_windows_security_cryptography_core.HashAlgorithmProvider
65
+ KeyDerivationAlgorithmNames = _winrt_windows_security_cryptography_core.KeyDerivationAlgorithmNames
66
+ KeyDerivationAlgorithmProvider = _winrt_windows_security_cryptography_core.KeyDerivationAlgorithmProvider
67
+ KeyDerivationParameters = _winrt_windows_security_cryptography_core.KeyDerivationParameters
68
+ MacAlgorithmNames = _winrt_windows_security_cryptography_core.MacAlgorithmNames
69
+ MacAlgorithmProvider = _winrt_windows_security_cryptography_core.MacAlgorithmProvider
70
+ PersistedKeyProvider = _winrt_windows_security_cryptography_core.PersistedKeyProvider
71
+ SymmetricAlgorithmNames = _winrt_windows_security_cryptography_core.SymmetricAlgorithmNames
72
+ SymmetricKeyAlgorithmProvider = _winrt_windows_security_cryptography_core.SymmetricKeyAlgorithmProvider
File without changes
@@ -0,0 +1,28 @@
1
+ Metadata-Version: 2.1
2
+ Name: winrt-Windows.Security.Cryptography.Core
3
+ Version: 2.2.0
4
+ Summary: Python projection of Windows Runtime (WinRT) APIs
5
+ License: MIT
6
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
7
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
8
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/CHANGELOG.md
9
+ Classifier: Operating System :: Microsoft :: Windows
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: Implementation :: CPython
12
+ Classifier: Intended Audience :: Developers
13
+ Requires-Python: <3.14,>=3.9
14
+ Description-Content-Type: text/markdown
15
+ Requires-Dist: winrt-runtime ==2.2.0
16
+ Provides-Extra: all
17
+ Requires-Dist: winrt-Windows.Foundation[all] ==2.2.0 ; extra == 'all'
18
+ Requires-Dist: winrt-Windows.Foundation.Collections[all] ==2.2.0 ; extra == 'all'
19
+ Requires-Dist: winrt-Windows.Security.Cryptography.Certificates[all] ==2.2.0 ; extra == 'all'
20
+ Requires-Dist: winrt-Windows.Storage.Streams[all] ==2.2.0 ; extra == 'all'
21
+
22
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
23
+
24
+ # winrt-Windows.Security.Cryptography.Core
25
+
26
+ Windows Runtime (WinRT) APIs for for the `Windows.Security.Cryptography.Core` namespace.
27
+
28
+ This package provides the `winrt.windows.security.cryptography.core` module.
@@ -0,0 +1,8 @@
1
+ winrt/_winrt_windows_security_cryptography_core.cp313-win32.pyd,sha256=1LfTpBzA6CUJcs0JoU7NSIyosRytjZu_I2G5lx0_Z40,245248
2
+ winrt/_winrt_windows_security_cryptography_core.pyi,sha256=mc4-Q1XCIyKLvhgMiAuz6MnLGCdGNIOnaNNGEjtHaJo,19117
3
+ winrt/windows/security/cryptography/core/__init__.py,sha256=yQOTp5tdHbHxHXX4W1pfPfJFI4naNAXX-yMGTSMCIKw,2974
4
+ winrt/windows/security/cryptography/core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ winrt_Windows.Security.Cryptography.Core-2.2.0.dist-info/METADATA,sha256=c5LtzKM6dt95Y0N-Hzd-SRxY7Q9kx7SdvvJ3Tn0BVPQ,1341
6
+ winrt_Windows.Security.Cryptography.Core-2.2.0.dist-info/WHEEL,sha256=rHSPOKLHVf857fDiba9Pzuf1iCvh9pcRQ5-VWQYz3ms,97
7
+ winrt_Windows.Security.Cryptography.Core-2.2.0.dist-info/top_level.txt,sha256=BzwQb4dZRt0NxCXi10ARjWsox7Asmtf_lXrw_KR-D_E,6
8
+ winrt_Windows.Security.Cryptography.Core-2.2.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (73.0.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-win32
5
+