cx_errors.h | Developers

cx_errors.h

Back to the files list

Error codes related to cryptography and arithmetic operations. More...

Macros

#define CX_CHECK(call)
 Checks the error code of a function. More...
#define CX_CHECK_IGNORE_CARRY(call)
 Checks the error code of a function and ignore it if CX_CARRY. More...
#define CX_OK   0x00000000
 Success. More...
#define CX_CARRY   0xFFFFFF21
 There exists a carry at the end of the operation. More...
#define CX_LOCKED   0xFFFFFF81
 Multi Precision Integer processor is locked: operations can be done. More...
#define CX_UNLOCKED   0xFFFFFF82
 Multi Precision Integer processor is unlocked: operations can't be done. More...
#define CX_NOT_LOCKED   0xFFFFFF83
 Multi Precision Integer processor is not locked: it cannot be unlocked. More...
#define CX_NOT_UNLOCKED   0xFFFFFF84
 Multi Precision Integer processor is already locked: it cannot be locked. More...
#define CX_INTERNAL_ERROR   0xFFFFFF85
 Internal error. More...
#define CX_INVALID_PARAMETER_SIZE   0xFFFFFF86
 A parameter has an invalid size. More...
#define CX_INVALID_PARAMETER_VALUE   0xFFFFFF87
 A parameter has an invalid value. More...
#define CX_INVALID_PARAMETER   0xFFFFFF88
 A parameter is invalid. More...
#define CX_NOT_INVERTIBLE   0xFFFFFF89
 A value is not invertible. More...
#define CX_OVERFLOW   0xFFFFFF8A
 A value overflow occurred. More...
#define CX_MEMORY_FULL   0xFFFFFF8B
 Memory is full: allocation is not possible anymore. More...
#define CX_NO_RESIDUE   0xFFFFFF8C
 A quadratic residue cannot be computed. More...
#define CX_EC_INFINITE_POINT   0xFFFFFF41
 Point at infinity is hit. More...
#define CX_EC_INVALID_POINT   0xFFFFFFA2
 Point is invalid: it does not belong to the curve. More...
#define CX_EC_INVALID_CURVE   0xFFFFFFA3
 Curve is invalid. More...

Typedefs

typedef uint32_t cx_err_t
 Type of error code. More...

Detailed Description

Error codes related to cryptography and arithmetic operations.

Macro Definition Documentation

CX_CARRY

#define CX_CARRY   0xFFFFFF21

There exists a carry at the end of the operation.

CX_CHECK

#define CX_CHECK (   call)

Checks the error code of a function.

CX_CHECK_IGNORE_CARRY

#define CX_CHECK_IGNORE_CARRY (   call)

Checks the error code of a function and ignore it if CX_CARRY.

CX_EC_INFINITE_POINT

#define CX_EC_INFINITE_POINT   0xFFFFFF41

Point at infinity is hit.

CX_EC_INVALID_CURVE

#define CX_EC_INVALID_CURVE   0xFFFFFFA3

Curve is invalid.

CX_EC_INVALID_POINT

#define CX_EC_INVALID_POINT   0xFFFFFFA2

Point is invalid: it does not belong to the curve.

CX_INTERNAL_ERROR

#define CX_INTERNAL_ERROR   0xFFFFFF85

Internal error.

CX_INVALID_PARAMETER

#define CX_INVALID_PARAMETER   0xFFFFFF88

A parameter is invalid.

CX_INVALID_PARAMETER_SIZE

#define CX_INVALID_PARAMETER_SIZE   0xFFFFFF86

A parameter has an invalid size.

CX_INVALID_PARAMETER_VALUE

#define CX_INVALID_PARAMETER_VALUE   0xFFFFFF87

A parameter has an invalid value.

CX_LOCKED

#define CX_LOCKED   0xFFFFFF81

Multi Precision Integer processor is locked: operations can be done.

CX_MEMORY_FULL

#define CX_MEMORY_FULL   0xFFFFFF8B

Memory is full: allocation is not possible anymore.

CX_NO_RESIDUE

#define CX_NO_RESIDUE   0xFFFFFF8C

A quadratic residue cannot be computed.

CX_NOT_INVERTIBLE

#define CX_NOT_INVERTIBLE   0xFFFFFF89

A value is not invertible.

CX_NOT_LOCKED

#define CX_NOT_LOCKED   0xFFFFFF83

Multi Precision Integer processor is not locked: it cannot be unlocked.

CX_NOT_UNLOCKED

#define CX_NOT_UNLOCKED   0xFFFFFF84

Multi Precision Integer processor is already locked: it cannot be locked.

CX_OK

#define CX_OK   0x00000000

Success.

CX_OVERFLOW

#define CX_OVERFLOW   0xFFFFFF8A

A value overflow occurred.

CX_UNLOCKED

#define CX_UNLOCKED   0xFFFFFF82

Multi Precision Integer processor is unlocked: operations can't be done.

Typedef Documentation

cx_err_t

typedef uint32_t cx_err_t

Type of error code.

Back to the files list


Did you find this page helpful?


How would you improve this page for developers?



Getting Started
Theme Features
Customization

Nano Apps