![]() |
MAX32665 SDK Documentation
0.2
Software Development Kit Overview and API Documentation
|
Enumerations | |
| enum | tpu_hashfunsel_t { TPU_HASH_DIS = MXC_V_TPU_HASH_CTRL_HASH_DIS, TPU_HASH_SHA1 = MXC_V_TPU_HASH_CTRL_HASH_SHA1, TPU_HASH_SHA224 = MXC_V_TPU_HASH_CTRL_HASH_SHA224, TPU_HASH_SHA256 = MXC_V_TPU_HASH_CTRL_HASH_SHA256, TPU_HASH_SHA384 = MXC_V_TPU_HASH_CTRL_HASH_SHA384, TPU_HASH_SHA512 = MXC_V_TPU_HASH_CTRL_HASH_SHA512 } |
| Enumeration type for Hash function Select. | |
Functions | |
| void | TPU_Hash_Reset (void) |
| Reset the crypto accelerator. | |
| void | TPU_Hash_Shutdown (void) |
| Shutdown crypto controller. | |
| int | TPU_Hash_Config (tpu_hashfunsel_t func) |
| Configure crypto hash operation for different hash functions. More... | |
| int | TPU_SHA (const char *msg, tpu_hashfunsel_t fun, unsigned int byteLen, char *digest) |
| Test the SHA process. More... | |
| int TPU_Hash_Config | ( | tpu_hashfunsel_t | func | ) |
| func | Selects the hash function |
| int TPU_SHA | ( | const char * | msg, |
| tpu_hashfunsel_t | fun, | ||
| unsigned int | byteLen, | ||
| char * | digest | ||
| ) |
| fun | Selects the hash function |
| msg | Pointer to source message |
| byteLen | Specifies size of message in bytes |
| digest | Digest buffer |
msg; digest points to null