Lines Matching refs:Init

269   assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize));  in HAL_CRYP_Init()
270 assert_param(IS_CRYP_DATATYPE(hcryp->Init.DataType)); in HAL_CRYP_Init()
271 assert_param(IS_CRYP_ALGORITHM(hcryp->Init.Algorithm)); in HAL_CRYP_Init()
303 …R_DATATYPE|CRYP_CR_KEYSIZE|CRYP_CR_ALGOMODE, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->I… in HAL_CRYP_Init()
395 hcryp->Init.DataType = pConf->DataType; in HAL_CRYP_SetConfig()
396 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig()
397 hcryp->Init.Algorithm = pConf->Algorithm; in HAL_CRYP_SetConfig()
398 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig()
399 hcryp->Init.pInitVect = pConf->pInitVect; in HAL_CRYP_SetConfig()
402 …R_DATATYPE|CRYP_CR_KEYSIZE|CRYP_CR_ALGOMODE, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->I… in HAL_CRYP_SetConfig()
454 pConf->DataType = hcryp->Init.DataType; in HAL_CRYP_GetConfig()
455 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig()
456 pConf->Algorithm = hcryp->Init.Algorithm; in HAL_CRYP_GetConfig()
457 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig()
458 pConf->pInitVect = hcryp->Init.pInitVect; in HAL_CRYP_GetConfig()
755 if (hcryp->Init.DataWidthUnit == CRYP_DATAWIDTHUNIT_WORD) in HAL_CRYP_Encrypt()
778 hcryp->Instance->K1LR = *(uint32_t*)(hcryp->Init.pKey); in HAL_CRYP_Encrypt()
779 hcryp->Instance->K1RR = *(uint32_t*)(hcryp->Init.pKey+1); in HAL_CRYP_Encrypt()
780 if ((hcryp->Init.Algorithm == CRYP_TDES_ECB) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Encrypt()
782 hcryp->Instance->K2LR = *(uint32_t*)(hcryp->Init.pKey+2); in HAL_CRYP_Encrypt()
783 hcryp->Instance->K2RR = *(uint32_t*)(hcryp->Init.pKey+3); in HAL_CRYP_Encrypt()
784 hcryp->Instance->K3LR = *(uint32_t*)(hcryp->Init.pKey+4); in HAL_CRYP_Encrypt()
785 hcryp->Instance->K3RR = *(uint32_t*)(hcryp->Init.pKey+5); in HAL_CRYP_Encrypt()
789 if ((hcryp->Init.Algorithm == CRYP_DES_CBC) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Encrypt()
791 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in HAL_CRYP_Encrypt()
792 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in HAL_CRYP_Encrypt()
872 if (hcryp->Init.DataWidthUnit == CRYP_DATAWIDTHUNIT_WORD) in HAL_CRYP_Decrypt()
895 hcryp->Instance->K1LR = *(uint32_t*)(hcryp->Init.pKey); in HAL_CRYP_Decrypt()
896 hcryp->Instance->K1RR = *(uint32_t*)(hcryp->Init.pKey+1); in HAL_CRYP_Decrypt()
897 if ((hcryp->Init.Algorithm == CRYP_TDES_ECB) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Decrypt()
899 hcryp->Instance->K2LR = *(uint32_t*)(hcryp->Init.pKey+2); in HAL_CRYP_Decrypt()
900 hcryp->Instance->K2RR = *(uint32_t*)(hcryp->Init.pKey+3); in HAL_CRYP_Decrypt()
901 hcryp->Instance->K3LR = *(uint32_t*)(hcryp->Init.pKey+4); in HAL_CRYP_Decrypt()
902 hcryp->Instance->K3RR = *(uint32_t*)(hcryp->Init.pKey+5); in HAL_CRYP_Decrypt()
906 if ((hcryp->Init.Algorithm == CRYP_DES_CBC) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Decrypt()
908 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in HAL_CRYP_Decrypt()
909 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in HAL_CRYP_Decrypt()
989 if (hcryp->Init.DataWidthUnit == CRYP_DATAWIDTHUNIT_WORD) in HAL_CRYP_Encrypt_IT()
1012 hcryp->Instance->K1LR = *(uint32_t*)(hcryp->Init.pKey); in HAL_CRYP_Encrypt_IT()
1013 hcryp->Instance->K1RR = *(uint32_t*)(hcryp->Init.pKey+1); in HAL_CRYP_Encrypt_IT()
1014 if ((hcryp->Init.Algorithm == CRYP_TDES_ECB) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Encrypt_IT()
1016 hcryp->Instance->K2LR = *(uint32_t*)(hcryp->Init.pKey+2); in HAL_CRYP_Encrypt_IT()
1017 hcryp->Instance->K2RR = *(uint32_t*)(hcryp->Init.pKey+3); in HAL_CRYP_Encrypt_IT()
1018 hcryp->Instance->K3LR = *(uint32_t*)(hcryp->Init.pKey+4); in HAL_CRYP_Encrypt_IT()
1019 hcryp->Instance->K3RR = *(uint32_t*)(hcryp->Init.pKey+5); in HAL_CRYP_Encrypt_IT()
1022 if ((hcryp->Init.Algorithm == CRYP_DES_CBC) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Encrypt_IT()
1024 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in HAL_CRYP_Encrypt_IT()
1025 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in HAL_CRYP_Encrypt_IT()
1096 if (hcryp->Init.DataWidthUnit == CRYP_DATAWIDTHUNIT_WORD) in HAL_CRYP_Decrypt_IT()
1119 hcryp->Instance->K1LR = *(uint32_t*)(hcryp->Init.pKey); in HAL_CRYP_Decrypt_IT()
1120 hcryp->Instance->K1RR = *(uint32_t*)(hcryp->Init.pKey+1); in HAL_CRYP_Decrypt_IT()
1121 if ((hcryp->Init.Algorithm == CRYP_TDES_ECB) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Decrypt_IT()
1123 hcryp->Instance->K2LR = *(uint32_t*)(hcryp->Init.pKey+2); in HAL_CRYP_Decrypt_IT()
1124 hcryp->Instance->K2RR = *(uint32_t*)(hcryp->Init.pKey+3); in HAL_CRYP_Decrypt_IT()
1125 hcryp->Instance->K3LR = *(uint32_t*)(hcryp->Init.pKey+4); in HAL_CRYP_Decrypt_IT()
1126 hcryp->Instance->K3RR = *(uint32_t*)(hcryp->Init.pKey+5); in HAL_CRYP_Decrypt_IT()
1130 if ((hcryp->Init.Algorithm == CRYP_DES_CBC) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Decrypt_IT()
1132 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in HAL_CRYP_Decrypt_IT()
1133 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in HAL_CRYP_Decrypt_IT()
1203 if (hcryp->Init.DataWidthUnit == CRYP_DATAWIDTHUNIT_WORD) in HAL_CRYP_Encrypt_DMA()
1226 hcryp->Instance->K1LR = *(uint32_t*)(hcryp->Init.pKey); in HAL_CRYP_Encrypt_DMA()
1227 hcryp->Instance->K1RR = *(uint32_t*)(hcryp->Init.pKey+1); in HAL_CRYP_Encrypt_DMA()
1228 if ((hcryp->Init.Algorithm == CRYP_TDES_ECB) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Encrypt_DMA()
1230 hcryp->Instance->K2LR = *(uint32_t*)(hcryp->Init.pKey+2); in HAL_CRYP_Encrypt_DMA()
1231 hcryp->Instance->K2RR = *(uint32_t*)(hcryp->Init.pKey+3); in HAL_CRYP_Encrypt_DMA()
1232 hcryp->Instance->K3LR = *(uint32_t*)(hcryp->Init.pKey+4); in HAL_CRYP_Encrypt_DMA()
1233 hcryp->Instance->K3RR = *(uint32_t*)(hcryp->Init.pKey+5); in HAL_CRYP_Encrypt_DMA()
1237 if ((hcryp->Init.Algorithm == CRYP_DES_CBC) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Encrypt_DMA()
1239 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in HAL_CRYP_Encrypt_DMA()
1240 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in HAL_CRYP_Encrypt_DMA()
1259 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in HAL_CRYP_Encrypt_DMA()
1262 if (hcryp->Init.Algorithm != CRYP_AES_ECB) in HAL_CRYP_Encrypt_DMA()
1264 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in HAL_CRYP_Encrypt_DMA()
1265 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in HAL_CRYP_Encrypt_DMA()
1266 hcryp->Instance->IV1LR = *(uint32_t*)(hcryp->Init.pInitVect+2); in HAL_CRYP_Encrypt_DMA()
1267 hcryp->Instance->IV1RR = *(uint32_t*)(hcryp->Init.pInitVect+3); in HAL_CRYP_Encrypt_DMA()
1323 if (hcryp->Init.DataWidthUnit == CRYP_DATAWIDTHUNIT_WORD) in HAL_CRYP_Decrypt_DMA()
1346 hcryp->Instance->K1LR = *(uint32_t*)(hcryp->Init.pKey); in HAL_CRYP_Decrypt_DMA()
1347 hcryp->Instance->K1RR = *(uint32_t*)(hcryp->Init.pKey+1); in HAL_CRYP_Decrypt_DMA()
1348 if ((hcryp->Init.Algorithm == CRYP_TDES_ECB) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Decrypt_DMA()
1350 hcryp->Instance->K2LR = *(uint32_t*)(hcryp->Init.pKey+2); in HAL_CRYP_Decrypt_DMA()
1351 hcryp->Instance->K2RR = *(uint32_t*)(hcryp->Init.pKey+3); in HAL_CRYP_Decrypt_DMA()
1352 hcryp->Instance->K3LR = *(uint32_t*)(hcryp->Init.pKey+4); in HAL_CRYP_Decrypt_DMA()
1353 hcryp->Instance->K3RR = *(uint32_t*)(hcryp->Init.pKey+5); in HAL_CRYP_Decrypt_DMA()
1357 if ((hcryp->Init.Algorithm == CRYP_DES_CBC) || (hcryp->Init.Algorithm == CRYP_TDES_CBC)) in HAL_CRYP_Decrypt_DMA()
1359 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in HAL_CRYP_Decrypt_DMA()
1360 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in HAL_CRYP_Decrypt_DMA()
1431 … ((hcryp->Init.Algorithm == CRYP_DES_ECB)|| (hcryp->Init.Algorithm == CRYP_DES_CBC) || (hcryp->Ini… in HAL_CRYP_IRQHandler()
1435 …else if((hcryp->Init.Algorithm == CRYP_AES_ECB) || (hcryp->Init.Algorithm == CRYP_AES_CBC) || (hcr… in HAL_CRYP_IRQHandler()
1704 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Encrypt()
1706 if (hcryp->Init.Algorithm != CRYP_AES_ECB) in CRYP_AES_Encrypt()
1709 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in CRYP_AES_Encrypt()
1710 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in CRYP_AES_Encrypt()
1711 hcryp->Instance->IV1LR = *(uint32_t*)(hcryp->Init.pInitVect+2); in CRYP_AES_Encrypt()
1712 hcryp->Instance->IV1RR = *(uint32_t*)(hcryp->Init.pInitVect+3); in CRYP_AES_Encrypt()
1751 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Encrypt_IT()
1753 if (hcryp->Init.Algorithm != CRYP_AES_ECB) in CRYP_AES_Encrypt_IT()
1756 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in CRYP_AES_Encrypt_IT()
1757 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in CRYP_AES_Encrypt_IT()
1758 hcryp->Instance->IV1LR = *(uint32_t*)(hcryp->Init.pInitVect+2); in CRYP_AES_Encrypt_IT()
1759 hcryp->Instance->IV1RR = *(uint32_t*)(hcryp->Init.pInitVect+3); in CRYP_AES_Encrypt_IT()
1796 if (hcryp->Init.Algorithm != CRYP_AES_CTR) /*ECB or CBC*/ in CRYP_AES_Decrypt()
1802 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Decrypt()
1822 MODIFY_REG(hcryp->Instance->CR, CRYP_CR_ALGOMODE, hcryp->Init.Algorithm ); in CRYP_AES_Decrypt()
1827 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Decrypt()
1831 if (hcryp->Init.Algorithm != CRYP_AES_ECB) in CRYP_AES_Decrypt()
1834 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in CRYP_AES_Decrypt()
1835 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in CRYP_AES_Decrypt()
1836 hcryp->Instance->IV1LR = *(uint32_t*)(hcryp->Init.pInitVect+2); in CRYP_AES_Decrypt()
1837 hcryp->Instance->IV1RR = *(uint32_t*)(hcryp->Init.pInitVect+3); in CRYP_AES_Decrypt()
1876 if (hcryp->Init.Algorithm != CRYP_AES_CTR) in CRYP_AES_Decrypt_IT()
1882 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Decrypt_IT()
1906 MODIFY_REG(hcryp->Instance->CR, CRYP_CR_ALGOMODE, hcryp->Init.Algorithm ); in CRYP_AES_Decrypt_IT()
1911 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Decrypt_IT()
1915 if (hcryp->Init.Algorithm != CRYP_AES_ECB) in CRYP_AES_Decrypt_IT()
1918 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in CRYP_AES_Decrypt_IT()
1919 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in CRYP_AES_Decrypt_IT()
1920 hcryp->Instance->IV1LR = *(uint32_t*)(hcryp->Init.pInitVect+2); in CRYP_AES_Decrypt_IT()
1921 hcryp->Instance->IV1RR = *(uint32_t*)(hcryp->Init.pInitVect+3); in CRYP_AES_Decrypt_IT()
1955 if (hcryp->Init.Algorithm != CRYP_AES_CTR) in CRYP_AES_Decrypt_DMA()
1961 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Decrypt_DMA()
1988 MODIFY_REG(hcryp->Instance->CR, CRYP_CR_ALGOMODE, hcryp->Init.Algorithm ); in CRYP_AES_Decrypt_DMA()
1993 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Decrypt_DMA()
1996 if (hcryp->Init.Algorithm != CRYP_AES_ECB) in CRYP_AES_Decrypt_DMA()
1999 hcryp->Instance->IV0LR = *(uint32_t*)(hcryp->Init.pInitVect); in CRYP_AES_Decrypt_DMA()
2000 hcryp->Instance->IV0RR = *(uint32_t*)(hcryp->Init.pInitVect+1); in CRYP_AES_Decrypt_DMA()
2001 hcryp->Instance->IV1LR = *(uint32_t*)(hcryp->Init.pInitVect+2); in CRYP_AES_Decrypt_DMA()
2002 hcryp->Instance->IV1RR = *(uint32_t*)(hcryp->Init.pInitVect+3); in CRYP_AES_Decrypt_DMA()
2356 hcryp->Instance->K0LR = *(uint32_t*)(hcryp->Init.pKey); in CRYP_SetKey()
2357 hcryp->Instance->K0RR = *(uint32_t*)(hcryp->Init.pKey+1); in CRYP_SetKey()
2358 hcryp->Instance->K1LR = *(uint32_t*)(hcryp->Init.pKey+2); in CRYP_SetKey()
2359 hcryp->Instance->K1RR = *(uint32_t*)(hcryp->Init.pKey+3); in CRYP_SetKey()
2360 hcryp->Instance->K2LR = *(uint32_t*)(hcryp->Init.pKey+4); in CRYP_SetKey()
2361 hcryp->Instance->K2RR = *(uint32_t*)(hcryp->Init.pKey+5); in CRYP_SetKey()
2362 hcryp->Instance->K3LR = *(uint32_t*)(hcryp->Init.pKey+6); in CRYP_SetKey()
2363 hcryp->Instance->K3RR = *(uint32_t*)(hcryp->Init.pKey+7); in CRYP_SetKey()
2366 hcryp->Instance->K1LR = *(uint32_t*)(hcryp->Init.pKey); in CRYP_SetKey()
2367 hcryp->Instance->K1RR = *(uint32_t*)(hcryp->Init.pKey+1); in CRYP_SetKey()
2368 hcryp->Instance->K2LR = *(uint32_t*)(hcryp->Init.pKey+2); in CRYP_SetKey()
2369 hcryp->Instance->K2RR = *(uint32_t*)(hcryp->Init.pKey+3); in CRYP_SetKey()
2370 hcryp->Instance->K3LR = *(uint32_t*)(hcryp->Init.pKey+4); in CRYP_SetKey()
2371 hcryp->Instance->K3RR = *(uint32_t*)(hcryp->Init.pKey+5); in CRYP_SetKey()
2374 hcryp->Instance->K2LR = *(uint32_t*)(hcryp->Init.pKey); in CRYP_SetKey()
2375 hcryp->Instance->K2RR = *(uint32_t*)(hcryp->Init.pKey+1); in CRYP_SetKey()
2376 hcryp->Instance->K3LR = *(uint32_t*)(hcryp->Init.pKey+2); in CRYP_SetKey()
2377 hcryp->Instance->K3RR = *(uint32_t*)(hcryp->Init.pKey+3); in CRYP_SetKey()