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/_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: ...