add error-codes to crypt_constants
This commit is contained in:
parent
9f548c9928
commit
a247583e63
@ -27,6 +27,33 @@ typedef struct {
|
|||||||
|
|
||||||
static const crypt_constant _crypt_constants[] = {
|
static const crypt_constant _crypt_constants[] = {
|
||||||
|
|
||||||
|
_C_STRINGIFY(CRYPT_OK),
|
||||||
|
_C_STRINGIFY(CRYPT_ERROR),
|
||||||
|
_C_STRINGIFY(CRYPT_NOP),
|
||||||
|
_C_STRINGIFY(CRYPT_INVALID_KEYSIZE),
|
||||||
|
_C_STRINGIFY(CRYPT_INVALID_ROUNDS),
|
||||||
|
_C_STRINGIFY(CRYPT_FAIL_TESTVECTOR),
|
||||||
|
_C_STRINGIFY(CRYPT_BUFFER_OVERFLOW),
|
||||||
|
_C_STRINGIFY(CRYPT_INVALID_PACKET),
|
||||||
|
_C_STRINGIFY(CRYPT_INVALID_PRNGSIZE),
|
||||||
|
_C_STRINGIFY(CRYPT_ERROR_READPRNG),
|
||||||
|
_C_STRINGIFY(CRYPT_INVALID_CIPHER),
|
||||||
|
_C_STRINGIFY(CRYPT_INVALID_HASH),
|
||||||
|
_C_STRINGIFY(CRYPT_INVALID_PRNG),
|
||||||
|
_C_STRINGIFY(CRYPT_MEM),
|
||||||
|
_C_STRINGIFY(CRYPT_PK_TYPE_MISMATCH),
|
||||||
|
_C_STRINGIFY(CRYPT_PK_NOT_PRIVATE),
|
||||||
|
_C_STRINGIFY(CRYPT_INVALID_ARG),
|
||||||
|
_C_STRINGIFY(CRYPT_FILE_NOTFOUND),
|
||||||
|
_C_STRINGIFY(CRYPT_PK_INVALID_TYPE),
|
||||||
|
_C_STRINGIFY(CRYPT_OVERFLOW),
|
||||||
|
_C_STRINGIFY(CRYPT_UNUSED1),
|
||||||
|
_C_STRINGIFY(CRYPT_UNUSED2),
|
||||||
|
_C_STRINGIFY(CRYPT_PK_INVALID_SIZE),
|
||||||
|
_C_STRINGIFY(CRYPT_INVALID_PRIME_SIZE),
|
||||||
|
_C_STRINGIFY(CRYPT_PK_INVALID_PADDING),
|
||||||
|
_C_STRINGIFY(CRYPT_HASH_OVERFLOW),
|
||||||
|
|
||||||
_C_STRINGIFY(PK_PUBLIC),
|
_C_STRINGIFY(PK_PUBLIC),
|
||||||
_C_STRINGIFY(PK_PRIVATE),
|
_C_STRINGIFY(PK_PRIVATE),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user