4.1.2 crypto_Hash_Status_E
Description
This Enum is used to represent the return type of Hash algorithm APIs.
| Enumeration Data Types | Numerical Value | Description |
|---|---|---|
| CRYPTO_HASH_ERROR_NOTSUPPTED | -127 | Error when cipher algorithm not supported by Crypto software component |
| CRYPTO_HASH_ERROR_CTX | -126 | Error when context pointer is NULL |
| CRYPTO_HASH_ERROR_INPUTDATA | -125 | Error when input data length is zero or its pointer is NULL |
| CRYPTO_HASH_ERROR_OUTPUTDATA | -124 | Error when output data pointer is NULL |
| CRYPTO_HASH_ERROR_SID | -123 | Error when session ID is zero or its value is more than max session configured in configurations |
| CRYPTO_HASH_ERROR_ALGO | -122 | Error when hash algorithm passed in argument is not in defined range of enum crypto_Hash_Algo_E |
| CRYPTO_HASH_ERROR_KEY | -121 | Error when key length is above or below its range or key pointer is NULL for BLAKE algorithm |
| CRYPTO_HASH_ERROR_ARG | -120 | Error when any other argument is invalid |
| CRYPTO_HASH_ERROR_HDLR | -119 | Error when handler type is invalid |
| CRYPTO_HASH_ERROR_FAIL | -118 | When any failure occurred while calculating hash |
| CRYPTO_HASH_SUCCESS | 0 | When hash calculated successfully |
