cryptnoxpy.exceptions¶
Module containing all exceptions that CryptnoxPy module can raise.
Module Contents¶
- exception cryptnoxpy.exceptions.CryptnoxException¶
Bases:
ExceptionBase exception for the class exceptions.
- exception cryptnoxpy.exceptions.CardClosedException¶
Bases:
ExceptionThe card wasn’t opened with PIN code or challenge-response
- exception cryptnoxpy.exceptions.CardException¶
Bases:
CryptnoxExceptionNo card was detected in the card reader.
- exception cryptnoxpy.exceptions.CardTypeException¶
Bases:
CryptnoxExceptionThe detected card is not supported by this library
- exception cryptnoxpy.exceptions.CertificateException¶
Bases:
CryptnoxExceptionThere was an issue with the certification
- exception cryptnoxpy.exceptions.ConnectionException¶
Bases:
CryptnoxExceptionAn issue occurred in the communication with the reader
- exception cryptnoxpy.exceptions.DataException¶
Bases:
CryptnoxExceptionThe reader returned an empty message.
- exception cryptnoxpy.exceptions.DataValidationException¶
Bases:
CryptnoxExceptionThe sent data is not valid.
- exception cryptnoxpy.exceptions.DerivationSelectionException¶
Bases:
CryptnoxExceptionNot a valid derivation selection.
- exception cryptnoxpy.exceptions.KeySelectionException¶
Bases:
CryptnoxExceptionNot a valid key type selection
- exception cryptnoxpy.exceptions.EOSKeyError¶
Bases:
CryptnoxExceptionThe signature wasn’t compatible with EOS standard after 10 tries
- exception cryptnoxpy.exceptions.FirmwareException¶
Bases:
CryptnoxExceptionThere is an issue with the firmware on the card
- exception cryptnoxpy.exceptions.GenuineCheckException¶
Bases:
CryptnoxExceptionThe detected card is not a genuine Cryptnox product.
- exception cryptnoxpy.exceptions.GenericException(status: bytes)¶
Bases:
CryptnoxExceptionGeneric 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:
CryptnoxExceptionThe card hasn’t been initialized.
- exception cryptnoxpy.exceptions.KeyAlreadyGenerated¶
Bases:
CryptnoxExceptionKey can not be generated twice.
- exception cryptnoxpy.exceptions.SeedException¶
Bases:
CryptnoxExceptionKeys weren’t found on the card.
- exception cryptnoxpy.exceptions.KeyGenerationException¶
Bases:
CryptnoxExceptionError in key generation.
- exception cryptnoxpy.exceptions.PinAuthenticationException¶
Bases:
CryptnoxExceptionError in turning off PIN authentication. There is no user key in the card
- exception cryptnoxpy.exceptions.PinException(message: str = 'Invalid PIN code was provided', number_of_retries: int = 0)¶
Bases:
CryptnoxExceptionSent 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(message: str = 'Invalid PUK code was provided', number_of_retries: int = 0)¶
Bases:
CryptnoxExceptionSent 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:
CryptnoxExceptionData received during public key reading is not valid.
- exception cryptnoxpy.exceptions.ReaderException¶
Bases:
CryptnoxExceptionCard reader wasn’t found attached to the device.
- exception cryptnoxpy.exceptions.SecureChannelException¶
Bases:
CryptnoxExceptionSecure channel couldn’t be established.
- exception cryptnoxpy.exceptions.SoftLock¶
Bases:
CryptnoxExceptionThe card is soft locked, and requires power cycle before it can be opened
- exception cryptnoxpy.exceptions.CardNotBlocked¶
Bases:
CryptnoxExceptionTrying to unlock unblocked card