winrt-Windows.Security.Cryptography 2.3.0__tar.gz → 3.0.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.
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/PKG-INFO +4 -4
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/all-requirements.txt +2 -2
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/py.Windows.Security.Cryptography.cpp +87 -38
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/pyproject.toml +2 -2
- winrt_windows_security_cryptography-3.0.0/pywinrt-version.txt +1 -0
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/requirements.txt +2 -2
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/setup.py +1 -1
- winrt_windows_security_cryptography-3.0.0/winrt/_winrt_windows_security_cryptography.pyi +46 -0
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/winrt/windows/security/cryptography/__init__.py +4 -3
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/winrt_Windows.Security.Cryptography.egg-info/PKG-INFO +4 -4
- winrt_windows_security_cryptography-3.0.0/winrt_Windows.Security.Cryptography.egg-info/requires.txt +4 -0
- winrt_windows_security_cryptography-2.3.0/pywinrt-version.txt +0 -1
- winrt_windows_security_cryptography-2.3.0/winrt/_winrt_windows_security_cryptography.pyi +0 -35
- winrt_windows_security_cryptography-2.3.0/winrt_Windows.Security.Cryptography.egg-info/requires.txt +0 -4
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/README.md +0 -0
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/setup.cfg +0 -0
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/winrt/windows/security/cryptography/py.typed +0 -0
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/winrt_Windows.Security.Cryptography.egg-info/SOURCES.txt +0 -0
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/winrt_Windows.Security.Cryptography.egg-info/dependency_links.txt +0 -0
- {winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/winrt_Windows.Security.Cryptography.egg-info/top_level.txt +0 -0
{winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Cryptography
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.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
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-Windows.Storage.Streams[all]==
|
|
3
|
+
winrt-Windows.Storage.Streams[all]==3.0.0
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.Security.Cryptography.h"
|
|
4
4
|
|
|
@@ -15,7 +15,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
15
15
|
|
|
16
16
|
static PyObject* CryptographicBuffer_Compare(PyObject* /*unused*/, PyObject* args) noexcept
|
|
17
17
|
{
|
|
18
|
-
auto arg_count =
|
|
18
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
19
19
|
|
|
20
20
|
if (arg_count == 2)
|
|
21
21
|
{
|
|
@@ -37,7 +37,11 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
37
37
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
38
38
|
auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
|
|
39
39
|
|
|
40
|
-
return py::convert(
|
|
40
|
+
return py::convert([&]()
|
|
41
|
+
{
|
|
42
|
+
auto _gil = release_gil();
|
|
43
|
+
return winrt::Windows::Security::Cryptography::CryptographicBuffer::Compare(param0, param1);
|
|
44
|
+
}());
|
|
41
45
|
}
|
|
42
46
|
catch (...)
|
|
43
47
|
{
|
|
@@ -54,7 +58,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
54
58
|
|
|
55
59
|
static PyObject* CryptographicBuffer_ConvertBinaryToString(PyObject* /*unused*/, PyObject* args) noexcept
|
|
56
60
|
{
|
|
57
|
-
auto arg_count =
|
|
61
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
58
62
|
|
|
59
63
|
if (arg_count == 2)
|
|
60
64
|
{
|
|
@@ -76,7 +80,11 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
76
80
|
auto param0 = py::convert_to<winrt::Windows::Security::Cryptography::BinaryStringEncoding>(args, 0);
|
|
77
81
|
auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
|
|
78
82
|
|
|
79
|
-
return py::convert(
|
|
83
|
+
return py::convert([&]()
|
|
84
|
+
{
|
|
85
|
+
auto _gil = release_gil();
|
|
86
|
+
return winrt::Windows::Security::Cryptography::CryptographicBuffer::ConvertBinaryToString(param0, param1);
|
|
87
|
+
}());
|
|
80
88
|
}
|
|
81
89
|
catch (...)
|
|
82
90
|
{
|
|
@@ -93,7 +101,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
93
101
|
|
|
94
102
|
static PyObject* CryptographicBuffer_ConvertStringToBinary(PyObject* /*unused*/, PyObject* args) noexcept
|
|
95
103
|
{
|
|
96
|
-
auto arg_count =
|
|
104
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
97
105
|
|
|
98
106
|
if (arg_count == 2)
|
|
99
107
|
{
|
|
@@ -115,7 +123,11 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
115
123
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
116
124
|
auto param1 = py::convert_to<winrt::Windows::Security::Cryptography::BinaryStringEncoding>(args, 1);
|
|
117
125
|
|
|
118
|
-
return py::convert(
|
|
126
|
+
return py::convert([&]()
|
|
127
|
+
{
|
|
128
|
+
auto _gil = release_gil();
|
|
129
|
+
return winrt::Windows::Security::Cryptography::CryptographicBuffer::ConvertStringToBinary(param0, param1);
|
|
130
|
+
}());
|
|
119
131
|
}
|
|
120
132
|
catch (...)
|
|
121
133
|
{
|
|
@@ -132,7 +144,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
132
144
|
|
|
133
145
|
static PyObject* CryptographicBuffer_CopyToByteArray(PyObject* /*unused*/, PyObject* args) noexcept
|
|
134
146
|
{
|
|
135
|
-
auto arg_count =
|
|
147
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
136
148
|
|
|
137
149
|
if (arg_count == 1)
|
|
138
150
|
{
|
|
@@ -154,13 +166,17 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
154
166
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
155
167
|
winrt::com_array<uint8_t> param1{};
|
|
156
168
|
|
|
157
|
-
|
|
169
|
+
{
|
|
170
|
+
auto _gil = release_gil();
|
|
171
|
+
winrt::Windows::Security::Cryptography::CryptographicBuffer::CopyToByteArray(param0, param1);
|
|
172
|
+
}
|
|
158
173
|
|
|
159
174
|
py::pyobj_handle out1{ py::convert(param1) };
|
|
160
175
|
if (!out1)
|
|
161
176
|
{
|
|
162
177
|
return nullptr;
|
|
163
178
|
}
|
|
179
|
+
|
|
164
180
|
return out1.detach();
|
|
165
181
|
}
|
|
166
182
|
catch (...)
|
|
@@ -178,7 +194,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
178
194
|
|
|
179
195
|
static PyObject* CryptographicBuffer_CreateFromByteArray(PyObject* /*unused*/, PyObject* args) noexcept
|
|
180
196
|
{
|
|
181
|
-
auto arg_count =
|
|
197
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
182
198
|
|
|
183
199
|
if (arg_count == 1)
|
|
184
200
|
{
|
|
@@ -199,7 +215,11 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
199
215
|
|
|
200
216
|
auto param0 = py::convert_to<py::pybuf_view<uint8_t, false>>(args, 0);
|
|
201
217
|
|
|
202
|
-
return py::convert(
|
|
218
|
+
return py::convert([&]()
|
|
219
|
+
{
|
|
220
|
+
auto _gil = release_gil();
|
|
221
|
+
return winrt::Windows::Security::Cryptography::CryptographicBuffer::CreateFromByteArray(param0);
|
|
222
|
+
}());
|
|
203
223
|
}
|
|
204
224
|
catch (...)
|
|
205
225
|
{
|
|
@@ -216,7 +236,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
216
236
|
|
|
217
237
|
static PyObject* CryptographicBuffer_DecodeFromBase64String(PyObject* /*unused*/, PyObject* args) noexcept
|
|
218
238
|
{
|
|
219
|
-
auto arg_count =
|
|
239
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
220
240
|
|
|
221
241
|
if (arg_count == 1)
|
|
222
242
|
{
|
|
@@ -237,7 +257,11 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
237
257
|
|
|
238
258
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
239
259
|
|
|
240
|
-
return py::convert(
|
|
260
|
+
return py::convert([&]()
|
|
261
|
+
{
|
|
262
|
+
auto _gil = release_gil();
|
|
263
|
+
return winrt::Windows::Security::Cryptography::CryptographicBuffer::DecodeFromBase64String(param0);
|
|
264
|
+
}());
|
|
241
265
|
}
|
|
242
266
|
catch (...)
|
|
243
267
|
{
|
|
@@ -254,7 +278,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
254
278
|
|
|
255
279
|
static PyObject* CryptographicBuffer_DecodeFromHexString(PyObject* /*unused*/, PyObject* args) noexcept
|
|
256
280
|
{
|
|
257
|
-
auto arg_count =
|
|
281
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
258
282
|
|
|
259
283
|
if (arg_count == 1)
|
|
260
284
|
{
|
|
@@ -275,7 +299,11 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
275
299
|
|
|
276
300
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
277
301
|
|
|
278
|
-
return py::convert(
|
|
302
|
+
return py::convert([&]()
|
|
303
|
+
{
|
|
304
|
+
auto _gil = release_gil();
|
|
305
|
+
return winrt::Windows::Security::Cryptography::CryptographicBuffer::DecodeFromHexString(param0);
|
|
306
|
+
}());
|
|
279
307
|
}
|
|
280
308
|
catch (...)
|
|
281
309
|
{
|
|
@@ -292,7 +320,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
292
320
|
|
|
293
321
|
static PyObject* CryptographicBuffer_EncodeToBase64String(PyObject* /*unused*/, PyObject* args) noexcept
|
|
294
322
|
{
|
|
295
|
-
auto arg_count =
|
|
323
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
296
324
|
|
|
297
325
|
if (arg_count == 1)
|
|
298
326
|
{
|
|
@@ -313,7 +341,11 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
313
341
|
|
|
314
342
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
315
343
|
|
|
316
|
-
return py::convert(
|
|
344
|
+
return py::convert([&]()
|
|
345
|
+
{
|
|
346
|
+
auto _gil = release_gil();
|
|
347
|
+
return winrt::Windows::Security::Cryptography::CryptographicBuffer::EncodeToBase64String(param0);
|
|
348
|
+
}());
|
|
317
349
|
}
|
|
318
350
|
catch (...)
|
|
319
351
|
{
|
|
@@ -330,7 +362,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
330
362
|
|
|
331
363
|
static PyObject* CryptographicBuffer_EncodeToHexString(PyObject* /*unused*/, PyObject* args) noexcept
|
|
332
364
|
{
|
|
333
|
-
auto arg_count =
|
|
365
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
334
366
|
|
|
335
367
|
if (arg_count == 1)
|
|
336
368
|
{
|
|
@@ -351,7 +383,11 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
351
383
|
|
|
352
384
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
353
385
|
|
|
354
|
-
return py::convert(
|
|
386
|
+
return py::convert([&]()
|
|
387
|
+
{
|
|
388
|
+
auto _gil = release_gil();
|
|
389
|
+
return winrt::Windows::Security::Cryptography::CryptographicBuffer::EncodeToHexString(param0);
|
|
390
|
+
}());
|
|
355
391
|
}
|
|
356
392
|
catch (...)
|
|
357
393
|
{
|
|
@@ -368,7 +404,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
368
404
|
|
|
369
405
|
static PyObject* CryptographicBuffer_GenerateRandom(PyObject* /*unused*/, PyObject* args) noexcept
|
|
370
406
|
{
|
|
371
|
-
auto arg_count =
|
|
407
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
372
408
|
|
|
373
409
|
if (arg_count == 1)
|
|
374
410
|
{
|
|
@@ -389,7 +425,11 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
389
425
|
|
|
390
426
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
391
427
|
|
|
392
|
-
return py::convert(
|
|
428
|
+
return py::convert([&]()
|
|
429
|
+
{
|
|
430
|
+
auto _gil = release_gil();
|
|
431
|
+
return winrt::Windows::Security::Cryptography::CryptographicBuffer::GenerateRandom(param0);
|
|
432
|
+
}());
|
|
393
433
|
}
|
|
394
434
|
catch (...)
|
|
395
435
|
{
|
|
@@ -406,7 +446,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
406
446
|
|
|
407
447
|
static PyObject* CryptographicBuffer_GenerateRandomNumber(PyObject* /*unused*/, PyObject* args) noexcept
|
|
408
448
|
{
|
|
409
|
-
auto arg_count =
|
|
449
|
+
auto arg_count = PyTuple_GET_SIZE(args);
|
|
410
450
|
|
|
411
451
|
if (arg_count == 0)
|
|
412
452
|
{
|
|
@@ -425,7 +465,11 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
425
465
|
return nullptr;
|
|
426
466
|
}
|
|
427
467
|
|
|
428
|
-
return py::convert(
|
|
468
|
+
return py::convert([&]()
|
|
469
|
+
{
|
|
470
|
+
auto _gil = release_gil();
|
|
471
|
+
return winrt::Windows::Security::Cryptography::CryptographicBuffer::GenerateRandomNumber();
|
|
472
|
+
}());
|
|
429
473
|
}
|
|
430
474
|
catch (...)
|
|
431
475
|
{
|
|
@@ -441,19 +485,16 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
441
485
|
}
|
|
442
486
|
|
|
443
487
|
static PyMethodDef _methods_CryptographicBuffer[] = {
|
|
444
|
-
{ }
|
|
445
|
-
};
|
|
488
|
+
{ }};
|
|
446
489
|
|
|
447
490
|
static PyGetSetDef _getset_CryptographicBuffer[] = {
|
|
448
|
-
{ }
|
|
449
|
-
};
|
|
491
|
+
{ }};
|
|
450
492
|
|
|
451
493
|
static PyType_Slot _type_slots_CryptographicBuffer[] = {
|
|
452
494
|
{ Py_tp_new, reinterpret_cast<void*>(_new_CryptographicBuffer) },
|
|
453
495
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CryptographicBuffer) },
|
|
454
496
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CryptographicBuffer) },
|
|
455
|
-
{ }
|
|
456
|
-
};
|
|
497
|
+
{ }};
|
|
457
498
|
|
|
458
499
|
static PyType_Spec type_spec_CryptographicBuffer = {
|
|
459
500
|
"winrt._winrt_windows_security_cryptography.CryptographicBuffer",
|
|
@@ -463,8 +504,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
463
504
|
_type_slots_CryptographicBuffer};
|
|
464
505
|
|
|
465
506
|
static PyGetSetDef getset_CryptographicBuffer_Static[] = {
|
|
466
|
-
{ }
|
|
467
|
-
};
|
|
507
|
+
{ }};
|
|
468
508
|
|
|
469
509
|
static PyMethodDef methods_CryptographicBuffer_Static[] = {
|
|
470
510
|
{ "compare", reinterpret_cast<PyCFunction>(CryptographicBuffer_Compare), METH_VARARGS, nullptr },
|
|
@@ -478,8 +518,7 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
478
518
|
{ "encode_to_hex_string", reinterpret_cast<PyCFunction>(CryptographicBuffer_EncodeToHexString), METH_VARARGS, nullptr },
|
|
479
519
|
{ "generate_random", reinterpret_cast<PyCFunction>(CryptographicBuffer_GenerateRandom), METH_VARARGS, nullptr },
|
|
480
520
|
{ "generate_random_number", reinterpret_cast<PyCFunction>(CryptographicBuffer_GenerateRandomNumber), METH_VARARGS, nullptr },
|
|
481
|
-
{ }
|
|
482
|
-
};
|
|
521
|
+
{ }};
|
|
483
522
|
|
|
484
523
|
static PyType_Slot type_slots_CryptographicBuffer_Static[] =
|
|
485
524
|
{
|
|
@@ -489,14 +528,12 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
489
528
|
{ }
|
|
490
529
|
};
|
|
491
530
|
|
|
492
|
-
static PyType_Spec type_spec_CryptographicBuffer_Static =
|
|
493
|
-
{
|
|
531
|
+
static PyType_Spec type_spec_CryptographicBuffer_Static = {
|
|
494
532
|
"winrt._winrt_windows_security_cryptography.CryptographicBuffer_Static",
|
|
495
533
|
static_cast<int>(PyType_Type.tp_basicsize),
|
|
496
534
|
static_cast<int>(PyType_Type.tp_itemsize),
|
|
497
535
|
Py_TPFLAGS_DEFAULT,
|
|
498
|
-
type_slots_CryptographicBuffer_Static
|
|
499
|
-
};
|
|
536
|
+
type_slots_CryptographicBuffer_Static};
|
|
500
537
|
|
|
501
538
|
// ----- Windows.Security.Cryptography Initialization --------------------
|
|
502
539
|
|
|
@@ -530,6 +567,12 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_cryptography(void) noexcept
|
|
|
530
567
|
return nullptr;
|
|
531
568
|
}
|
|
532
569
|
|
|
570
|
+
auto inspectable_meta_type = py::get_inspectable_meta_type();
|
|
571
|
+
if (!inspectable_meta_type)
|
|
572
|
+
{
|
|
573
|
+
return nullptr;
|
|
574
|
+
}
|
|
575
|
+
|
|
533
576
|
auto object_type = py::get_object_type();
|
|
534
577
|
if (!object_type)
|
|
535
578
|
{
|
|
@@ -543,7 +586,13 @@ PyMODINIT_FUNC PyInit__winrt_windows_security_cryptography(void) noexcept
|
|
|
543
586
|
return nullptr;
|
|
544
587
|
}
|
|
545
588
|
|
|
546
|
-
py::pyobj_handle
|
|
589
|
+
py::pyobj_handle CryptographicBuffer_Static_bases{PyTuple_Pack(1, reinterpret_cast<PyObject*>(inspectable_meta_type))};
|
|
590
|
+
if (!CryptographicBuffer_Static_bases)
|
|
591
|
+
{
|
|
592
|
+
return nullptr;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
py::pyobj_handle type_CryptographicBuffer_Static{PyType_FromSpecWithBases(&type_spec_CryptographicBuffer_Static, CryptographicBuffer_Static_bases.get())};
|
|
547
596
|
if (!type_CryptographicBuffer_Static)
|
|
548
597
|
{
|
|
549
598
|
return nullptr;
|
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9
|
|
19
|
+
requires-python = ">=3.9"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -34,7 +34,7 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
|
-
environment = { PYTHONPATH="
|
|
37
|
+
environment = { PYTHONPATH="../../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
39
|
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
40
|
before-build = "uv pip install setuptools"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==
|
|
3
|
+
winrt-runtime==3.0.0
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.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(winrt._winrt.IInspectable_Static):
|
|
20
|
+
# System.Boolean Windows.Security.Cryptography.CryptographicBuffer::Compare(Windows.Storage.Streams.IBuffer,Windows.Storage.Streams.IBuffer)
|
|
21
|
+
def compare(cls, object1: windows_storage_streams.IBuffer, object2: windows_storage_streams.IBuffer, /) -> bool: ...
|
|
22
|
+
# System.String Windows.Security.Cryptography.CryptographicBuffer::ConvertBinaryToString(Windows.Security.Cryptography.BinaryStringEncoding,Windows.Storage.Streams.IBuffer)
|
|
23
|
+
def convert_binary_to_string(cls, encoding: BinaryStringEncoding, buffer: windows_storage_streams.IBuffer, /) -> str: ...
|
|
24
|
+
# Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.CryptographicBuffer::ConvertStringToBinary(System.String,Windows.Security.Cryptography.BinaryStringEncoding)
|
|
25
|
+
def convert_string_to_binary(cls, value: str, encoding: BinaryStringEncoding, /) -> windows_storage_streams.IBuffer: ...
|
|
26
|
+
# System.Void Windows.Security.Cryptography.CryptographicBuffer::CopyToByteArray(Windows.Storage.Streams.IBuffer,System.Byte[]&)
|
|
27
|
+
def copy_to_byte_array(cls, buffer: windows_storage_streams.IBuffer, /) -> winrt.system.Array[winrt.system.UInt8]: ...
|
|
28
|
+
# Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.CryptographicBuffer::CreateFromByteArray(System.Byte[])
|
|
29
|
+
def create_from_byte_array(cls, value: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], /) -> windows_storage_streams.IBuffer: ...
|
|
30
|
+
# Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.CryptographicBuffer::DecodeFromBase64String(System.String)
|
|
31
|
+
def decode_from_base64_string(cls, value: str, /) -> windows_storage_streams.IBuffer: ...
|
|
32
|
+
# Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.CryptographicBuffer::DecodeFromHexString(System.String)
|
|
33
|
+
def decode_from_hex_string(cls, value: str, /) -> windows_storage_streams.IBuffer: ...
|
|
34
|
+
# System.String Windows.Security.Cryptography.CryptographicBuffer::EncodeToBase64String(Windows.Storage.Streams.IBuffer)
|
|
35
|
+
def encode_to_base64_string(cls, buffer: windows_storage_streams.IBuffer, /) -> str: ...
|
|
36
|
+
# System.String Windows.Security.Cryptography.CryptographicBuffer::EncodeToHexString(Windows.Storage.Streams.IBuffer)
|
|
37
|
+
def encode_to_hex_string(cls, buffer: windows_storage_streams.IBuffer, /) -> str: ...
|
|
38
|
+
# Windows.Storage.Streams.IBuffer Windows.Security.Cryptography.CryptographicBuffer::GenerateRandom(System.UInt32)
|
|
39
|
+
def generate_random(cls, length: winrt.system.UInt32, /) -> windows_storage_streams.IBuffer: ...
|
|
40
|
+
# System.UInt32 Windows.Security.Cryptography.CryptographicBuffer::GenerateRandomNumber()
|
|
41
|
+
def generate_random_number(cls) -> winrt.system.UInt32: ...
|
|
42
|
+
|
|
43
|
+
@typing.final
|
|
44
|
+
class CryptographicBuffer(winrt.system.Object, metaclass=CryptographicBuffer_Static):
|
|
45
|
+
pass
|
|
46
|
+
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v3.0.0
|
|
2
2
|
|
|
3
3
|
import enum
|
|
4
4
|
|
|
5
5
|
import winrt.system
|
|
6
|
-
from winrt import
|
|
6
|
+
from winrt._winrt_windows_security_cryptography import (
|
|
7
|
+
CryptographicBuffer,
|
|
8
|
+
)
|
|
7
9
|
|
|
8
10
|
__all__ = [
|
|
9
11
|
"BinaryStringEncoding",
|
|
@@ -15,4 +17,3 @@ class BinaryStringEncoding(enum.IntEnum):
|
|
|
15
17
|
UTF16_L_E = 1
|
|
16
18
|
UTF16_B_E = 2
|
|
17
19
|
|
|
18
|
-
CryptographicBuffer = _winrt_windows_security_cryptography.CryptographicBuffer
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Cryptography
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.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:
|
|
13
|
+
Requires-Python: >=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==
|
|
15
|
+
Requires-Dist: winrt-runtime==3.0.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Storage.Streams[all]==
|
|
17
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==3.0.0; extra == "all"
|
|
18
18
|
|
|
19
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
20
20
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.3.0
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.3.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: typing.Union[winrt.system.Array[winrt.system.UInt8], winrt.system.ReadableBuffer], /) -> 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
|
-
|
{winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/README.md
RENAMED
|
File without changes
|
{winrt_windows_security_cryptography-2.3.0 → winrt_windows_security_cryptography-3.0.0}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|