winrt-Windows.Security.Cryptography.Core 4!10.0.28000.2705__py3-none-any.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,39 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
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
+ winrt.runtime._internals.alias_method(AsymmetricKeyAlgorithmProvider, "import_default_private_key_blob", "import_key_pair")
33
+ winrt.runtime._internals.alias_method(AsymmetricKeyAlgorithmProvider, "import_key_pair_with_blob_type", "import_key_pair")
34
+ winrt.runtime._internals.alias_method(AsymmetricKeyAlgorithmProvider, "import_default_public_key_blob", "import_public_key")
35
+ winrt.runtime._internals.alias_method(AsymmetricKeyAlgorithmProvider, "import_public_key_with_blob_type", "import_public_key")
36
+ winrt.runtime._internals.alias_method(CryptographicKey, "export_default_private_key_blob_type", "export")
37
+ winrt.runtime._internals.alias_method(CryptographicKey, "export_private_key_with_blob_type", "export")
38
+ winrt.runtime._internals.alias_method(CryptographicKey, "export_default_public_key_blob_type", "export_public_key")
39
+ winrt.runtime._internals.alias_method(CryptographicKey, "export_public_key_with_blob_type", "export_public_key")
@@ -0,0 +1,712 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import collections.abc as _cabc
4
+ import enum
5
+ import typing
6
+ from builtins import property as _property
7
+ from typing_extensions import deprecated
8
+
9
+ import winrt.system
10
+ import winrt.windows.foundation as windows_foundation
11
+ import winrt.windows.foundation.collections as windows_foundation_collections
12
+ import winrt.windows.security.cryptography.certificates as windows_security_cryptography_certificates
13
+ import winrt.windows.storage.streams as windows_storage_streams
14
+
15
+ __all__ = [
16
+ "Capi1KdfTargetAlgorithm",
17
+ "CryptographicPadding",
18
+ "CryptographicPrivateKeyBlobType",
19
+ "CryptographicPublicKeyBlobType",
20
+ "AsymmetricAlgorithmNames",
21
+ "AsymmetricKeyAlgorithmProvider",
22
+ "CryptographicEngine",
23
+ "CryptographicHash",
24
+ "CryptographicKey",
25
+ "EccCurveNames",
26
+ "EncryptedAndAuthenticatedData",
27
+ "HashAlgorithmNames",
28
+ "HashAlgorithmProvider",
29
+ "KeyDerivationAlgorithmNames",
30
+ "KeyDerivationAlgorithmProvider",
31
+ "KeyDerivationParameters",
32
+ "MacAlgorithmNames",
33
+ "MacAlgorithmProvider",
34
+ "PersistedKeyProvider",
35
+ "SymmetricAlgorithmNames",
36
+ "SymmetricKeyAlgorithmProvider",
37
+ ]
38
+
39
+ class Capi1KdfTargetAlgorithm(enum.IntEnum):
40
+ NOT_AES = 0
41
+ AES = 1
42
+
43
+ class CryptographicPadding(enum.IntEnum):
44
+ NONE = 0
45
+ RSA_OAEP = 1
46
+ RSA_PKCS1_V15 = 2
47
+ RSA_PSS = 3
48
+
49
+ class CryptographicPrivateKeyBlobType(enum.IntEnum):
50
+ PKCS8_RAW_PRIVATE_KEY_INFO = 0
51
+ PKCS1_RSA_PRIVATE_KEY = 1
52
+ B_CRYPT_PRIVATE_KEY = 2
53
+ CAPI1_PRIVATE_KEY = 3
54
+ B_CRYPT_ECC_FULL_PRIVATE_KEY = 4
55
+
56
+ class CryptographicPublicKeyBlobType(enum.IntEnum):
57
+ X509_SUBJECT_PUBLIC_KEY_INFO = 0
58
+ PKCS1_RSA_PUBLIC_KEY = 1
59
+ B_CRYPT_PUBLIC_KEY = 2
60
+ CAPI1_PUBLIC_KEY = 3
61
+ B_CRYPT_ECC_FULL_PUBLIC_KEY = 4
62
+
63
+ @typing.final
64
+ class AsymmetricAlgorithmNames_Static(winrt.system.Object_Static):
65
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_EcdsaP521Sha512()
66
+ @_property
67
+ def ecdsa_p521_sha512(cls) -> str: ...
68
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_DsaSha1()
69
+ @_property
70
+ def dsa_sha1(cls) -> str: ...
71
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_DsaSha256()
72
+ @_property
73
+ def dsa_sha256(cls) -> str: ...
74
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_EcdsaP256Sha256()
75
+ @_property
76
+ def ecdsa_p256_sha256(cls) -> str: ...
77
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_EcdsaP384Sha384()
78
+ @_property
79
+ def ecdsa_p384_sha384(cls) -> str: ...
80
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaSignPkcs1Sha256()
81
+ @_property
82
+ def rsa_sign_pkcs1_sha256(cls) -> str: ...
83
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaOaepSha1()
84
+ @_property
85
+ def rsa_oaep_sha1(cls) -> str: ...
86
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaOaepSha256()
87
+ @_property
88
+ def rsa_oaep_sha256(cls) -> str: ...
89
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaOaepSha384()
90
+ @_property
91
+ def rsa_oaep_sha384(cls) -> str: ...
92
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaOaepSha512()
93
+ @_property
94
+ def rsa_oaep_sha512(cls) -> str: ...
95
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaPkcs1()
96
+ @_property
97
+ def rsa_pkcs1(cls) -> str: ...
98
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaSignPkcs1Sha1()
99
+ @_property
100
+ def rsa_sign_pkcs1_sha1(cls) -> str: ...
101
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaSignPkcs1Sha384()
102
+ @_property
103
+ def rsa_sign_pkcs1_sha384(cls) -> str: ...
104
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaSignPkcs1Sha512()
105
+ @_property
106
+ def rsa_sign_pkcs1_sha512(cls) -> str: ...
107
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaSignPssSha1()
108
+ @_property
109
+ def rsa_sign_pss_sha1(cls) -> str: ...
110
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaSignPssSha256()
111
+ @_property
112
+ def rsa_sign_pss_sha256(cls) -> str: ...
113
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaSignPssSha384()
114
+ @_property
115
+ def rsa_sign_pss_sha384(cls) -> str: ...
116
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_RsaSignPssSha512()
117
+ @_property
118
+ def rsa_sign_pss_sha512(cls) -> str: ...
119
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_EcdsaSha384()
120
+ @_property
121
+ def ecdsa_sha384(cls) -> str: ...
122
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_EcdsaSha512()
123
+ @_property
124
+ def ecdsa_sha512(cls) -> str: ...
125
+ # System.String Windows.Security.Cryptography.Core.AsymmetricAlgorithmNames::get_EcdsaSha256()
126
+ @_property
127
+ def ecdsa_sha256(cls) -> str: ...
128
+
129
+ @typing.final
130
+ class AsymmetricAlgorithmNames(winrt.system.Object, metaclass=AsymmetricAlgorithmNames_Static):
131
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
132
+ """A class of static members only, so there is nothing to create."""
133
+
134
+ @typing.final
135
+ class AsymmetricKeyAlgorithmProvider_Static(winrt.system.Object_Static):
136
+ # Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::OpenAlgorithm(System.String)
137
+ def open_algorithm(cls, algorithm: str, /) -> AsymmetricKeyAlgorithmProvider: ...
138
+
139
+ @typing.final
140
+ class AsymmetricKeyAlgorithmProvider(winrt.system.Object, metaclass=AsymmetricKeyAlgorithmProvider_Static):
141
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
142
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
143
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::CreateKeyPair(System.UInt32)
144
+ def create_key_pair(self, key_size: winrt.system.UInt32 | typing.SupportsIndex, /) -> CryptographicKey: ...
145
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::CreateKeyPairWithCurveName(System.String)
146
+ def create_key_pair_with_curve_name(self, curve_name: str, /) -> CryptographicKey: ...
147
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::CreateKeyPairWithCurveParameters(System.Byte[])
148
+ def create_key_pair_with_curve_parameters(self, parameters: winrt.system.Array[winrt.system.UInt8] | winrt.system.ReadableBuffer, /) -> CryptographicKey: ...
149
+ @typing.overload
150
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::ImportKeyPair(Windows.Storage.Streams.IBuffer)
151
+ def import_key_pair(self, key_blob: winrt.system.ReadableBuffer, /) -> CryptographicKey: ...
152
+ @typing.overload
153
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::ImportKeyPair(Windows.Storage.Streams.IBuffer,Windows.Security.Cryptography.Core.CryptographicPrivateKeyBlobType)
154
+ def import_key_pair(self, key_blob: winrt.system.ReadableBuffer, blob_type: CryptographicPrivateKeyBlobType, /) -> CryptographicKey: ...
155
+ # Deprecated alias of import_key_pair() for pywinrt v3.x compatibility.
156
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::ImportKeyPair(Windows.Storage.Streams.IBuffer)
157
+ @deprecated("Use import_key_pair() instead.")
158
+ def import_default_private_key_blob(self, key_blob: winrt.system.ReadableBuffer, /) -> CryptographicKey: ...
159
+ # Deprecated alias of import_key_pair() for pywinrt v3.x compatibility.
160
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::ImportKeyPair(Windows.Storage.Streams.IBuffer,Windows.Security.Cryptography.Core.CryptographicPrivateKeyBlobType)
161
+ @deprecated("Use import_key_pair() instead.")
162
+ def import_key_pair_with_blob_type(self, key_blob: winrt.system.ReadableBuffer, blob_type: CryptographicPrivateKeyBlobType, /) -> CryptographicKey: ...
163
+ @typing.overload
164
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::ImportPublicKey(Windows.Storage.Streams.IBuffer)
165
+ def import_public_key(self, key_blob: winrt.system.ReadableBuffer, /) -> CryptographicKey: ...
166
+ @typing.overload
167
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::ImportPublicKey(Windows.Storage.Streams.IBuffer,Windows.Security.Cryptography.Core.CryptographicPublicKeyBlobType)
168
+ def import_public_key(self, key_blob: winrt.system.ReadableBuffer, blob_type: CryptographicPublicKeyBlobType, /) -> CryptographicKey: ...
169
+ # Deprecated alias of import_public_key() for pywinrt v3.x compatibility.
170
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::ImportPublicKey(Windows.Storage.Streams.IBuffer)
171
+ @deprecated("Use import_public_key() instead.")
172
+ def import_default_public_key_blob(self, key_blob: winrt.system.ReadableBuffer, /) -> CryptographicKey: ...
173
+ # Deprecated alias of import_public_key() for pywinrt v3.x compatibility.
174
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::ImportPublicKey(Windows.Storage.Streams.IBuffer,Windows.Security.Cryptography.Core.CryptographicPublicKeyBlobType)
175
+ @deprecated("Use import_public_key() instead.")
176
+ def import_public_key_with_blob_type(self, key_blob: winrt.system.ReadableBuffer, blob_type: CryptographicPublicKeyBlobType, /) -> CryptographicKey: ...
177
+ # System.String Windows.Security.Cryptography.Core.AsymmetricKeyAlgorithmProvider::get_AlgorithmName()
178
+ @_property
179
+ def algorithm_name(self) -> str: ...
180
+
181
+ @typing.final
182
+ class CryptographicEngine_Static(winrt.system.Object_Static):
183
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicEngine::Decrypt(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer)
184
+ def decrypt(cls, key: CryptographicKey, data: winrt.system.ReadableBuffer, iv: winrt.system.ReadableBuffer, /) -> windows_storage_streams.IBuffer: ...
185
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicEngine::DecryptAndAuthenticate(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer)
186
+ def decrypt_and_authenticate(cls, key: CryptographicKey, data: winrt.system.ReadableBuffer, nonce: winrt.system.ReadableBuffer, authentication_tag: winrt.system.ReadableBuffer, authenticated_data: winrt.system.ReadableBuffer, /) -> windows_storage_streams.IBuffer: ...
187
+ # Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IBuffer> Windows.Security.Cryptography.Core.CryptographicEngine::DecryptAsync(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer)
188
+ def decrypt_async(cls, key: CryptographicKey, data: winrt.system.ReadableBuffer, iv: winrt.system.ReadableBuffer, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
189
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicEngine::DeriveKeyMaterial(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Security.Cryptography.Core.KeyDerivationParameters,System.UInt32)
190
+ def derive_key_material(cls, key: CryptographicKey, parameters: KeyDerivationParameters, desired_key_size: winrt.system.UInt32 | typing.SupportsIndex, /) -> windows_storage_streams.IBuffer: ...
191
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicEngine::Encrypt(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer)
192
+ def encrypt(cls, key: CryptographicKey, data: winrt.system.ReadableBuffer, iv: winrt.system.ReadableBuffer, /) -> windows_storage_streams.IBuffer: ...
193
+ # Windows.Security.Cryptography.Core.EncryptedAndAuthenticatedData Windows.Security.Cryptography.Core.CryptographicEngine::EncryptAndAuthenticate(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer)
194
+ def encrypt_and_authenticate(cls, key: CryptographicKey, data: winrt.system.ReadableBuffer, nonce: winrt.system.ReadableBuffer, authenticated_data: winrt.system.ReadableBuffer, /) -> EncryptedAndAuthenticatedData: ...
195
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicEngine::Sign(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer)
196
+ def sign(cls, key: CryptographicKey, data: winrt.system.ReadableBuffer, /) -> windows_storage_streams.IBuffer: ...
197
+ # Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IBuffer> Windows.Security.Cryptography.Core.CryptographicEngine::SignAsync(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer)
198
+ def sign_async(cls, key: CryptographicKey, data: winrt.system.ReadableBuffer, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
199
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicEngine::SignHashedData(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer)
200
+ def sign_hashed_data(cls, key: CryptographicKey, data: winrt.system.ReadableBuffer, /) -> windows_storage_streams.IBuffer: ...
201
+ # Windows.Foundation.IAsyncOperation`1<Windows.Storage.Streams.IBuffer> Windows.Security.Cryptography.Core.CryptographicEngine::SignHashedDataAsync(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer)
202
+ def sign_hashed_data_async(cls, key: CryptographicKey, data: winrt.system.ReadableBuffer, /) -> windows_foundation.IAsyncOperation[windows_storage_streams.IBuffer]: ...
203
+ # System.Boolean Windows.Security.Cryptography.Core.CryptographicEngine::VerifySignature(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer)
204
+ def verify_signature(cls, key: CryptographicKey, data: winrt.system.ReadableBuffer, signature: winrt.system.ReadableBuffer, /) -> bool: ...
205
+ # System.Boolean Windows.Security.Cryptography.Core.CryptographicEngine::VerifySignatureWithHashInput(Windows.Security.Cryptography.Core.CryptographicKey,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer)
206
+ def verify_signature_with_hash_input(cls, key: CryptographicKey, data: winrt.system.ReadableBuffer, signature: winrt.system.ReadableBuffer, /) -> bool: ...
207
+
208
+ @typing.final
209
+ class CryptographicEngine(winrt.system.Object, metaclass=CryptographicEngine_Static):
210
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
211
+ """A class of static members only, so there is nothing to create."""
212
+
213
+ @typing.final
214
+ class CryptographicHash(winrt.system.Object):
215
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
216
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
217
+ # System.Void Windows.Security.Cryptography.Core.CryptographicHash::Append(Windows.Storage.Streams.IBuffer)
218
+ def append(self, data: winrt.system.ReadableBuffer, /) -> None: ...
219
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicHash::GetValueAndReset()
220
+ def get_value_and_reset(self) -> windows_storage_streams.IBuffer: ...
221
+
222
+ @typing.final
223
+ class CryptographicKey(winrt.system.Object):
224
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
225
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
226
+ @typing.overload
227
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicKey::Export()
228
+ def export(self) -> windows_storage_streams.IBuffer: ...
229
+ @typing.overload
230
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicKey::Export(Windows.Security.Cryptography.Core.CryptographicPrivateKeyBlobType)
231
+ def export(self, blob_type: CryptographicPrivateKeyBlobType, /) -> windows_storage_streams.IBuffer: ...
232
+ # Deprecated alias of export() for pywinrt v3.x compatibility.
233
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicKey::Export()
234
+ @deprecated("Use export() instead.")
235
+ def export_default_private_key_blob_type(self) -> windows_storage_streams.IBuffer: ...
236
+ # Deprecated alias of export() for pywinrt v3.x compatibility.
237
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicKey::Export(Windows.Security.Cryptography.Core.CryptographicPrivateKeyBlobType)
238
+ @deprecated("Use export() instead.")
239
+ def export_private_key_with_blob_type(self, blob_type: CryptographicPrivateKeyBlobType, /) -> windows_storage_streams.IBuffer: ...
240
+ @typing.overload
241
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicKey::ExportPublicKey()
242
+ def export_public_key(self) -> windows_storage_streams.IBuffer: ...
243
+ @typing.overload
244
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicKey::ExportPublicKey(Windows.Security.Cryptography.Core.CryptographicPublicKeyBlobType)
245
+ def export_public_key(self, blob_type: CryptographicPublicKeyBlobType, /) -> windows_storage_streams.IBuffer: ...
246
+ # Deprecated alias of export_public_key() for pywinrt v3.x compatibility.
247
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicKey::ExportPublicKey()
248
+ @deprecated("Use export_public_key() instead.")
249
+ def export_default_public_key_blob_type(self) -> windows_storage_streams.IBuffer: ...
250
+ # Deprecated alias of export_public_key() for pywinrt v3.x compatibility.
251
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.CryptographicKey::ExportPublicKey(Windows.Security.Cryptography.Core.CryptographicPublicKeyBlobType)
252
+ @deprecated("Use export_public_key() instead.")
253
+ def export_public_key_with_blob_type(self, blob_type: CryptographicPublicKeyBlobType, /) -> windows_storage_streams.IBuffer: ...
254
+ # System.UInt32 Windows.Security.Cryptography.Core.CryptographicKey::get_KeySize()
255
+ @_property
256
+ def key_size(self) -> winrt.system.UInt32: ...
257
+
258
+ @typing.final
259
+ class EccCurveNames_Static(winrt.system.Object_Static):
260
+ # Windows.Foundation.Collections.IVectorView`1<System.String> Windows.Security.Cryptography.Core.EccCurveNames::get_AllEccCurveNames()
261
+ @_property
262
+ def all_ecc_curve_names(cls) -> _cabc.Sequence[str]: ...
263
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP160r1()
264
+ @_property
265
+ def brainpool_p160r1(cls) -> str: ...
266
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP160t1()
267
+ @_property
268
+ def brainpool_p160t1(cls) -> str: ...
269
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP192r1()
270
+ @_property
271
+ def brainpool_p192r1(cls) -> str: ...
272
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP192t1()
273
+ @_property
274
+ def brainpool_p192t1(cls) -> str: ...
275
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP224r1()
276
+ @_property
277
+ def brainpool_p224r1(cls) -> str: ...
278
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP224t1()
279
+ @_property
280
+ def brainpool_p224t1(cls) -> str: ...
281
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP256r1()
282
+ @_property
283
+ def brainpool_p256r1(cls) -> str: ...
284
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP256t1()
285
+ @_property
286
+ def brainpool_p256t1(cls) -> str: ...
287
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP320r1()
288
+ @_property
289
+ def brainpool_p320r1(cls) -> str: ...
290
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP320t1()
291
+ @_property
292
+ def brainpool_p320t1(cls) -> str: ...
293
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP384r1()
294
+ @_property
295
+ def brainpool_p384r1(cls) -> str: ...
296
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP384t1()
297
+ @_property
298
+ def brainpool_p384t1(cls) -> str: ...
299
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP512r1()
300
+ @_property
301
+ def brainpool_p512r1(cls) -> str: ...
302
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_BrainpoolP512t1()
303
+ @_property
304
+ def brainpool_p512t1(cls) -> str: ...
305
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_Curve25519()
306
+ @_property
307
+ def curve25519(cls) -> str: ...
308
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_Ec192wapi()
309
+ @_property
310
+ def ec192wapi(cls) -> str: ...
311
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_NistP192()
312
+ @_property
313
+ def nist_p192(cls) -> str: ...
314
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_NistP224()
315
+ @_property
316
+ def nist_p224(cls) -> str: ...
317
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_NistP256()
318
+ @_property
319
+ def nist_p256(cls) -> str: ...
320
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_NistP384()
321
+ @_property
322
+ def nist_p384(cls) -> str: ...
323
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_NistP521()
324
+ @_property
325
+ def nist_p521(cls) -> str: ...
326
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_NumsP256t1()
327
+ @_property
328
+ def nums_p256t1(cls) -> str: ...
329
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_NumsP384t1()
330
+ @_property
331
+ def nums_p384t1(cls) -> str: ...
332
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_NumsP512t1()
333
+ @_property
334
+ def nums_p512t1(cls) -> str: ...
335
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_SecP160k1()
336
+ @_property
337
+ def sec_p160k1(cls) -> str: ...
338
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_SecP160r1()
339
+ @_property
340
+ def sec_p160r1(cls) -> str: ...
341
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_SecP160r2()
342
+ @_property
343
+ def sec_p160r2(cls) -> str: ...
344
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_SecP192k1()
345
+ @_property
346
+ def sec_p192k1(cls) -> str: ...
347
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_SecP192r1()
348
+ @_property
349
+ def sec_p192r1(cls) -> str: ...
350
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_SecP224k1()
351
+ @_property
352
+ def sec_p224k1(cls) -> str: ...
353
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_SecP224r1()
354
+ @_property
355
+ def sec_p224r1(cls) -> str: ...
356
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_SecP256k1()
357
+ @_property
358
+ def sec_p256k1(cls) -> str: ...
359
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_SecP256r1()
360
+ @_property
361
+ def sec_p256r1(cls) -> str: ...
362
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_SecP384r1()
363
+ @_property
364
+ def sec_p384r1(cls) -> str: ...
365
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_SecP521r1()
366
+ @_property
367
+ def sec_p521r1(cls) -> str: ...
368
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_Wtls12()
369
+ @_property
370
+ def wtls12(cls) -> str: ...
371
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_Wtls7()
372
+ @_property
373
+ def wtls7(cls) -> str: ...
374
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_Wtls9()
375
+ @_property
376
+ def wtls9(cls) -> str: ...
377
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_X962P192v1()
378
+ @_property
379
+ def x962_p192v1(cls) -> str: ...
380
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_X962P192v2()
381
+ @_property
382
+ def x962_p192v2(cls) -> str: ...
383
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_X962P192v3()
384
+ @_property
385
+ def x962_p192v3(cls) -> str: ...
386
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_X962P239v1()
387
+ @_property
388
+ def x962_p239v1(cls) -> str: ...
389
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_X962P239v2()
390
+ @_property
391
+ def x962_p239v2(cls) -> str: ...
392
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_X962P239v3()
393
+ @_property
394
+ def x962_p239v3(cls) -> str: ...
395
+ # System.String Windows.Security.Cryptography.Core.EccCurveNames::get_X962P256v1()
396
+ @_property
397
+ def x962_p256v1(cls) -> str: ...
398
+
399
+ @typing.final
400
+ class EccCurveNames(winrt.system.Object, metaclass=EccCurveNames_Static):
401
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
402
+ """A class of static members only, so there is nothing to create."""
403
+
404
+ @typing.final
405
+ class EncryptedAndAuthenticatedData(winrt.system.Object):
406
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
407
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
408
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.EncryptedAndAuthenticatedData::get_AuthenticationTag()
409
+ @_property
410
+ def authentication_tag(self) -> windows_storage_streams.IBuffer: ...
411
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.EncryptedAndAuthenticatedData::get_EncryptedData()
412
+ @_property
413
+ def encrypted_data(self) -> windows_storage_streams.IBuffer: ...
414
+
415
+ @typing.final
416
+ class HashAlgorithmNames_Static(winrt.system.Object_Static):
417
+ # System.String Windows.Security.Cryptography.Core.HashAlgorithmNames::get_Md5()
418
+ @_property
419
+ def md5(cls) -> str: ...
420
+ # System.String Windows.Security.Cryptography.Core.HashAlgorithmNames::get_Sha1()
421
+ @_property
422
+ def sha1(cls) -> str: ...
423
+ # System.String Windows.Security.Cryptography.Core.HashAlgorithmNames::get_Sha256()
424
+ @_property
425
+ def sha256(cls) -> str: ...
426
+ # System.String Windows.Security.Cryptography.Core.HashAlgorithmNames::get_Sha384()
427
+ @_property
428
+ def sha384(cls) -> str: ...
429
+ # System.String Windows.Security.Cryptography.Core.HashAlgorithmNames::get_Sha512()
430
+ @_property
431
+ def sha512(cls) -> str: ...
432
+
433
+ @typing.final
434
+ class HashAlgorithmNames(winrt.system.Object, metaclass=HashAlgorithmNames_Static):
435
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
436
+ """A class of static members only, so there is nothing to create."""
437
+
438
+ @typing.final
439
+ class HashAlgorithmProvider_Static(winrt.system.Object_Static):
440
+ # Windows.Security.Cryptography.Core.HashAlgorithmProvider Windows.Security.Cryptography.Core.HashAlgorithmProvider::OpenAlgorithm(System.String)
441
+ def open_algorithm(cls, algorithm: str, /) -> HashAlgorithmProvider: ...
442
+
443
+ @typing.final
444
+ class HashAlgorithmProvider(winrt.system.Object, metaclass=HashAlgorithmProvider_Static):
445
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
446
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
447
+ # Windows.Security.Cryptography.Core.CryptographicHash Windows.Security.Cryptography.Core.HashAlgorithmProvider::CreateHash()
448
+ def create_hash(self) -> CryptographicHash: ...
449
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.HashAlgorithmProvider::HashData(Windows.Storage.Streams.IBuffer)
450
+ def hash_data(self, data: winrt.system.ReadableBuffer, /) -> windows_storage_streams.IBuffer: ...
451
+ # System.String Windows.Security.Cryptography.Core.HashAlgorithmProvider::get_AlgorithmName()
452
+ @_property
453
+ def algorithm_name(self) -> str: ...
454
+ # System.UInt32 Windows.Security.Cryptography.Core.HashAlgorithmProvider::get_HashLength()
455
+ @_property
456
+ def hash_length(self) -> winrt.system.UInt32: ...
457
+
458
+ @typing.final
459
+ class KeyDerivationAlgorithmNames_Static(winrt.system.Object_Static):
460
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Pbkdf2Sha256()
461
+ @_property
462
+ def pbkdf2_sha256(cls) -> str: ...
463
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Pbkdf2Md5()
464
+ @_property
465
+ def pbkdf2_md5(cls) -> str: ...
466
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Pbkdf2Sha1()
467
+ @_property
468
+ def pbkdf2_sha1(cls) -> str: ...
469
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Sp800108CtrHmacSha512()
470
+ @_property
471
+ def sp800108_ctr_hmac_sha512(cls) -> str: ...
472
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Pbkdf2Sha384()
473
+ @_property
474
+ def pbkdf2_sha384(cls) -> str: ...
475
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Pbkdf2Sha512()
476
+ @_property
477
+ def pbkdf2_sha512(cls) -> str: ...
478
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Sp800108CtrHmacMd5()
479
+ @_property
480
+ def sp800108_ctr_hmac_md5(cls) -> str: ...
481
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Sp800108CtrHmacSha1()
482
+ @_property
483
+ def sp800108_ctr_hmac_sha1(cls) -> str: ...
484
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Sp800108CtrHmacSha256()
485
+ @_property
486
+ def sp800108_ctr_hmac_sha256(cls) -> str: ...
487
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Sp800108CtrHmacSha384()
488
+ @_property
489
+ def sp800108_ctr_hmac_sha384(cls) -> str: ...
490
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Sp80056aConcatMd5()
491
+ @_property
492
+ def sp80056a_concat_md5(cls) -> str: ...
493
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Sp80056aConcatSha1()
494
+ @_property
495
+ def sp80056a_concat_sha1(cls) -> str: ...
496
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Sp80056aConcatSha256()
497
+ @_property
498
+ def sp80056a_concat_sha256(cls) -> str: ...
499
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Sp80056aConcatSha384()
500
+ @_property
501
+ def sp80056a_concat_sha384(cls) -> str: ...
502
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_Sp80056aConcatSha512()
503
+ @_property
504
+ def sp80056a_concat_sha512(cls) -> str: ...
505
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_CapiKdfSha1()
506
+ @_property
507
+ def capi_kdf_sha1(cls) -> str: ...
508
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_CapiKdfSha256()
509
+ @_property
510
+ def capi_kdf_sha256(cls) -> str: ...
511
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_CapiKdfSha384()
512
+ @_property
513
+ def capi_kdf_sha384(cls) -> str: ...
514
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_CapiKdfSha512()
515
+ @_property
516
+ def capi_kdf_sha512(cls) -> str: ...
517
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmNames::get_CapiKdfMd5()
518
+ @_property
519
+ def capi_kdf_md5(cls) -> str: ...
520
+
521
+ @typing.final
522
+ class KeyDerivationAlgorithmNames(winrt.system.Object, metaclass=KeyDerivationAlgorithmNames_Static):
523
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
524
+ """A class of static members only, so there is nothing to create."""
525
+
526
+ @typing.final
527
+ class KeyDerivationAlgorithmProvider_Static(winrt.system.Object_Static):
528
+ # Windows.Security.Cryptography.Core.KeyDerivationAlgorithmProvider Windows.Security.Cryptography.Core.KeyDerivationAlgorithmProvider::OpenAlgorithm(System.String)
529
+ def open_algorithm(cls, algorithm: str, /) -> KeyDerivationAlgorithmProvider: ...
530
+
531
+ @typing.final
532
+ class KeyDerivationAlgorithmProvider(winrt.system.Object, metaclass=KeyDerivationAlgorithmProvider_Static):
533
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
534
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
535
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.KeyDerivationAlgorithmProvider::CreateKey(Windows.Storage.Streams.IBuffer)
536
+ def create_key(self, key_material: winrt.system.ReadableBuffer, /) -> CryptographicKey: ...
537
+ # System.String Windows.Security.Cryptography.Core.KeyDerivationAlgorithmProvider::get_AlgorithmName()
538
+ @_property
539
+ def algorithm_name(self) -> str: ...
540
+
541
+ @typing.final
542
+ class KeyDerivationParameters_Static(winrt.system.Object_Static):
543
+ # Windows.Security.Cryptography.Core.KeyDerivationParameters Windows.Security.Cryptography.Core.KeyDerivationParameters::BuildForCapi1Kdf(Windows.Security.Cryptography.Core.Capi1KdfTargetAlgorithm)
544
+ def build_for_capi1_kdf(cls, capi1_kdf_target_algorithm: Capi1KdfTargetAlgorithm, /) -> KeyDerivationParameters: ...
545
+ # Windows.Security.Cryptography.Core.KeyDerivationParameters Windows.Security.Cryptography.Core.KeyDerivationParameters::BuildForPbkdf2(Windows.Storage.Streams.IBuffer,System.UInt32)
546
+ def build_for_pbkdf2(cls, pbkdf2_salt: winrt.system.ReadableBuffer, iteration_count: winrt.system.UInt32 | typing.SupportsIndex, /) -> KeyDerivationParameters: ...
547
+ # Windows.Security.Cryptography.Core.KeyDerivationParameters Windows.Security.Cryptography.Core.KeyDerivationParameters::BuildForSP800108(Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer)
548
+ def build_for_s_p800108(cls, label: winrt.system.ReadableBuffer, context: winrt.system.ReadableBuffer, /) -> KeyDerivationParameters: ...
549
+ # Windows.Security.Cryptography.Core.KeyDerivationParameters Windows.Security.Cryptography.Core.KeyDerivationParameters::BuildForSP80056a(Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer)
550
+ def build_for_s_p80056a(cls, algorithm_id: winrt.system.ReadableBuffer, party_u_info: winrt.system.ReadableBuffer, party_v_info: winrt.system.ReadableBuffer, supp_pub_info: winrt.system.ReadableBuffer, supp_priv_info: winrt.system.ReadableBuffer, /) -> KeyDerivationParameters: ...
551
+
552
+ @typing.final
553
+ class KeyDerivationParameters(winrt.system.Object, metaclass=KeyDerivationParameters_Static):
554
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
555
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
556
+ # Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.Core.KeyDerivationParameters::get_KdfGenericBinary()
557
+ @_property
558
+ def kdf_generic_binary(self) -> windows_storage_streams.IBuffer: ...
559
+ # System.Void Windows.Security.Cryptography.Core.KeyDerivationParameters::put_KdfGenericBinary(Windows.Storage.Streams.IBuffer)
560
+ @kdf_generic_binary.setter
561
+ def kdf_generic_binary(self, value: winrt.system.ReadableBuffer) -> None: ...
562
+ # System.UInt32 Windows.Security.Cryptography.Core.KeyDerivationParameters::get_IterationCount()
563
+ @_property
564
+ def iteration_count(self) -> winrt.system.UInt32: ...
565
+ # Windows.Security.Cryptography.Core.Capi1KdfTargetAlgorithm Windows.Security.Cryptography.Core.KeyDerivationParameters::get_Capi1KdfTargetAlgorithm()
566
+ @_property
567
+ def capi1_kdf_target_algorithm(self) -> Capi1KdfTargetAlgorithm: ...
568
+ # System.Void Windows.Security.Cryptography.Core.KeyDerivationParameters::put_Capi1KdfTargetAlgorithm(Windows.Security.Cryptography.Core.Capi1KdfTargetAlgorithm)
569
+ @capi1_kdf_target_algorithm.setter
570
+ def capi1_kdf_target_algorithm(self, value: Capi1KdfTargetAlgorithm) -> None: ...
571
+
572
+ @typing.final
573
+ class MacAlgorithmNames_Static(winrt.system.Object_Static):
574
+ # System.String Windows.Security.Cryptography.Core.MacAlgorithmNames::get_AesCmac()
575
+ @_property
576
+ def aes_cmac(cls) -> str: ...
577
+ # System.String Windows.Security.Cryptography.Core.MacAlgorithmNames::get_HmacMd5()
578
+ @_property
579
+ def hmac_md5(cls) -> str: ...
580
+ # System.String Windows.Security.Cryptography.Core.MacAlgorithmNames::get_HmacSha1()
581
+ @_property
582
+ def hmac_sha1(cls) -> str: ...
583
+ # System.String Windows.Security.Cryptography.Core.MacAlgorithmNames::get_HmacSha256()
584
+ @_property
585
+ def hmac_sha256(cls) -> str: ...
586
+ # System.String Windows.Security.Cryptography.Core.MacAlgorithmNames::get_HmacSha384()
587
+ @_property
588
+ def hmac_sha384(cls) -> str: ...
589
+ # System.String Windows.Security.Cryptography.Core.MacAlgorithmNames::get_HmacSha512()
590
+ @_property
591
+ def hmac_sha512(cls) -> str: ...
592
+
593
+ @typing.final
594
+ class MacAlgorithmNames(winrt.system.Object, metaclass=MacAlgorithmNames_Static):
595
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
596
+ """A class of static members only, so there is nothing to create."""
597
+
598
+ @typing.final
599
+ class MacAlgorithmProvider_Static(winrt.system.Object_Static):
600
+ # Windows.Security.Cryptography.Core.MacAlgorithmProvider Windows.Security.Cryptography.Core.MacAlgorithmProvider::OpenAlgorithm(System.String)
601
+ def open_algorithm(cls, algorithm: str, /) -> MacAlgorithmProvider: ...
602
+
603
+ @typing.final
604
+ class MacAlgorithmProvider(winrt.system.Object, metaclass=MacAlgorithmProvider_Static):
605
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
606
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
607
+ # Windows.Security.Cryptography.Core.CryptographicHash Windows.Security.Cryptography.Core.MacAlgorithmProvider::CreateHash(Windows.Storage.Streams.IBuffer)
608
+ def create_hash(self, key_material: winrt.system.ReadableBuffer, /) -> CryptographicHash: ...
609
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.MacAlgorithmProvider::CreateKey(Windows.Storage.Streams.IBuffer)
610
+ def create_key(self, key_material: winrt.system.ReadableBuffer, /) -> CryptographicKey: ...
611
+ # System.String Windows.Security.Cryptography.Core.MacAlgorithmProvider::get_AlgorithmName()
612
+ @_property
613
+ def algorithm_name(self) -> str: ...
614
+ # System.UInt32 Windows.Security.Cryptography.Core.MacAlgorithmProvider::get_MacLength()
615
+ @_property
616
+ def mac_length(self) -> winrt.system.UInt32: ...
617
+
618
+ @typing.final
619
+ class PersistedKeyProvider_Static(winrt.system.Object_Static):
620
+ # Windows.Foundation.IAsyncOperation`1<Windows.Security.Cryptography.Core.CryptographicKey> Windows.Security.Cryptography.Core.PersistedKeyProvider::OpenKeyPairFromCertificateAsync(Windows.Security.Cryptography.Certificates.Certificate,System.String,Windows.Security.Cryptography.Core.CryptographicPadding)
621
+ def open_key_pair_from_certificate_async(cls, certificate: windows_security_cryptography_certificates.Certificate, hash_algorithm_name: str, padding: CryptographicPadding, /) -> windows_foundation.IAsyncOperation[CryptographicKey]: ...
622
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.PersistedKeyProvider::OpenPublicKeyFromCertificate(Windows.Security.Cryptography.Certificates.Certificate,System.String,Windows.Security.Cryptography.Core.CryptographicPadding)
623
+ def open_public_key_from_certificate(cls, certificate: windows_security_cryptography_certificates.Certificate, hash_algorithm_name: str, padding: CryptographicPadding, /) -> CryptographicKey: ...
624
+
625
+ @typing.final
626
+ class PersistedKeyProvider(winrt.system.Object, metaclass=PersistedKeyProvider_Static):
627
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
628
+ """A class of static members only, so there is nothing to create."""
629
+
630
+ @typing.final
631
+ class SymmetricAlgorithmNames_Static(winrt.system.Object_Static):
632
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_AesCbc()
633
+ @_property
634
+ def aes_cbc(cls) -> str: ...
635
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_AesCbcPkcs7()
636
+ @_property
637
+ def aes_cbc_pkcs7(cls) -> str: ...
638
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_AesCcm()
639
+ @_property
640
+ def aes_ccm(cls) -> str: ...
641
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_AesEcb()
642
+ @_property
643
+ def aes_ecb(cls) -> str: ...
644
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_AesEcbPkcs7()
645
+ @_property
646
+ def aes_ecb_pkcs7(cls) -> str: ...
647
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_AesGcm()
648
+ @_property
649
+ def aes_gcm(cls) -> str: ...
650
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_DesCbc()
651
+ @_property
652
+ def des_cbc(cls) -> str: ...
653
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_DesCbcPkcs7()
654
+ @_property
655
+ def des_cbc_pkcs7(cls) -> str: ...
656
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_DesEcb()
657
+ @_property
658
+ def des_ecb(cls) -> str: ...
659
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_DesEcbPkcs7()
660
+ @_property
661
+ def des_ecb_pkcs7(cls) -> str: ...
662
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_Rc2Cbc()
663
+ @_property
664
+ def rc2_cbc(cls) -> str: ...
665
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_Rc2CbcPkcs7()
666
+ @_property
667
+ def rc2_cbc_pkcs7(cls) -> str: ...
668
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_Rc2Ecb()
669
+ @_property
670
+ def rc2_ecb(cls) -> str: ...
671
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_Rc2EcbPkcs7()
672
+ @_property
673
+ def rc2_ecb_pkcs7(cls) -> str: ...
674
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_Rc4()
675
+ @_property
676
+ def rc4(cls) -> str: ...
677
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_TripleDesCbc()
678
+ @_property
679
+ def triple_des_cbc(cls) -> str: ...
680
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_TripleDesCbcPkcs7()
681
+ @_property
682
+ def triple_des_cbc_pkcs7(cls) -> str: ...
683
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_TripleDesEcb()
684
+ @_property
685
+ def triple_des_ecb(cls) -> str: ...
686
+ # System.String Windows.Security.Cryptography.Core.SymmetricAlgorithmNames::get_TripleDesEcbPkcs7()
687
+ @_property
688
+ def triple_des_ecb_pkcs7(cls) -> str: ...
689
+
690
+ @typing.final
691
+ class SymmetricAlgorithmNames(winrt.system.Object, metaclass=SymmetricAlgorithmNames_Static):
692
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
693
+ """A class of static members only, so there is nothing to create."""
694
+
695
+ @typing.final
696
+ class SymmetricKeyAlgorithmProvider_Static(winrt.system.Object_Static):
697
+ # Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider::OpenAlgorithm(System.String)
698
+ def open_algorithm(cls, algorithm: str, /) -> SymmetricKeyAlgorithmProvider: ...
699
+
700
+ @typing.final
701
+ class SymmetricKeyAlgorithmProvider(winrt.system.Object, metaclass=SymmetricKeyAlgorithmProvider_Static):
702
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
703
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
704
+ # Windows.Security.Cryptography.Core.CryptographicKey Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider::CreateSymmetricKey(Windows.Storage.Streams.IBuffer)
705
+ def create_symmetric_key(self, key_material: winrt.system.ReadableBuffer, /) -> CryptographicKey: ...
706
+ # System.String Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider::get_AlgorithmName()
707
+ @_property
708
+ def algorithm_name(self) -> str: ...
709
+ # System.UInt32 Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider::get_BlockLength()
710
+ @_property
711
+ def block_length(self) -> winrt.system.UInt32: ...
712
+
File without changes
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.Security.Cryptography.Core
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.Security.Cryptography.Core namespace
5
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
6
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: winrt-runtime<5,>=4.0.0
23
+ Requires-Dist: winrt-windows-foundation-collections>=4!10.0.28000.2705
24
+ Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
25
+ Requires-Dist: winrt-windows-storage-streams>=4!10.0.28000.2705
26
+ Provides-Extra: all
27
+ Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
28
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
29
+ Requires-Dist: winrt-windows-security-cryptography-certificates[all]>=4!10.0.28000.2705; extra == 'all'
30
+ Requires-Dist: winrt-windows-storage-streams[all]>=4!10.0.28000.2705; extra == 'all'
31
+ Description-Content-Type: text/markdown
32
+
33
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
34
+
35
+ # winrt-Windows.Security.Cryptography.Core
36
+
37
+ Windows Runtime (WinRT) APIs for the `Windows.Security.Cryptography.Core` namespace.
38
+
39
+ This package provides the `winrt.windows.security.cryptography.core` module.
40
+
41
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
42
+ `Microsoft.Windows.SDK.CPP` NuGet package.
43
+
44
+ ```
45
+ pip install winrt-Windows.Security.Cryptography.Core
46
+ ```
47
+
48
+ Other WinRT namespaces are packages of their own, so install the package of
49
+ each namespace your code imports from.
@@ -0,0 +1,8 @@
1
+ winrt/windows/security/cryptography/core/__init__.py,sha256=SKxs3dXccmnpOfzv4a-nEdlyChARBV3B4sVSnQMjUsg,1779
2
+ winrt/windows/security/cryptography/core/__init__.pyi,sha256=Nb4-6JO5rR1KRmNGaWNxp3SzTKB4otDx6CtgE_ymvEs,44939
3
+ winrt/windows/security/cryptography/core/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/security/cryptography/core/_table.pywinrt,sha256=HTywBS5deG5ylu0uX8H-9_OCLnBu3_7AD679jbVixUY,33960
5
+ winrt_windows_security_cryptography_core-4!10.0.28000.2705.dist-info/METADATA,sha256=3u1ZOR94iyrQWsnYL1tujKbGIAbmBGd12Q3UjNIvsmM,2266
6
+ winrt_windows_security_cryptography_core-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_security_cryptography_core-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_security_cryptography_core-4!10.0.28000.2705.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE