4. CMOX_RSA_RETVALS

4.1. RSA return values

group CMOX_RSA_RETVALS

Defines

CMOX_RSA_SUCCESS

RSA operation successfully performed

CMOX_RSA_ERR_INTERNAL

Internal computat. error (e.g. hash)

CMOX_RSA_ERR_BAD_PARAMETER

One of the expected parameter is invalid

CMOX_RSA_ERR_MODULUS_TOO_SHORT

Input too long for the current modulus

CMOX_RSA_ERR_INVALID_SIGNATURE

RSA invalid signature value

CMOX_RSA_ERR_WRONG_DECRYPTION

RSA invalid decryption, due to mismatch between private key and input

CMOX_RSA_ERR_WRONG_RANDOM

Random not compliant with the API (Recall with other random material)

CMOX_RSA_ERR_MEMORY_FAIL

Not enough memory

CMOX_RSA_ERR_MATH_ALGO_MISMATCH

Math customization not supported by current functionality

CMOX_RSA_ERR_MEXP_ALGO_MISMATCH

Modexp function not supported by current functionality

CMOX_RSA_AUTH_SUCCESS

RSA signature successful verification

CMOX_RSA_AUTH_FAIL

RSA signature not verified

Typedefs

typedef uint32_t cmox_rsa_retval_t

Return value type for RSA module.