winrt-Windows.Security.Cryptography 2.0.1__tar.gz → 2.2.0__tar.gz

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.
Files changed (20) hide show
  1. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/PKG-INFO +4 -4
  2. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/all-requirements.txt +2 -2
  3. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/py.Windows.Security.Cryptography.cpp +162 -89
  4. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/pyproject.toml +3 -2
  5. winrt_windows_security_cryptography-2.2.0/pywinrt-version.txt +1 -0
  6. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/requirements.txt +2 -2
  7. winrt_windows_security_cryptography-2.2.0/winrt/_winrt_windows_security_cryptography.pyi +35 -0
  8. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/winrt/windows/security/cryptography/__init__.py +1 -1
  9. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/winrt_Windows.Security.Cryptography.egg-info/PKG-INFO +4 -4
  10. winrt_windows_security_cryptography-2.2.0/winrt_Windows.Security.Cryptography.egg-info/requires.txt +4 -0
  11. winrt_windows_security_cryptography-2.0.1/pywinrt-version.txt +0 -1
  12. winrt_windows_security_cryptography-2.0.1/winrt/_winrt_windows_security_cryptography.pyi +0 -36
  13. winrt_windows_security_cryptography-2.0.1/winrt_Windows.Security.Cryptography.egg-info/requires.txt +0 -4
  14. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/README.md +0 -0
  15. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/setup.cfg +0 -0
  16. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/setup.py +0 -0
  17. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/winrt/windows/security/cryptography/py.typed +0 -0
  18. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/winrt_Windows.Security.Cryptography.egg-info/SOURCES.txt +0 -0
  19. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/winrt_Windows.Security.Cryptography.egg-info/dependency_links.txt +0 -0
  20. {winrt_windows_security_cryptography-2.0.1 → winrt_windows_security_cryptography-2.2.0}/winrt_Windows.Security.Cryptography.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.Cryptography
3
- Version: 2.0.1
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-Windows.Storage.Streams[all]==2.0.1
3
+ winrt-Windows.Storage.Streams[all]==2.2.0
@@ -1,8 +1,7 @@
1
- // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ // WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  #include "py.Windows.Security.Cryptography.h"
4
4
 
5
-
6
5
  namespace py::cpp::Windows::Security::Cryptography
7
6
  {
8
7
  // ----- CryptographicBuffer class --------------------
@@ -20,14 +19,21 @@ namespace py::cpp::Windows::Security::Cryptography
20
19
 
21
20
  if (arg_count == 2)
22
21
  {
23
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"Compare", 2))
24
- {
25
- py::set_arg_count_version_error(2);
26
- return nullptr;
27
- }
28
-
29
22
  try
30
23
  {
24
+ static std::optional<bool> is_overload_present{};
25
+
26
+ if (!is_overload_present.has_value())
27
+ {
28
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"Compare", 2);
29
+ }
30
+
31
+ if (!is_overload_present.value())
32
+ {
33
+ py::set_arg_count_version_error(2);
34
+ return nullptr;
35
+ }
36
+
31
37
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
32
38
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
33
39
 
@@ -52,14 +58,21 @@ namespace py::cpp::Windows::Security::Cryptography
52
58
 
53
59
  if (arg_count == 2)
54
60
  {
55
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"ConvertBinaryToString", 2))
56
- {
57
- py::set_arg_count_version_error(2);
58
- return nullptr;
59
- }
60
-
61
61
  try
62
62
  {
63
+ static std::optional<bool> is_overload_present{};
64
+
65
+ if (!is_overload_present.has_value())
66
+ {
67
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"ConvertBinaryToString", 2);
68
+ }
69
+
70
+ if (!is_overload_present.value())
71
+ {
72
+ py::set_arg_count_version_error(2);
73
+ return nullptr;
74
+ }
75
+
63
76
  auto param0 = py::convert_to<winrt::Windows::Security::Cryptography::BinaryStringEncoding>(args, 0);
64
77
  auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
65
78
 
@@ -84,14 +97,21 @@ namespace py::cpp::Windows::Security::Cryptography
84
97
 
85
98
  if (arg_count == 2)
86
99
  {
87
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"ConvertStringToBinary", 2))
88
- {
89
- py::set_arg_count_version_error(2);
90
- return nullptr;
91
- }
92
-
93
100
  try
94
101
  {
102
+ static std::optional<bool> is_overload_present{};
103
+
104
+ if (!is_overload_present.has_value())
105
+ {
106
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"ConvertStringToBinary", 2);
107
+ }
108
+
109
+ if (!is_overload_present.value())
110
+ {
111
+ py::set_arg_count_version_error(2);
112
+ return nullptr;
113
+ }
114
+
95
115
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
96
116
  auto param1 = py::convert_to<winrt::Windows::Security::Cryptography::BinaryStringEncoding>(args, 1);
97
117
 
@@ -116,16 +136,23 @@ namespace py::cpp::Windows::Security::Cryptography
116
136
 
117
137
  if (arg_count == 1)
118
138
  {
119
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"CopyToByteArray", 1))
120
- {
121
- py::set_arg_count_version_error(1);
122
- return nullptr;
123
- }
124
-
125
139
  try
126
140
  {
141
+ static std::optional<bool> is_overload_present{};
142
+
143
+ if (!is_overload_present.has_value())
144
+ {
145
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"CopyToByteArray", 1);
146
+ }
147
+
148
+ if (!is_overload_present.value())
149
+ {
150
+ py::set_arg_count_version_error(1);
151
+ return nullptr;
152
+ }
153
+
127
154
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
128
- winrt::com_array<uint8_t> param1 { };
155
+ winrt::com_array<uint8_t> param1{};
129
156
 
130
157
  winrt::Windows::Security::Cryptography::CryptographicBuffer::CopyToByteArray(param0, param1);
131
158
 
@@ -155,14 +182,21 @@ namespace py::cpp::Windows::Security::Cryptography
155
182
 
156
183
  if (arg_count == 1)
157
184
  {
158
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"CreateFromByteArray", 1))
159
- {
160
- py::set_arg_count_version_error(1);
161
- return nullptr;
162
- }
163
-
164
185
  try
165
186
  {
187
+ static std::optional<bool> is_overload_present{};
188
+
189
+ if (!is_overload_present.has_value())
190
+ {
191
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"CreateFromByteArray", 1);
192
+ }
193
+
194
+ if (!is_overload_present.value())
195
+ {
196
+ py::set_arg_count_version_error(1);
197
+ return nullptr;
198
+ }
199
+
166
200
  auto param0 = py::convert_to<py::pybuf_view<uint8_t, false>>(args, 0);
167
201
 
168
202
  return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::CreateFromByteArray(param0));
@@ -186,14 +220,21 @@ namespace py::cpp::Windows::Security::Cryptography
186
220
 
187
221
  if (arg_count == 1)
188
222
  {
189
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"DecodeFromBase64String", 1))
190
- {
191
- py::set_arg_count_version_error(1);
192
- return nullptr;
193
- }
194
-
195
223
  try
196
224
  {
225
+ static std::optional<bool> is_overload_present{};
226
+
227
+ if (!is_overload_present.has_value())
228
+ {
229
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"DecodeFromBase64String", 1);
230
+ }
231
+
232
+ if (!is_overload_present.value())
233
+ {
234
+ py::set_arg_count_version_error(1);
235
+ return nullptr;
236
+ }
237
+
197
238
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
198
239
 
199
240
  return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::DecodeFromBase64String(param0));
@@ -217,14 +258,21 @@ namespace py::cpp::Windows::Security::Cryptography
217
258
 
218
259
  if (arg_count == 1)
219
260
  {
220
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"DecodeFromHexString", 1))
221
- {
222
- py::set_arg_count_version_error(1);
223
- return nullptr;
224
- }
225
-
226
261
  try
227
262
  {
263
+ static std::optional<bool> is_overload_present{};
264
+
265
+ if (!is_overload_present.has_value())
266
+ {
267
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"DecodeFromHexString", 1);
268
+ }
269
+
270
+ if (!is_overload_present.value())
271
+ {
272
+ py::set_arg_count_version_error(1);
273
+ return nullptr;
274
+ }
275
+
228
276
  auto param0 = py::convert_to<winrt::hstring>(args, 0);
229
277
 
230
278
  return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::DecodeFromHexString(param0));
@@ -248,14 +296,21 @@ namespace py::cpp::Windows::Security::Cryptography
248
296
 
249
297
  if (arg_count == 1)
250
298
  {
251
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"EncodeToBase64String", 1))
252
- {
253
- py::set_arg_count_version_error(1);
254
- return nullptr;
255
- }
256
-
257
299
  try
258
300
  {
301
+ static std::optional<bool> is_overload_present{};
302
+
303
+ if (!is_overload_present.has_value())
304
+ {
305
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"EncodeToBase64String", 1);
306
+ }
307
+
308
+ if (!is_overload_present.value())
309
+ {
310
+ py::set_arg_count_version_error(1);
311
+ return nullptr;
312
+ }
313
+
259
314
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
260
315
 
261
316
  return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::EncodeToBase64String(param0));
@@ -279,14 +334,21 @@ namespace py::cpp::Windows::Security::Cryptography
279
334
 
280
335
  if (arg_count == 1)
281
336
  {
282
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"EncodeToHexString", 1))
283
- {
284
- py::set_arg_count_version_error(1);
285
- return nullptr;
286
- }
287
-
288
337
  try
289
338
  {
339
+ static std::optional<bool> is_overload_present{};
340
+
341
+ if (!is_overload_present.has_value())
342
+ {
343
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"EncodeToHexString", 1);
344
+ }
345
+
346
+ if (!is_overload_present.value())
347
+ {
348
+ py::set_arg_count_version_error(1);
349
+ return nullptr;
350
+ }
351
+
290
352
  auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
291
353
 
292
354
  return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::EncodeToHexString(param0));
@@ -310,14 +372,21 @@ namespace py::cpp::Windows::Security::Cryptography
310
372
 
311
373
  if (arg_count == 1)
312
374
  {
313
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"GenerateRandom", 1))
314
- {
315
- py::set_arg_count_version_error(1);
316
- return nullptr;
317
- }
318
-
319
375
  try
320
376
  {
377
+ static std::optional<bool> is_overload_present{};
378
+
379
+ if (!is_overload_present.has_value())
380
+ {
381
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"GenerateRandom", 1);
382
+ }
383
+
384
+ if (!is_overload_present.value())
385
+ {
386
+ py::set_arg_count_version_error(1);
387
+ return nullptr;
388
+ }
389
+
321
390
  auto param0 = py::convert_to<uint32_t>(args, 0);
322
391
 
323
392
  return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::GenerateRandom(param0));
@@ -341,14 +410,21 @@ namespace py::cpp::Windows::Security::Cryptography
341
410
 
342
411
  if (arg_count == 0)
343
412
  {
344
- if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"GenerateRandomNumber", 0))
345
- {
346
- py::set_arg_count_version_error(0);
347
- return nullptr;
348
- }
349
-
350
413
  try
351
414
  {
415
+ static std::optional<bool> is_overload_present{};
416
+
417
+ if (!is_overload_present.has_value())
418
+ {
419
+ is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"GenerateRandomNumber", 0);
420
+ }
421
+
422
+ if (!is_overload_present.value())
423
+ {
424
+ py::set_arg_count_version_error(0);
425
+ return nullptr;
426
+ }
427
+
352
428
  return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::GenerateRandomNumber());
353
429
  }
354
430
  catch (...)
@@ -372,22 +448,19 @@ namespace py::cpp::Windows::Security::Cryptography
372
448
  { }
373
449
  };
374
450
 
375
- static PyType_Slot _type_slots_CryptographicBuffer[] =
376
- {
451
+ static PyType_Slot _type_slots_CryptographicBuffer[] = {
377
452
  { Py_tp_new, reinterpret_cast<void*>(_new_CryptographicBuffer) },
378
453
  { Py_tp_methods, reinterpret_cast<void*>(_methods_CryptographicBuffer) },
379
454
  { Py_tp_getset, reinterpret_cast<void*>(_getset_CryptographicBuffer) },
380
- { },
455
+ { }
381
456
  };
382
457
 
383
- static PyType_Spec type_spec_CryptographicBuffer =
384
- {
458
+ static PyType_Spec type_spec_CryptographicBuffer = {
385
459
  "winrt._winrt_windows_security_cryptography.CryptographicBuffer",
386
460
  0,
387
461
  0,
388
462
  Py_TPFLAGS_DEFAULT,
389
- _type_slots_CryptographicBuffer
390
- };
463
+ _type_slots_CryptographicBuffer};
391
464
 
392
465
  static PyGetSetDef getset_CryptographicBuffer_Static[] = {
393
466
  { }
@@ -426,20 +499,19 @@ namespace py::cpp::Windows::Security::Cryptography
426
499
  };
427
500
 
428
501
  // ----- Windows.Security.Cryptography Initialization --------------------
429
- PyDoc_STRVAR(module_doc, "Windows::Security::Cryptography");
430
502
 
503
+ PyDoc_STRVAR(module_doc, "Windows.Security.Cryptography");
431
504
 
432
- static PyModuleDef module_def
433
- = {PyModuleDef_HEAD_INIT,
434
- "_winrt_windows_security_cryptography",
435
- module_doc,
436
- 0,
437
- nullptr,
438
- nullptr,
439
- nullptr,
440
- nullptr,
441
- nullptr};
442
-
505
+ static PyModuleDef module_def = {
506
+ PyModuleDef_HEAD_INIT,
507
+ "_winrt_windows_security_cryptography",
508
+ module_doc,
509
+ 0,
510
+ nullptr,
511
+ nullptr,
512
+ nullptr,
513
+ nullptr,
514
+ nullptr};
443
515
  } // py::cpp::Windows::Security::Cryptography
444
516
 
445
517
  PyMODINIT_FUNC PyInit__winrt_windows_security_cryptography(void) noexcept
@@ -477,7 +549,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_cryptography(void) noexcept
477
549
  return nullptr;
478
550
  }
479
551
 
480
- if (py::register_python_type(module.get(), &type_spec_CryptographicBuffer, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CryptographicBuffer_Static.get())) == -1)
552
+ py::pytype_handle CryptographicBuffer_type{py::register_python_type(module.get(), &type_spec_CryptographicBuffer, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_CryptographicBuffer_Static.get()))};
553
+ if (!CryptographicBuffer_type)
481
554
  {
482
555
  return nullptr;
483
556
  }
@@ -16,7 +16,7 @@ classifiers = [
16
16
  "Intended Audience :: Developers",
17
17
  ]
18
18
  dynamic = ["version", "dependencies", "optional-dependencies"]
19
- requires-python = ">=3.9,<3.13"
19
+ requires-python = ">=3.9,<3.14"
20
20
 
21
21
  [project.urls]
22
22
  # Homepage = "https://github.com/pywinrt/pywinrt"
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
36
36
  # use local winrt-sdk build dependency
37
37
  environment = { PYTHONPATH="../winrt-sdk/src" }
38
38
  # don't install winrt-sdk from PyPI
39
- build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
39
+ build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
40
+ before-build = "uv pip install setuptools"
40
41
  # don't build for PyPy
41
42
  skip = "pp*"
42
43
  # suppress warnings about ARM64 testing
@@ -1,3 +1,3 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
- winrt-runtime==2.0.1
3
+ winrt-runtime==2.2.0
@@ -0,0 +1,35 @@
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.storage.streams as windows_storage_streams
13
+
14
+ from winrt.windows.security.cryptography import BinaryStringEncoding
15
+
16
+ Self = typing.TypeVar('Self')
17
+
18
+ @typing.final
19
+ class CryptographicBuffer_Static(type):
20
+ def compare(cls, object1: typing.Optional[windows_storage_streams.IBuffer], object2: typing.Optional[windows_storage_streams.IBuffer], /) -> bool: ...
21
+ def convert_binary_to_string(cls, encoding: BinaryStringEncoding, buffer: typing.Optional[windows_storage_streams.IBuffer], /) -> str: ...
22
+ def convert_string_to_binary(cls, value: str, encoding: BinaryStringEncoding, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
23
+ def copy_to_byte_array(cls, buffer: typing.Optional[windows_storage_streams.IBuffer], /) -> winrt.system.Array[winrt.system.UInt8]: ...
24
+ def create_from_byte_array(cls, value: winrt.system.Array[winrt.system.UInt8], /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
25
+ def decode_from_base64_string(cls, value: str, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
26
+ def decode_from_hex_string(cls, value: str, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
27
+ def encode_to_base64_string(cls, buffer: typing.Optional[windows_storage_streams.IBuffer], /) -> str: ...
28
+ def encode_to_hex_string(cls, buffer: typing.Optional[windows_storage_streams.IBuffer], /) -> str: ...
29
+ def generate_random(cls, length: winrt.system.UInt32, /) -> typing.Optional[windows_storage_streams.IBuffer]: ...
30
+ def generate_random_number(cls) -> winrt.system.UInt32: ...
31
+
32
+ @typing.final
33
+ class CryptographicBuffer(winrt.system.Object, metaclass=CryptographicBuffer_Static):
34
+ pass
35
+
@@ -1,4 +1,4 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
2
2
 
3
3
  import enum
4
4
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: winrt-Windows.Security.Cryptography
3
- Version: 2.0.1
3
+ Version: 2.2.0
4
4
  Summary: Python projection of Windows Runtime (WinRT) APIs
5
5
  License: MIT
6
6
  Project-URL: Documentation, https://pywinrt.readthedocs.io
@@ -10,11 +10,11 @@ Classifier: Operating System :: Microsoft :: Windows
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: Implementation :: CPython
12
12
  Classifier: Intended Audience :: Developers
13
- Requires-Python: <3.13,>=3.9
13
+ Requires-Python: <3.14,>=3.9
14
14
  Description-Content-Type: text/markdown
15
- Requires-Dist: winrt-runtime==2.0.1
15
+ Requires-Dist: winrt-runtime==2.2.0
16
16
  Provides-Extra: all
17
- Requires-Dist: winrt-Windows.Storage.Streams[all]==2.0.1; extra == "all"
17
+ Requires-Dist: winrt-Windows.Storage.Streams[all]==2.2.0; extra == "all"
18
18
 
19
19
  <!-- warning: Please don't edit this file. It was automatically generated. -->
20
20
 
@@ -0,0 +1,4 @@
1
+ winrt-runtime==2.2.0
2
+
3
+ [all]
4
+ winrt-Windows.Storage.Streams[all]==2.2.0
@@ -1,36 +0,0 @@
1
- # WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
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.storage.streams
13
-
14
- from winrt.windows.security.cryptography import BinaryStringEncoding
15
-
16
- Self = typing.TypeVar('Self')
17
-
18
- @typing.final
19
- class CryptographicBuffer_Static(type):
20
- def compare(cls, object1: typing.Optional[winrt.windows.storage.streams.IBuffer], object2: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> bool: ...
21
- def convert_binary_to_string(cls, encoding: BinaryStringEncoding, buffer: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> str: ...
22
- def convert_string_to_binary(cls, value: str, encoding: BinaryStringEncoding, /) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
23
- def copy_to_byte_array(cls, buffer: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> winrt.system.Array[winrt.system.UInt8]: ...
24
- def create_from_byte_array(cls, value: winrt.system.Array[winrt.system.UInt8], /) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
25
- def decode_from_base64_string(cls, value: str, /) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
26
- def decode_from_hex_string(cls, value: str, /) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
27
- def encode_to_base64_string(cls, buffer: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> str: ...
28
- def encode_to_hex_string(cls, buffer: typing.Optional[winrt.windows.storage.streams.IBuffer], /) -> str: ...
29
- def generate_random(cls, length: winrt.system.UInt32, /) -> typing.Optional[winrt.windows.storage.streams.IBuffer]: ...
30
- def generate_random_number(cls) -> winrt.system.UInt32: ...
31
-
32
- @typing.final
33
- class CryptographicBuffer(winrt.system.Object, metaclass=CryptographicBuffer_Static):
34
- @staticmethod
35
- def _from(obj: winrt.system.Object, /) -> CryptographicBuffer: ...
36
-
@@ -1,4 +0,0 @@
1
- winrt-runtime==2.0.1
2
-
3
- [all]
4
- winrt-Windows.Storage.Streams[all]==2.0.1