Go to the documentation of this file.
32 #define TRACE_LEVEL CRYPTO_TRACE_LEVEL
55 #if (PIC32CX_MT_CRYPTO_HASH_SUPPORT == ENABLED || PIC32CX_MT_CRYPTO_CIPHER_SUPPORT == ENABLED)
70 #if (PIC32CX_MT_CRYPTO_TRNG_SUPPORT == ENABLED)
79 #if (PIC32CX_MT_CRYPTO_HASH_SUPPORT == ENABLED)
84 PMC_REGS->PMC_PCR = PMC_PCR_PID(ID_SHA);
85 temp = PMC_REGS->PMC_PCR;
86 PMC_REGS->PMC_PCR = temp | PMC_PCR_CMD_Msk | PMC_PCR_EN_Msk;
90 #if (PIC32CX_MT_CRYPTO_CIPHER_SUPPORT == ENABLED)
95 PMC_REGS->PMC_PCR = PMC_PCR_PID(ID_AES);
96 temp = PMC_REGS->PMC_PCR;
97 PMC_REGS->PMC_PCR = temp | PMC_PCR_CMD_Msk | PMC_PCR_EN_Msk;
bool_t osCreateMutex(OsMutex *mutex)
Create a mutex object.
PIC32CX MTC/MTG/MTSH hash hardware accelerator.
PIC32CX MTC/MTG/MTSH cipher hardware accelerator.
error_t trngInit(void)
TRNG module initialization.
General definitions for cryptographic algorithms.
PIC32CX MTC/MTG/MTSH hardware cryptographic accelerator.
PIC32CX MTC/MTG/MTSH true random number generator.
OsMutex pic32cxmtCryptoMutex
error_t pic32cxmtCryptoInit(void)
Initialize hardware cryptographic accelerator.