Searched refs:crpt (Results 1 – 5 of 5) sorted by relevance
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/inc/ |
D | crypto.h | 154 #define PRNG_ENABLE_INT(crpt) ((crpt)->INTEN |= CRPT_INTEN_PRNGIEN_Msk) argument 162 #define PRNG_DISABLE_INT(crpt) ((crpt)->INTEN &= ~CRPT_INTEN_PRNGIEN_Msk) argument 170 #define PRNG_GET_INT_FLAG(crpt) ((crpt)->INTSTS & CRPT_INTSTS_PRNGIF_Msk) argument 178 #define PRNG_CLR_INT_FLAG(crpt) ((crpt)->INTSTS = CRPT_INTSTS_PRNGIF_Msk) argument 186 #define AES_ENABLE_INT(crpt) ((crpt)->INTEN |= (CRPT_INTEN_AESIEN_Msk|CRPT_INTEN_AESEIEN_Msk… argument 194 #define AES_DISABLE_INT(crpt) ((crpt)->INTEN &= ~(CRPT_INTEN_AESIEN_Msk|CRPT_INTEN_AESEIEN_Ms… argument 202 #define AES_GET_INT_FLAG(crpt) ((crpt)->INTSTS & (CRPT_INTSTS_AESIF_Msk|CRPT_INTSTS_AESEIF_Msk… argument 210 #define AES_CLR_INT_FLAG(crpt) ((crpt)->INTSTS = (CRPT_INTSTS_AESIF_Msk|CRPT_INTSTS_AESEIF_Msk… argument 218 #define AES_ENABLE_KEY_PROTECT(crpt) ((crpt)->AES_CTL |= CRPT_AES_CTL_KEYPRT_Msk) argument 226 #define AES_DISABLE_KEY_PROTECT(crpt) ((crpt)->AES_CTL = ((crpt)->AES_CTL & ~CRPT_AES_CTL_KEYPRT_Ms… argument [all …]
|
D | mkromlib.h | 98 CRPT_T *crpt; /*!< The pointer of the CRYPTO module */ member
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/ |
D | crypto.c | 54 int32_t ECC_Mutiply(CRPT_T *crpt, E_ECC_CURVE ecc_curve, char x1[], char y1[], char *k, char x2[], … 55 void ECC_Complete(CRPT_T *crpt); 74 void PRNG_Open(CRPT_T *crpt, uint32_t u32KeySize, uint32_t u32SeedReload, uint32_t u32Seed) in PRNG_Open() argument 78 crpt->PRNG_SEED = u32Seed; in PRNG_Open() 81 crpt->PRNG_CTL = (u32KeySize << CRPT_PRNG_CTL_KEYSZ_Pos) | in PRNG_Open() 90 void PRNG_Start(CRPT_T *crpt) in PRNG_Start() argument 92 crpt->PRNG_CTL |= CRPT_PRNG_CTL_START_Msk; in PRNG_Start() 95 while(crpt->PRNG_CTL & CRPT_PRNG_CTL_BUSY_Msk) {} in PRNG_Start() 105 void PRNG_Read(CRPT_T *crpt, uint32_t u32RandKey[]) in PRNG_Read() argument 109 wcnt = (((crpt->PRNG_CTL & CRPT_PRNG_CTL_KEYSZ_Msk) >> CRPT_PRNG_CTL_KEYSZ_Pos) + 1U) * 2U; in PRNG_Read() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/inc/ |
D | crypto.h | 276 #define PRNG_ENABLE_INT(crpt) ((crpt)->INTEN |= CRPT_INTEN_PRNGIEN_Msk) argument 284 #define PRNG_DISABLE_INT(crpt) ((crpt)->INTEN &= ~CRPT_INTEN_PRNGIEN_Msk) argument 292 #define PRNG_GET_INT_FLAG(crpt) ((crpt)->INTSTS & CRPT_INTSTS_PRNGIF_Msk) argument 300 #define PRNG_CLR_INT_FLAG(crpt) ((crpt)->INTSTS = CRPT_INTSTS_PRNGIF_Msk) argument 308 #define AES_ENABLE_INT(crpt) ((crpt)->INTEN |= (CRPT_INTEN_AESIEN_Msk|CRPT_INTEN_AESEIEN_Msk… argument 316 #define AES_DISABLE_INT(crpt) ((crpt)->INTEN &= ~(CRPT_INTEN_AESIEN_Msk|CRPT_INTEN_AESEIEN_Ms… argument 324 #define AES_GET_INT_FLAG(crpt) ((crpt)->INTSTS & (CRPT_INTSTS_AESIF_Msk|CRPT_INTSTS_AESEIF_Msk… argument 332 #define AES_CLR_INT_FLAG(crpt) ((crpt)->INTSTS = (CRPT_INTSTS_AESIF_Msk|CRPT_INTSTS_AESEIF_Msk… argument 340 #define AES_ENABLE_KEY_PROTECT(crpt) ((crpt)->AES_CTL |= CRPT_AES_CTL_KEYPRT_Msk) argument 348 #define AES_DISABLE_KEY_PROTECT(crpt) ((crpt)->AES_CTL = ((crpt)->AES_CTL & ~CRPT_AES_CTL_KEYPRT_Ms… argument [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/ |
D | crypto.c | 72 void PRNG_Open(CRPT_T *crpt, uint32_t u32KeySize, uint32_t u32SeedReload, uint32_t u32Seed) in PRNG_Open() argument 76 crpt->PRNG_SEED = u32Seed; in PRNG_Open() 79 crpt->PRNG_CTL = (u32KeySize << CRPT_PRNG_CTL_KEYSZ_Pos) | in PRNG_Open() 88 void PRNG_Start(CRPT_T *crpt) in PRNG_Start() argument 90 crpt->PRNG_CTL |= CRPT_PRNG_CTL_START_Msk; in PRNG_Start() 99 void PRNG_Read(CRPT_T *crpt, uint32_t u32RandKey[]) in PRNG_Read() argument 103 wcnt = (((crpt->PRNG_CTL & CRPT_PRNG_CTL_KEYSZ_Msk) >> CRPT_PRNG_CTL_KEYSZ_Pos) + 1U) * 2U; in PRNG_Read() 107 u32RandKey[i] = crpt->PRNG_KEY[i]; in PRNG_Read() 110 crpt->PRNG_CTL &= ~CRPT_PRNG_CTL_SEEDRLD_Msk; in PRNG_Read() 139 void AES_Open(CRPT_T *crpt, uint32_t u32Channel, uint32_t u32EncDec, in AES_Open() argument [all …]
|