cryptnoxpy.exceptions
¶
Module containing all exceptions that CryptnoxPy module can raise.
Module Contents¶
- exception cryptnoxpy.exceptions.CryptnoxException¶
Bases:
Exception
Base exception for the class exceptions.
- exception cryptnoxpy.exceptions.CardClosedException¶
Bases:
Exception
The card wasn’t opened with PIN code or challenge-response
- exception cryptnoxpy.exceptions.CardException¶
Bases:
CryptnoxException
No card was detected in the card reader.
- exception cryptnoxpy.exceptions.CardTypeException¶
Bases:
CryptnoxException
The detected card is not supported by this library
- exception cryptnoxpy.exceptions.CertificateException¶
Bases:
CryptnoxException
There was an issue with the certification
- exception cryptnoxpy.exceptions.ConnectionException¶
Bases:
CryptnoxException
An issue occurred in the communication with the reader
- exception cryptnoxpy.exceptions.DataException¶
Bases:
CryptnoxException
The reader returned an empty message.
- exception cryptnoxpy.exceptions.DataValidationException¶
Bases:
CryptnoxException
The sent data is not valid.
- exception cryptnoxpy.exceptions.DerivationSelectionException¶
Bases:
CryptnoxException
Not a valid derivation selection.
- exception cryptnoxpy.exceptions.EOSKeyError¶
Bases:
CryptnoxException
The signature wasn’t compatible with EOS standard after 10 tries
- exception cryptnoxpy.exceptions.FirmwareException¶
Bases:
CryptnoxException
There is an issue with the firmware on the card
- exception cryptnoxpy.exceptions.GenuineCheckException¶
Bases:
CryptnoxException
The detected card is not a genuine Cryptnox product.
- exception cryptnoxpy.exceptions.GenericException(status: bytes)¶
Bases:
CryptnoxException
Generic exception that can mean multiple things depending on the call to the card
Process stats and throw a specific Exception from it.
- exception cryptnoxpy.exceptions.InitializationException¶
Bases:
CryptnoxException
The card hasn’t been initialized.
- exception cryptnoxpy.exceptions.KeyAlreadyGenerated¶
Bases:
CryptnoxException
Key can not be generated twice.
- exception cryptnoxpy.exceptions.SeedException¶
Bases:
CryptnoxException
Keys weren’t found on the card.
- exception cryptnoxpy.exceptions.KeyGenerationException¶
Bases:
CryptnoxException
Error in key generation.
- exception cryptnoxpy.exceptions.PinAuthenticationException¶
Bases:
CryptnoxException
Error in turning off PIN authentication. There is no user key in the card
- exception cryptnoxpy.exceptions.PinException(number_of_retries: int, message: str = 'Wrong pin')¶
Bases:
CryptnoxException
Sent PIN code is not valid.
- Parameters
number_of_retries (int) – Number of retries to send the PIN code before the card is locked.
message (str) – Optional message
- exception cryptnoxpy.exceptions.PukException(number_of_retries: int = 0, message: str = 'Wrong PUK')¶
Bases:
CryptnoxException
Sent PUK code is not valid.
- Parameters
number_of_retries (int) – Number of retries to send the PIN code before the card is locked.
message (str) – Optional message
- exception cryptnoxpy.exceptions.ReadPublicKeyException¶
Bases:
CryptnoxException
Data received during public key reading is not valid.
- exception cryptnoxpy.exceptions.ReaderException¶
Bases:
CryptnoxException
Card reader wasn’t found attached to the device.
- exception cryptnoxpy.exceptions.SecureChannelException¶
Bases:
CryptnoxException
Secure channel couldn’t be established.
- exception cryptnoxpy.exceptions.SoftLock¶
Bases:
CryptnoxException
The card is soft locked, and requires power cycle before it can be opened
- exception cryptnoxpy.exceptions.CardNotBlocked¶
Bases:
CryptnoxException
Trying to unlock unblocked card