97 int TPU_SHA(
const char *msg, tpu_hashfunsel_t fun,
unsigned int byteLen,
char *digest);
#define MXC_V_TPU_HASH_CTRL_HASH_SHA256
HASH_CTRL_HASH_SHA256 Value.
Definition: tpu_regs.h:286
tpu_hashfunsel_t
Enumeration type for Hash function Select.
Definition: hash.h:62
int TPU_SHA(const char *msg, tpu_hashfunsel_t fun, unsigned int byteLen, char *digest)
Test the SHA process.
void TPU_Hash_Reset(void)
Reset the crypto accelerator.
#define MXC_V_TPU_HASH_CTRL_HASH_DIS
HASH_CTRL_HASH_DIS Value.
Definition: tpu_regs.h:280
#define MXC_V_TPU_HASH_CTRL_HASH_SHA512
HASH_CTRL_HASH_SHA512 Value.
Definition: tpu_regs.h:290
int TPU_Hash_Config(tpu_hashfunsel_t func)
Configure crypto hash operation for different hash functions.
#define MXC_V_TPU_HASH_CTRL_HASH_SHA1
HASH_CTRL_HASH_SHA1 Value.
Definition: tpu_regs.h:282
#define MXC_V_TPU_HASH_CTRL_HASH_SHA384
HASH_CTRL_HASH_SHA384 Value.
Definition: tpu_regs.h:288
#define MXC_V_TPU_HASH_CTRL_HASH_SHA224
HASH_CTRL_HASH_SHA224 Value.
Definition: tpu_regs.h:284
void TPU_Hash_Shutdown(void)
Shutdown crypto controller.