LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Functions | Variables
tomcrypt_error_to_string.cpp File Reference

Functions

const char * error_to_string (int err)
 

Variables

static const char * err_2_str []
 

Function Documentation

◆ error_to_string()

const char * error_to_string ( int  err)

Convert an LTC error code to ASCII

Parameters
errThe error code
Returns
A pointer to the ASCII NUL terminated string for the error or "Invalid error code." if the err code was not valid.

Variable Documentation

◆ err_2_str

const char* err_2_str[]
static
Initial value:
= {
"CRYPT_OK",
"CRYPT_ERROR",
"Non-fatal 'no-operation' requested.",
"Invalid keysize for block cipher.",
"Invalid number of rounds for block cipher.",
"Algorithm failed test vectors.",
"Buffer overflow.",
"Invalid input packet.",
"Invalid number of bits for a PRNG.",
"Error reading the PRNG.",
"Invalid cipher specified.",
"Invalid hash specified.",
"Invalid PRNG specified.",
"Out of memory.",
"Invalid PK key or key type specified for function.",
"A private PK key is required.",
"Invalid argument provided.",
"File Not Found",
"Invalid PK type.",
"Invalid PK system.",
"Duplicate PK key found on keyring.",
"Key not found in keyring.",
"Invalid sized parameter.",
"Invalid size for prime.",
}