yubikit.core.smartcard.scp
Attributes
Classes
SCP Session Keys. |
|
SCP03 Static Keys. |
|
Enum where members are also (and must be) ints |
|
bytes(iterable_of_ints) -> bytes |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Helper class that provides a standard way to create an ABC using |
|
Module Contents
- yubikit.core.smartcard.scp.INS_INITIALIZE_UPDATE = 80
- yubikit.core.smartcard.scp.INS_EXTERNAL_AUTHENTICATE = 130
- yubikit.core.smartcard.scp.INS_INTERNAL_AUTHENTICATE = 136
- yubikit.core.smartcard.scp.INS_PERFORM_SECURITY_OPERATION = 42
- class yubikit.core.smartcard.scp.StaticKeys[source]
Bases:
NamedTuple
SCP03 Static Keys.
- class yubikit.core.smartcard.scp.ScpKid[source]
Bases:
enum.IntEnum
Enum where members are also (and must be) ints
- SCP03 = 1
- SCP11a = 17
- SCP11b = 19
- SCP11c = 21
- class yubikit.core.smartcard.scp.KeyRef(kid_or_data, kvn=None)[source]
Bases:
bytes
bytes(iterable_of_ints) -> bytes bytes(string, encoding[, errors]) -> bytes bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer bytes(int) -> bytes object of size given by the parameter initialized with null bytes bytes() -> empty bytes object
- Construct an immutable array of bytes from:
an iterable yielding integers in range(256)
a text string encoded using the specified encoding
any object implementing the buffer API.
an integer
- class yubikit.core.smartcard.scp.ScpKeyParams[source]
Bases:
abc.ABC
Helper class that provides a standard way to create an ABC using inheritance.
- class yubikit.core.smartcard.scp.Scp03KeyParams[source]
Bases:
ScpKeyParams
Helper class that provides a standard way to create an ABC using inheritance.
- keys: StaticKeys
- class yubikit.core.smartcard.scp.Scp11KeyParams[source]
Bases:
ScpKeyParams
Helper class that provides a standard way to create an ABC using inheritance.
- sk_oce_ecka: cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey | None = None
- certificates: Sequence[cryptography.x509.Certificate] = []
- yubikit.core.smartcard.scp.SendApdu
- class yubikit.core.smartcard.scp.ScpState(session_keys, mac_chain=b'\x00' * 16, enc_counter=1)[source]
- Parameters:
session_keys (SessionKeys)
mac_chain (bytes)
enc_counter (int)
- classmethod scp03_init(send_apdu, key_params, *, host_challenge=None)[source]
- Parameters:
send_apdu (SendApdu)
key_params (Scp03KeyParams)
host_challenge (Optional[bytes])
- Return type:
- classmethod scp11_init(send_apdu, key_params)[source]
- Parameters:
send_apdu (SendApdu)
key_params (Scp11KeyParams)
- Return type: