winrt-Windows.Security.Cryptography 2.0.0b2__tar.gz → 2.1.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.0.0b2 → winrt_windows_security_cryptography-2.1.0}/PKG-INFO +3 -1
- winrt_windows_security_cryptography-2.1.0/all-requirements.txt +3 -0
- {winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/py.Windows.Security.Cryptography.cpp +83 -88
- {winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/pyproject.toml +2 -2
- winrt_windows_security_cryptography-2.1.0/pywinrt-version.txt +1 -0
- {winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/requirements.txt +2 -2
- winrt_windows_security_cryptography-2.1.0/setup.py +31 -0
- winrt_windows_security_cryptography-2.1.0/winrt/_winrt_windows_security_cryptography.pyi +35 -0
- {winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/winrt/windows/security/cryptography/__init__.py +1 -1
- winrt_windows_security_cryptography-2.1.0/winrt/windows/security/cryptography/py.typed +0 -0
- {winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/winrt_Windows.Security.Cryptography.egg-info/PKG-INFO +3 -1
- {winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/winrt_Windows.Security.Cryptography.egg-info/SOURCES.txt +1 -0
- winrt_windows_security_cryptography-2.1.0/winrt_Windows.Security.Cryptography.egg-info/requires.txt +4 -0
- winrt-Windows.Security.Cryptography-2.0.0b2/all-requirements.txt +0 -3
- winrt-Windows.Security.Cryptography-2.0.0b2/pywinrt-version.txt +0 -1
- winrt-Windows.Security.Cryptography-2.0.0b2/setup.py +0 -16
- winrt-Windows.Security.Cryptography-2.0.0b2/winrt/_winrt_windows_security_cryptography.pyi +0 -36
- winrt-Windows.Security.Cryptography-2.0.0b2/winrt_Windows.Security.Cryptography.egg-info/requires.txt +0 -4
- {winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/README.md +0 -0
- {winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/setup.cfg +0 -0
- {winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/winrt_Windows.Security.Cryptography.egg-info/dependency_links.txt +0 -0
- {winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/winrt_Windows.Security.Cryptography.egg-info/top_level.txt +0 -0
{winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Cryptography
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
18
|
|
|
17
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
20
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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,14 @@ 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
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"Compare", 2))
|
|
25
|
+
{
|
|
26
|
+
py::set_arg_count_version_error(2);
|
|
27
|
+
return nullptr;
|
|
28
|
+
}
|
|
29
|
+
|
|
31
30
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
32
31
|
auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
|
|
33
32
|
|
|
@@ -52,14 +51,14 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
52
51
|
|
|
53
52
|
if (arg_count == 2)
|
|
54
53
|
{
|
|
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
54
|
try
|
|
62
55
|
{
|
|
56
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"ConvertBinaryToString", 2))
|
|
57
|
+
{
|
|
58
|
+
py::set_arg_count_version_error(2);
|
|
59
|
+
return nullptr;
|
|
60
|
+
}
|
|
61
|
+
|
|
63
62
|
auto param0 = py::convert_to<winrt::Windows::Security::Cryptography::BinaryStringEncoding>(args, 0);
|
|
64
63
|
auto param1 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 1);
|
|
65
64
|
|
|
@@ -84,14 +83,14 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
84
83
|
|
|
85
84
|
if (arg_count == 2)
|
|
86
85
|
{
|
|
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
86
|
try
|
|
94
87
|
{
|
|
88
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"ConvertStringToBinary", 2))
|
|
89
|
+
{
|
|
90
|
+
py::set_arg_count_version_error(2);
|
|
91
|
+
return nullptr;
|
|
92
|
+
}
|
|
93
|
+
|
|
95
94
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
96
95
|
auto param1 = py::convert_to<winrt::Windows::Security::Cryptography::BinaryStringEncoding>(args, 1);
|
|
97
96
|
|
|
@@ -116,16 +115,16 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
116
115
|
|
|
117
116
|
if (arg_count == 1)
|
|
118
117
|
{
|
|
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
118
|
try
|
|
126
119
|
{
|
|
120
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"CopyToByteArray", 1))
|
|
121
|
+
{
|
|
122
|
+
py::set_arg_count_version_error(1);
|
|
123
|
+
return nullptr;
|
|
124
|
+
}
|
|
125
|
+
|
|
127
126
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
128
|
-
winrt::com_array<uint8_t> param1
|
|
127
|
+
winrt::com_array<uint8_t> param1{};
|
|
129
128
|
|
|
130
129
|
winrt::Windows::Security::Cryptography::CryptographicBuffer::CopyToByteArray(param0, param1);
|
|
131
130
|
|
|
@@ -155,14 +154,14 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
155
154
|
|
|
156
155
|
if (arg_count == 1)
|
|
157
156
|
{
|
|
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
157
|
try
|
|
165
158
|
{
|
|
159
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"CreateFromByteArray", 1))
|
|
160
|
+
{
|
|
161
|
+
py::set_arg_count_version_error(1);
|
|
162
|
+
return nullptr;
|
|
163
|
+
}
|
|
164
|
+
|
|
166
165
|
auto param0 = py::convert_to<py::pybuf_view<uint8_t, false>>(args, 0);
|
|
167
166
|
|
|
168
167
|
return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::CreateFromByteArray(param0));
|
|
@@ -186,14 +185,14 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
186
185
|
|
|
187
186
|
if (arg_count == 1)
|
|
188
187
|
{
|
|
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
188
|
try
|
|
196
189
|
{
|
|
190
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"DecodeFromBase64String", 1))
|
|
191
|
+
{
|
|
192
|
+
py::set_arg_count_version_error(1);
|
|
193
|
+
return nullptr;
|
|
194
|
+
}
|
|
195
|
+
|
|
197
196
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
198
197
|
|
|
199
198
|
return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::DecodeFromBase64String(param0));
|
|
@@ -217,14 +216,14 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
217
216
|
|
|
218
217
|
if (arg_count == 1)
|
|
219
218
|
{
|
|
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
219
|
try
|
|
227
220
|
{
|
|
221
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"DecodeFromHexString", 1))
|
|
222
|
+
{
|
|
223
|
+
py::set_arg_count_version_error(1);
|
|
224
|
+
return nullptr;
|
|
225
|
+
}
|
|
226
|
+
|
|
228
227
|
auto param0 = py::convert_to<winrt::hstring>(args, 0);
|
|
229
228
|
|
|
230
229
|
return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::DecodeFromHexString(param0));
|
|
@@ -248,14 +247,14 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
248
247
|
|
|
249
248
|
if (arg_count == 1)
|
|
250
249
|
{
|
|
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
250
|
try
|
|
258
251
|
{
|
|
252
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"EncodeToBase64String", 1))
|
|
253
|
+
{
|
|
254
|
+
py::set_arg_count_version_error(1);
|
|
255
|
+
return nullptr;
|
|
256
|
+
}
|
|
257
|
+
|
|
259
258
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
260
259
|
|
|
261
260
|
return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::EncodeToBase64String(param0));
|
|
@@ -279,14 +278,14 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
279
278
|
|
|
280
279
|
if (arg_count == 1)
|
|
281
280
|
{
|
|
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
281
|
try
|
|
289
282
|
{
|
|
283
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"EncodeToHexString", 1))
|
|
284
|
+
{
|
|
285
|
+
py::set_arg_count_version_error(1);
|
|
286
|
+
return nullptr;
|
|
287
|
+
}
|
|
288
|
+
|
|
290
289
|
auto param0 = py::convert_to<winrt::Windows::Storage::Streams::IBuffer>(args, 0);
|
|
291
290
|
|
|
292
291
|
return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::EncodeToHexString(param0));
|
|
@@ -310,14 +309,14 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
310
309
|
|
|
311
310
|
if (arg_count == 1)
|
|
312
311
|
{
|
|
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
312
|
try
|
|
320
313
|
{
|
|
314
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"GenerateRandom", 1))
|
|
315
|
+
{
|
|
316
|
+
py::set_arg_count_version_error(1);
|
|
317
|
+
return nullptr;
|
|
318
|
+
}
|
|
319
|
+
|
|
321
320
|
auto param0 = py::convert_to<uint32_t>(args, 0);
|
|
322
321
|
|
|
323
322
|
return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::GenerateRandom(param0));
|
|
@@ -341,14 +340,14 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
341
340
|
|
|
342
341
|
if (arg_count == 0)
|
|
343
342
|
{
|
|
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
343
|
try
|
|
351
344
|
{
|
|
345
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.Security.Cryptography.CryptographicBuffer", L"GenerateRandomNumber", 0))
|
|
346
|
+
{
|
|
347
|
+
py::set_arg_count_version_error(0);
|
|
348
|
+
return nullptr;
|
|
349
|
+
}
|
|
350
|
+
|
|
352
351
|
return py::convert(winrt::Windows::Security::Cryptography::CryptographicBuffer::GenerateRandomNumber());
|
|
353
352
|
}
|
|
354
353
|
catch (...)
|
|
@@ -372,22 +371,19 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
372
371
|
{ }
|
|
373
372
|
};
|
|
374
373
|
|
|
375
|
-
static PyType_Slot _type_slots_CryptographicBuffer[] =
|
|
376
|
-
{
|
|
374
|
+
static PyType_Slot _type_slots_CryptographicBuffer[] = {
|
|
377
375
|
{ Py_tp_new, reinterpret_cast<void*>(_new_CryptographicBuffer) },
|
|
378
376
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_CryptographicBuffer) },
|
|
379
377
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_CryptographicBuffer) },
|
|
380
|
-
{ }
|
|
378
|
+
{ }
|
|
381
379
|
};
|
|
382
380
|
|
|
383
|
-
static PyType_Spec type_spec_CryptographicBuffer =
|
|
384
|
-
{
|
|
381
|
+
static PyType_Spec type_spec_CryptographicBuffer = {
|
|
385
382
|
"winrt._winrt_windows_security_cryptography.CryptographicBuffer",
|
|
386
383
|
0,
|
|
387
384
|
0,
|
|
388
385
|
Py_TPFLAGS_DEFAULT,
|
|
389
|
-
_type_slots_CryptographicBuffer
|
|
390
|
-
};
|
|
386
|
+
_type_slots_CryptographicBuffer};
|
|
391
387
|
|
|
392
388
|
static PyGetSetDef getset_CryptographicBuffer_Static[] = {
|
|
393
389
|
{ }
|
|
@@ -426,20 +422,19 @@ namespace py::cpp::Windows::Security::Cryptography
|
|
|
426
422
|
};
|
|
427
423
|
|
|
428
424
|
// ----- Windows.Security.Cryptography Initialization --------------------
|
|
429
|
-
PyDoc_STRVAR(module_doc, "Windows::Security::Cryptography");
|
|
430
425
|
|
|
426
|
+
PyDoc_STRVAR(module_doc, "Windows.Security.Cryptography");
|
|
431
427
|
|
|
432
|
-
static PyModuleDef module_def
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
428
|
+
static PyModuleDef module_def = {
|
|
429
|
+
PyModuleDef_HEAD_INIT,
|
|
430
|
+
"_winrt_windows_security_cryptography",
|
|
431
|
+
module_doc,
|
|
432
|
+
0,
|
|
433
|
+
nullptr,
|
|
434
|
+
nullptr,
|
|
435
|
+
nullptr,
|
|
436
|
+
nullptr,
|
|
437
|
+
nullptr};
|
|
443
438
|
} // py::cpp::Windows::Security::Cryptography
|
|
444
439
|
|
|
445
440
|
PyMODINIT_FUNC PyInit__winrt_windows_security_cryptography(void) noexcept
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
2
|
|
|
3
3
|
[build-system]
|
|
4
|
-
requires = ["setuptools", "
|
|
4
|
+
requires = ["setuptools", "winrt-sdk"]
|
|
5
5
|
build-backend = "setuptools.build_meta"
|
|
6
6
|
|
|
7
7
|
[project]
|
|
@@ -30,7 +30,7 @@ dependencies = { file = "requirements.txt" }
|
|
|
30
30
|
optional-dependencies.all = { file = "all-requirements.txt" }
|
|
31
31
|
|
|
32
32
|
[tool.setuptools.package-data]
|
|
33
|
-
|
|
33
|
+
"*" = ["*.pyi", "py.typed"]
|
|
34
34
|
|
|
35
35
|
[tool.cibuildwheel]
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
+
|
|
3
|
+
from setuptools import Extension, setup
|
|
4
|
+
from setuptools.command.build_ext import build_ext
|
|
5
|
+
from winrt_sdk import get_include_dirs
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class build_ext_ex(build_ext):
|
|
9
|
+
def build_extension(self, ext):
|
|
10
|
+
if self.compiler.compiler_type == "msvc":
|
|
11
|
+
ext.extra_compile_args = ["/std:c++20", "/permissive-"]
|
|
12
|
+
elif self.compiler.compiler_type == "mingw32":
|
|
13
|
+
ext.extra_compile_args = ["-std=c++20", "-D_WIN32_WINNT=_WIN32_WINNT_WIN10"]
|
|
14
|
+
ext.extra_link_args = ["-loleaut32"]
|
|
15
|
+
else:
|
|
16
|
+
raise ValueError(f"Unsupported compiler: {self.compiler.compiler_type}")
|
|
17
|
+
|
|
18
|
+
build_ext.build_extension(self, ext)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
setup(
|
|
22
|
+
cmdclass = {'build_ext': build_ext_ex},
|
|
23
|
+
ext_modules=[
|
|
24
|
+
Extension(
|
|
25
|
+
"winrt._winrt_windows_security_cryptography",
|
|
26
|
+
sources=["py.Windows.Security.Cryptography.cpp"],
|
|
27
|
+
include_dirs=get_include_dirs(),
|
|
28
|
+
libraries=["windowsapp"],
|
|
29
|
+
)
|
|
30
|
+
],
|
|
31
|
+
)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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
|
+
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.Security.Cryptography
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,7 +12,9 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.0
|
|
15
16
|
Provides-Extra: all
|
|
17
|
+
Requires-Dist: winrt-Windows.Storage.Streams[all]==2.1.0; extra == "all"
|
|
16
18
|
|
|
17
19
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
18
20
|
|
|
@@ -7,6 +7,7 @@ requirements.txt
|
|
|
7
7
|
setup.py
|
|
8
8
|
winrt/_winrt_windows_security_cryptography.pyi
|
|
9
9
|
winrt/windows/security/cryptography/__init__.py
|
|
10
|
+
winrt/windows/security/cryptography/py.typed
|
|
10
11
|
winrt_Windows.Security.Cryptography.egg-info/PKG-INFO
|
|
11
12
|
winrt_Windows.Security.Cryptography.egg-info/SOURCES.txt
|
|
12
13
|
winrt_Windows.Security.Cryptography.egg-info/dependency_links.txt
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.0-beta.2
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was automatically generated.
|
|
2
|
-
|
|
3
|
-
from setuptools import Extension, setup
|
|
4
|
-
from winrt_sdk import get_include_dirs
|
|
5
|
-
|
|
6
|
-
setup(
|
|
7
|
-
ext_modules=[
|
|
8
|
-
Extension(
|
|
9
|
-
"winrt._winrt_windows_security_cryptography",
|
|
10
|
-
sources=["py.Windows.Security.Cryptography.cpp"],
|
|
11
|
-
include_dirs=get_include_dirs(),
|
|
12
|
-
extra_compile_args=["/std:c++20", "/permissive-"],
|
|
13
|
-
libraries=["windowsapp"],
|
|
14
|
-
)
|
|
15
|
-
],
|
|
16
|
-
)
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.0-beta.2
|
|
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
|
-
|
{winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/README.md
RENAMED
|
File without changes
|
{winrt-Windows.Security.Cryptography-2.0.0b2 → winrt_windows_security_cryptography-2.1.0}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|