python-pkcs11 0.10.1__cp315-cp315-win_amd64.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.
- pkcs11/__init__.py +50 -0
- pkcs11/_pkcs11.cp315-win_amd64.pyd +0 -0
- pkcs11/_pkcs11.pxd +964 -0
- pkcs11/_pkcs11.pyi +35 -0
- pkcs11/_pkcs11.pyx +2327 -0
- pkcs11/attributes.py +272 -0
- pkcs11/constants.py +559 -0
- pkcs11/defaults.py +121 -0
- pkcs11/exceptions.py +410 -0
- pkcs11/mechanisms.py +862 -0
- pkcs11/py.typed +0 -0
- pkcs11/types.py +1457 -0
- pkcs11/util/__init__.py +17 -0
- pkcs11/util/dh.py +79 -0
- pkcs11/util/dsa.py +108 -0
- pkcs11/util/ec.py +143 -0
- pkcs11/util/rsa.py +95 -0
- pkcs11/util/x509.py +136 -0
- python_pkcs11-0.10.1.dist-info/METADATA +399 -0
- python_pkcs11-0.10.1.dist-info/RECORD +23 -0
- python_pkcs11-0.10.1.dist-info/WHEEL +5 -0
- python_pkcs11-0.10.1.dist-info/licenses/LICENSE +21 -0
- python_pkcs11-0.10.1.dist-info/top_level.txt +1 -0
pkcs11/_pkcs11.pyi
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""Type stubs for the _pkcs11 Cython extension module."""
|
|
2
|
+
|
|
3
|
+
from collections.abc import Iterator
|
|
4
|
+
from typing import Any
|
|
5
|
+
|
|
6
|
+
from pkcs11.types import Slot, Token
|
|
7
|
+
|
|
8
|
+
class lib:
|
|
9
|
+
"""Main entry point for PKCS#11 library."""
|
|
10
|
+
|
|
11
|
+
so: str
|
|
12
|
+
manufacturer_id: str
|
|
13
|
+
library_description: str
|
|
14
|
+
initialized: bool
|
|
15
|
+
|
|
16
|
+
def __init__(self, so: str) -> None: ...
|
|
17
|
+
@property
|
|
18
|
+
def library_version(self) -> tuple[int, int]: ...
|
|
19
|
+
@property
|
|
20
|
+
def cryptoki_version(self) -> tuple[int, int]: ...
|
|
21
|
+
def initialize(self) -> None: ...
|
|
22
|
+
def finalize(self) -> None: ...
|
|
23
|
+
def reinitialize(self) -> None: ...
|
|
24
|
+
def unload(self) -> None: ...
|
|
25
|
+
def get_slots(self, token_present: bool = False) -> list[Slot]: ...
|
|
26
|
+
def get_tokens(
|
|
27
|
+
self,
|
|
28
|
+
token_label: str | None = None,
|
|
29
|
+
token_serial: bytes | None = None,
|
|
30
|
+
token_flags: Any | None = None,
|
|
31
|
+
slot_flags: Any | None = None,
|
|
32
|
+
mechanisms: Any | None = None,
|
|
33
|
+
) -> Iterator[Token]: ...
|
|
34
|
+
def get_token(self, **kwargs: Any) -> Token: ...
|
|
35
|
+
def wait_for_slot_event(self, blocking: bool = True) -> Slot: ...
|