otp_crypto/errors library

Classes

SafeErrorMessages
OTP Crypto – Error types and safe messages

Exceptions / Errors

AuthenticationFailedException
Thrown when HMAC verification fails.
DecryptionFailedException
Thrown when decryption or padding check fails after successful MAC.
InternalCryptoException
Thrown for unexpected internal failures (should be rare).
InvalidMessageException
Thrown when the wire format is invalid (bad version/fields/base64, etc).
OtpCryptoException
Base class for all OTP crypto exceptions.
WindowOutOfRangeException
Thrown when the message window is outside the accepted tolerance.