/hal_stm32-latest/stm32cube/stm32f2xx/drivers/src/ |
D | stm32f2xx_hal_cryp.c | 396 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig() 455 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig() 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() 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() 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() [all …]
|
/hal_stm32-latest/stm32cube/stm32n6xx/drivers/src/ |
D | stm32n6xx_hal_mce.c | 249 if (((hmce->Instance->CR & (MCE_CR_GLOCK | MCE_CR_MKLOCK)) == 0U) && (pConfig->pKey != NULL)) in HAL_MCE_ConfigNoekeon() 265 WRITE_REG(hmce->Instance->MKEYR0, pConfig->pKey[0]); in HAL_MCE_ConfigNoekeon() 266 WRITE_REG(hmce->Instance->MKEYR1, pConfig->pKey[1]); in HAL_MCE_ConfigNoekeon() 267 WRITE_REG(hmce->Instance->MKEYR2, pConfig->pKey[2]); in HAL_MCE_ConfigNoekeon() 268 WRITE_REG(hmce->Instance->MKEYR3, pConfig->pKey[3]); in HAL_MCE_ConfigNoekeon() 269 WRITE_REG(hmce->Instance->MKEYR4, pConfig->pKey[4]); in HAL_MCE_ConfigNoekeon() 270 WRITE_REG(hmce->Instance->MKEYR5, pConfig->pKey[5]); in HAL_MCE_ConfigNoekeon() 271 WRITE_REG(hmce->Instance->MKEYR6, pConfig->pKey[6]); in HAL_MCE_ConfigNoekeon() 272 WRITE_REG(hmce->Instance->MKEYR7, pConfig->pKey[7]); in HAL_MCE_ConfigNoekeon() 294 WRITE_REG(hmce->Instance->FMKEYR0, pConfig->pKey[0]); in HAL_MCE_ConfigNoekeon() [all …]
|
D | stm32n6xx_hal_cryp_ex.c | 966 if (hcryp->Init.pKey != NULL) in CRYPEx_SetKey() 971 ((SAES_TypeDef *)(hcryp->Instance))->KEYR7 = *(uint32_t *)(hcryp->Init.pKey); in CRYPEx_SetKey() 972 ((SAES_TypeDef *)(hcryp->Instance))->KEYR6 = *(uint32_t *)(hcryp->Init.pKey + 1U); in CRYPEx_SetKey() 973 ((SAES_TypeDef *)(hcryp->Instance))->KEYR5 = *(uint32_t *)(hcryp->Init.pKey + 2U); in CRYPEx_SetKey() 974 ((SAES_TypeDef *)(hcryp->Instance))->KEYR4 = *(uint32_t *)(hcryp->Init.pKey + 3U); in CRYPEx_SetKey() 975 ((SAES_TypeDef *)(hcryp->Instance))->KEYR3 = *(uint32_t *)(hcryp->Init.pKey + 4U); in CRYPEx_SetKey() 976 ((SAES_TypeDef *)(hcryp->Instance))->KEYR2 = *(uint32_t *)(hcryp->Init.pKey + 5U); in CRYPEx_SetKey() 977 ((SAES_TypeDef *)(hcryp->Instance))->KEYR1 = *(uint32_t *)(hcryp->Init.pKey + 6U); in CRYPEx_SetKey() 978 ((SAES_TypeDef *)(hcryp->Instance))->KEYR0 = *(uint32_t *)(hcryp->Init.pKey + 7U); in CRYPEx_SetKey() 981 ((SAES_TypeDef *)(hcryp->Instance))->KEYR3 = *(uint32_t *)(hcryp->Init.pKey); in CRYPEx_SetKey() [all …]
|
D | stm32n6xx_hal_hash.c | 326 hhash->Init.pKey = pConf->pKey; in HAL_HASH_SetConfig() 381 pConf->pKey = hhash->Init.pKey; in HAL_HASH_GetConfig() 1495 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Start() 1529 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1558 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1626 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Accumulate() 1663 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Accumulate() 1728 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_AccumulateLast() 1755 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_AccumulateLast() 1823 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Start_IT() [all …]
|
/hal_stm32-latest/stm32cube/stm32mp1xx/drivers/src/ |
D | stm32mp1xx_hal_cryp.c | 556 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig() 620 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig() 951 hcryp->Instance->K1LR = *(uint32_t *)(hcryp->Init.pKey); in HAL_CRYP_Encrypt() 952 hcryp->Instance->K1RR = *(uint32_t *)(hcryp->Init.pKey + 1); in HAL_CRYP_Encrypt() 955 hcryp->Instance->K2LR = *(uint32_t *)(hcryp->Init.pKey + 2); in HAL_CRYP_Encrypt() 956 hcryp->Instance->K2RR = *(uint32_t *)(hcryp->Init.pKey + 3); in HAL_CRYP_Encrypt() 957 hcryp->Instance->K3LR = *(uint32_t *)(hcryp->Init.pKey + 4); in HAL_CRYP_Encrypt() 958 hcryp->Instance->K3RR = *(uint32_t *)(hcryp->Init.pKey + 5); in HAL_CRYP_Encrypt() 1081 hcryp->Instance->K1LR = *(uint32_t *)(hcryp->Init.pKey); in HAL_CRYP_Decrypt() 1082 hcryp->Instance->K1RR = *(uint32_t *)(hcryp->Init.pKey + 1); in HAL_CRYP_Decrypt() [all …]
|
/hal_stm32-latest/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_hal_cryp.c | 559 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig() 625 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig() 958 hcryp->Instance->K1LR = *(uint32_t *)(hcryp->Init.pKey); in HAL_CRYP_Encrypt() 959 hcryp->Instance->K1RR = *(uint32_t *)(hcryp->Init.pKey + 1); in HAL_CRYP_Encrypt() 962 hcryp->Instance->K2LR = *(uint32_t *)(hcryp->Init.pKey + 2); in HAL_CRYP_Encrypt() 963 hcryp->Instance->K2RR = *(uint32_t *)(hcryp->Init.pKey + 3); in HAL_CRYP_Encrypt() 964 hcryp->Instance->K3LR = *(uint32_t *)(hcryp->Init.pKey + 4); in HAL_CRYP_Encrypt() 965 hcryp->Instance->K3RR = *(uint32_t *)(hcryp->Init.pKey + 5); in HAL_CRYP_Encrypt() 1088 hcryp->Instance->K1LR = *(uint32_t *)(hcryp->Init.pKey); in HAL_CRYP_Decrypt() 1089 hcryp->Instance->K1RR = *(uint32_t *)(hcryp->Init.pKey + 1); in HAL_CRYP_Decrypt() [all …]
|
D | stm32h7xx_hal_otfdec.c | 583 …ypeDef HAL_OTFDEC_RegionSetKey(OTFDEC_HandleTypeDef *hotfdec, uint32_t RegionIndex, uint32_t *pKey) in HAL_OTFDEC_RegionSetKey() argument 592 if (pKey == NULL) in HAL_OTFDEC_RegionSetKey() 605 WRITE_REG(region->REG_KEYR0, pKey[0]); in HAL_OTFDEC_RegionSetKey() 610 WRITE_REG(region->REG_KEYR1, pKey[1]); in HAL_OTFDEC_RegionSetKey() 615 WRITE_REG(region->REG_KEYR2, pKey[2]); in HAL_OTFDEC_RegionSetKey() 620 WRITE_REG(region->REG_KEYR3, pKey[3]); in HAL_OTFDEC_RegionSetKey() 623 if (HAL_OTFDEC_KeyCRCComputation(pKey) != HAL_OTFDEC_RegionGetKeyCRC(hotfdec, RegionIndex)) in HAL_OTFDEC_RegionSetKey() 756 uint32_t HAL_OTFDEC_KeyCRCComputation(const uint32_t *pKey) in HAL_OTFDEC_KeyCRCComputation() argument 765 const uint32_t *temp = pKey; in HAL_OTFDEC_KeyCRCComputation()
|
/hal_stm32-latest/stm32cube/stm32f7xx/drivers/src/ |
D | stm32f7xx_hal_cryp.c | 581 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig() 658 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig() 991 hcryp->Instance->K1LR = *(uint32_t *)(hcryp->Init.pKey); in HAL_CRYP_Encrypt() 992 hcryp->Instance->K1RR = *(uint32_t *)(hcryp->Init.pKey + 1); in HAL_CRYP_Encrypt() 995 hcryp->Instance->K2LR = *(uint32_t *)(hcryp->Init.pKey + 2); in HAL_CRYP_Encrypt() 996 hcryp->Instance->K2RR = *(uint32_t *)(hcryp->Init.pKey + 3); in HAL_CRYP_Encrypt() 997 hcryp->Instance->K3LR = *(uint32_t *)(hcryp->Init.pKey + 4); in HAL_CRYP_Encrypt() 998 hcryp->Instance->K3RR = *(uint32_t *)(hcryp->Init.pKey + 5); in HAL_CRYP_Encrypt() 1165 hcryp->Instance->K1LR = *(uint32_t *)(hcryp->Init.pKey); in HAL_CRYP_Decrypt() 1166 hcryp->Instance->K1RR = *(uint32_t *)(hcryp->Init.pKey + 1); in HAL_CRYP_Decrypt() [all …]
|
/hal_stm32-latest/stm32cube/stm32f4xx/drivers/src/ |
D | stm32f4xx_hal_cryp.c | 581 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig() 658 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig() 991 hcryp->Instance->K1LR = *(uint32_t *)(hcryp->Init.pKey); in HAL_CRYP_Encrypt() 992 hcryp->Instance->K1RR = *(uint32_t *)(hcryp->Init.pKey + 1); in HAL_CRYP_Encrypt() 995 hcryp->Instance->K2LR = *(uint32_t *)(hcryp->Init.pKey + 2); in HAL_CRYP_Encrypt() 996 hcryp->Instance->K2RR = *(uint32_t *)(hcryp->Init.pKey + 3); in HAL_CRYP_Encrypt() 997 hcryp->Instance->K3LR = *(uint32_t *)(hcryp->Init.pKey + 4); in HAL_CRYP_Encrypt() 998 hcryp->Instance->K3RR = *(uint32_t *)(hcryp->Init.pKey + 5); in HAL_CRYP_Encrypt() 1165 hcryp->Instance->K1LR = *(uint32_t *)(hcryp->Init.pKey); in HAL_CRYP_Decrypt() 1166 hcryp->Instance->K1RR = *(uint32_t *)(hcryp->Init.pKey + 1); in HAL_CRYP_Decrypt() [all …]
|
/hal_stm32-latest/stm32cube/stm32h7rsxx/drivers/src/ |
D | stm32h7rsxx_hal_mce.c | 253 if (((hmce->Instance->CR & (MCE_CR_GLOCK | MCE_CR_MKLOCK)) == 0U) && (pConfig->pKey != NULL)) in HAL_MCE_ConfigNoekeon() 268 WRITE_REG(hmce->Instance->MKEYR0, pConfig->pKey[0]); in HAL_MCE_ConfigNoekeon() 269 WRITE_REG(hmce->Instance->MKEYR1, pConfig->pKey[1]); in HAL_MCE_ConfigNoekeon() 270 WRITE_REG(hmce->Instance->MKEYR2, pConfig->pKey[2]); in HAL_MCE_ConfigNoekeon() 271 WRITE_REG(hmce->Instance->MKEYR3, pConfig->pKey[3]); in HAL_MCE_ConfigNoekeon() 293 WRITE_REG(hmce->Instance->FMKEYR0, pConfig->pKey[0]); in HAL_MCE_ConfigNoekeon() 294 WRITE_REG(hmce->Instance->FMKEYR1, pConfig->pKey[1]); in HAL_MCE_ConfigNoekeon() 295 WRITE_REG(hmce->Instance->FMKEYR2, pConfig->pKey[2]); in HAL_MCE_ConfigNoekeon() 296 WRITE_REG(hmce->Instance->FMKEYR3, pConfig->pKey[3]); in HAL_MCE_ConfigNoekeon() 359 if (AESConfig->pKey != NULL) in HAL_MCE_ConfigAESContext() [all …]
|
D | stm32h7rsxx_hal_cryp_ex.c | 966 if (hcryp->Init.pKey != NULL) in CRYPEx_SetKey() 971 ((SAES_TypeDef *)(hcryp->Instance))->KEYR7 = *(uint32_t *)(hcryp->Init.pKey); in CRYPEx_SetKey() 972 ((SAES_TypeDef *)(hcryp->Instance))->KEYR6 = *(uint32_t *)(hcryp->Init.pKey + 1U); in CRYPEx_SetKey() 973 ((SAES_TypeDef *)(hcryp->Instance))->KEYR5 = *(uint32_t *)(hcryp->Init.pKey + 2U); in CRYPEx_SetKey() 974 ((SAES_TypeDef *)(hcryp->Instance))->KEYR4 = *(uint32_t *)(hcryp->Init.pKey + 3U); in CRYPEx_SetKey() 975 ((SAES_TypeDef *)(hcryp->Instance))->KEYR3 = *(uint32_t *)(hcryp->Init.pKey + 4U); in CRYPEx_SetKey() 976 ((SAES_TypeDef *)(hcryp->Instance))->KEYR2 = *(uint32_t *)(hcryp->Init.pKey + 5U); in CRYPEx_SetKey() 977 ((SAES_TypeDef *)(hcryp->Instance))->KEYR1 = *(uint32_t *)(hcryp->Init.pKey + 6U); in CRYPEx_SetKey() 978 ((SAES_TypeDef *)(hcryp->Instance))->KEYR0 = *(uint32_t *)(hcryp->Init.pKey + 7U); in CRYPEx_SetKey() 981 ((SAES_TypeDef *)(hcryp->Instance))->KEYR3 = *(uint32_t *)(hcryp->Init.pKey); in CRYPEx_SetKey() [all …]
|
D | stm32h7rsxx_hal_hash.c | 326 hhash->Init.pKey = pConf->pKey; in HAL_HASH_SetConfig() 381 pConf->pKey = hhash->Init.pKey; in HAL_HASH_GetConfig() 1495 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Start() 1529 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1558 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1626 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Accumulate() 1663 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Accumulate() 1728 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_AccumulateLast() 1755 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_AccumulateLast() 1823 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Start_IT() [all …]
|
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/src/ |
D | stm32l0xx_hal_cryp.c | 344 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESECB_Encrypt() 420 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCBC_Encrypt() 499 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCTR_Encrypt() 578 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESECB_Decrypt() 654 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCBC_Decrypt() 730 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCTR_Decrypt() 805 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESECB_Encrypt_IT() 891 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCBC_Encrypt_IT() 980 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCTR_Encrypt_IT() 1069 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESECB_Decrypt_IT() [all …]
|
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/src/ |
D | stm32l1xx_hal_cryp.c | 345 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESECB_Encrypt() 421 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCBC_Encrypt() 500 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCTR_Encrypt() 579 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESECB_Decrypt() 655 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCBC_Decrypt() 731 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCTR_Decrypt() 806 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESECB_Encrypt_IT() 896 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCBC_Encrypt_IT() 989 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESCTR_Encrypt_IT() 1082 CRYP_SetKey(hcryp, hcryp->Init.pKey); in HAL_CRYP_AESECB_Decrypt_IT() [all …]
|
/hal_stm32-latest/stm32cube/stm32u5xx/drivers/src/ |
D | stm32u5xx_hal_otfdec.c | 587 …ypeDef HAL_OTFDEC_RegionSetKey(OTFDEC_HandleTypeDef *hotfdec, uint32_t RegionIndex, uint32_t *pKey) in HAL_OTFDEC_RegionSetKey() argument 596 if (pKey == NULL) in HAL_OTFDEC_RegionSetKey() 609 WRITE_REG(region->REG_KEYR0, pKey[0]); in HAL_OTFDEC_RegionSetKey() 614 WRITE_REG(region->REG_KEYR1, pKey[1]); in HAL_OTFDEC_RegionSetKey() 619 WRITE_REG(region->REG_KEYR2, pKey[2]); in HAL_OTFDEC_RegionSetKey() 624 WRITE_REG(region->REG_KEYR3, pKey[3]); in HAL_OTFDEC_RegionSetKey() 627 if (HAL_OTFDEC_KeyCRCComputation(pKey) != HAL_OTFDEC_RegionGetKeyCRC(hotfdec, RegionIndex)) in HAL_OTFDEC_RegionSetKey() 783 uint32_t HAL_OTFDEC_KeyCRCComputation(uint32_t *pKey) in HAL_OTFDEC_KeyCRCComputation() argument 792 uint32_t *temp = pKey; in HAL_OTFDEC_KeyCRCComputation()
|
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/src/ |
D | stm32h5xx_hal_otfdec.c | 587 …ypeDef HAL_OTFDEC_RegionSetKey(OTFDEC_HandleTypeDef *hotfdec, uint32_t RegionIndex, uint32_t *pKey) in HAL_OTFDEC_RegionSetKey() argument 596 if (pKey == NULL) in HAL_OTFDEC_RegionSetKey() 609 WRITE_REG(region->REG_KEYR0, pKey[0]); in HAL_OTFDEC_RegionSetKey() 614 WRITE_REG(region->REG_KEYR1, pKey[1]); in HAL_OTFDEC_RegionSetKey() 619 WRITE_REG(region->REG_KEYR2, pKey[2]); in HAL_OTFDEC_RegionSetKey() 624 WRITE_REG(region->REG_KEYR3, pKey[3]); in HAL_OTFDEC_RegionSetKey() 627 if (HAL_OTFDEC_KeyCRCComputation(pKey) != HAL_OTFDEC_RegionGetKeyCRC(hotfdec, RegionIndex)) in HAL_OTFDEC_RegionSetKey() 783 uint32_t HAL_OTFDEC_KeyCRCComputation(const uint32_t *pKey) in HAL_OTFDEC_KeyCRCComputation() argument 792 const uint32_t *temp = pKey; in HAL_OTFDEC_KeyCRCComputation()
|
D | stm32h5xx_hal_hash.c | 330 hhash->Init.pKey = pConf->pKey; in HAL_HASH_SetConfig() 385 pConf->pKey = hhash->Init.pKey; in HAL_HASH_GetConfig() 1499 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Start() 1533 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1562 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1630 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Accumulate() 1667 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Accumulate() 1732 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_AccumulateLast() 1759 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_AccumulateLast() 1827 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Start_IT() [all …]
|
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_hal_otfdec.c | 587 …ypeDef HAL_OTFDEC_RegionSetKey(OTFDEC_HandleTypeDef *hotfdec, uint32_t RegionIndex, uint32_t *pKey) in HAL_OTFDEC_RegionSetKey() argument 596 if (pKey == NULL) in HAL_OTFDEC_RegionSetKey() 609 WRITE_REG(region->REG_KEYR0, pKey[0]); in HAL_OTFDEC_RegionSetKey() 614 WRITE_REG(region->REG_KEYR1, pKey[1]); in HAL_OTFDEC_RegionSetKey() 619 WRITE_REG(region->REG_KEYR2, pKey[2]); in HAL_OTFDEC_RegionSetKey() 624 WRITE_REG(region->REG_KEYR3, pKey[3]); in HAL_OTFDEC_RegionSetKey() 627 if (HAL_OTFDEC_KeyCRCComputation(pKey) != HAL_OTFDEC_RegionGetKeyCRC(hotfdec, RegionIndex)) in HAL_OTFDEC_RegionSetKey() 783 uint32_t HAL_OTFDEC_KeyCRCComputation(const uint32_t *pKey) in HAL_OTFDEC_KeyCRCComputation() argument 792 const uint32_t *temp = pKey; in HAL_OTFDEC_KeyCRCComputation()
|
D | stm32l5xx_hal_cryp.c | 597 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig() 666 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig() 3049 if (hcryp->Init.pKey != NULL) in CRYP_SetKey() 3054 hcryp->Instance->KEYR7 = *(uint32_t *)(hcryp->Init.pKey); in CRYP_SetKey() 3055 hcryp->Instance->KEYR6 = *(uint32_t *)(hcryp->Init.pKey + 1U); in CRYP_SetKey() 3056 hcryp->Instance->KEYR5 = *(uint32_t *)(hcryp->Init.pKey + 2U); in CRYP_SetKey() 3057 hcryp->Instance->KEYR4 = *(uint32_t *)(hcryp->Init.pKey + 3U); in CRYP_SetKey() 3058 hcryp->Instance->KEYR3 = *(uint32_t *)(hcryp->Init.pKey + 4U); in CRYP_SetKey() 3059 hcryp->Instance->KEYR2 = *(uint32_t *)(hcryp->Init.pKey + 5U); in CRYP_SetKey() 3060 hcryp->Instance->KEYR1 = *(uint32_t *)(hcryp->Init.pKey + 6U); in CRYP_SetKey() [all …]
|
/hal_stm32-latest/stm32cube/stm32wlxx/drivers/src/ |
D | stm32wlxx_hal_cryp.c | 593 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig() 661 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig() 1107 pcont->pKey = hcryp->Init.pKey; in HAL_CRYP_SaveContext() 1162 hcryp->Init.pKey = pcont->pKey; in HAL_CRYP_RestoreContext() 3198 if (hcryp->Init.pKey != NULL) in CRYP_SetKey() 3203 hcryp->Instance->KEYR7 = *(uint32_t *)(hcryp->Init.pKey); in CRYP_SetKey() 3204 hcryp->Instance->KEYR6 = *(uint32_t *)(hcryp->Init.pKey + 1U); in CRYP_SetKey() 3205 hcryp->Instance->KEYR5 = *(uint32_t *)(hcryp->Init.pKey + 2U); in CRYP_SetKey() 3206 hcryp->Instance->KEYR4 = *(uint32_t *)(hcryp->Init.pKey + 3U); in CRYP_SetKey() 3207 hcryp->Instance->KEYR3 = *(uint32_t *)(hcryp->Init.pKey + 4U); in CRYP_SetKey() [all …]
|
/hal_stm32-latest/stm32cube/stm32wbaxx/drivers/src/ |
D | stm32wbaxx_hal_hash.c | 326 hhash->Init.pKey = pConf->pKey; in HAL_HASH_SetConfig() 381 pConf->pKey = hhash->Init.pKey; in HAL_HASH_GetConfig() 1495 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Start() 1519 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1548 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1616 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Accumulate() 1643 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Accumulate() 1708 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_AccumulateLast() 1735 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_AccumulateLast() 1803 hhash->pHashKeyBuffPtr = hhash->Init.pKey; in HAL_HASH_HMAC_Start_IT() [all …]
|
/hal_stm32-latest/stm32cube/stm32u0xx/drivers/src/ |
D | stm32u0xx_hal_cryp.c | 597 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig() 666 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig() 3049 if (hcryp->Init.pKey != NULL) in CRYP_SetKey() 3054 hcryp->Instance->KEYR7 = *(uint32_t *)(hcryp->Init.pKey); in CRYP_SetKey() 3055 hcryp->Instance->KEYR6 = *(uint32_t *)(hcryp->Init.pKey + 1U); in CRYP_SetKey() 3056 hcryp->Instance->KEYR5 = *(uint32_t *)(hcryp->Init.pKey + 2U); in CRYP_SetKey() 3057 hcryp->Instance->KEYR4 = *(uint32_t *)(hcryp->Init.pKey + 3U); in CRYP_SetKey() 3058 hcryp->Instance->KEYR3 = *(uint32_t *)(hcryp->Init.pKey + 4U); in CRYP_SetKey() 3059 hcryp->Instance->KEYR2 = *(uint32_t *)(hcryp->Init.pKey + 5U); in CRYP_SetKey() 3060 hcryp->Instance->KEYR1 = *(uint32_t *)(hcryp->Init.pKey + 6U); in CRYP_SetKey() [all …]
|
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/src/ |
D | stm32g0xx_hal_cryp.c | 597 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig() 666 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig() 3051 if (hcryp->Init.pKey != NULL) in CRYP_SetKey() 3056 hcryp->Instance->KEYR7 = *(uint32_t *)(hcryp->Init.pKey); in CRYP_SetKey() 3057 hcryp->Instance->KEYR6 = *(uint32_t *)(hcryp->Init.pKey + 1U); in CRYP_SetKey() 3058 hcryp->Instance->KEYR5 = *(uint32_t *)(hcryp->Init.pKey + 2U); in CRYP_SetKey() 3059 hcryp->Instance->KEYR4 = *(uint32_t *)(hcryp->Init.pKey + 3U); in CRYP_SetKey() 3060 hcryp->Instance->KEYR3 = *(uint32_t *)(hcryp->Init.pKey + 4U); in CRYP_SetKey() 3061 hcryp->Instance->KEYR2 = *(uint32_t *)(hcryp->Init.pKey + 5U); in CRYP_SetKey() 3062 hcryp->Instance->KEYR1 = *(uint32_t *)(hcryp->Init.pKey + 6U); in CRYP_SetKey() [all …]
|
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/src/ |
D | stm32wbxx_hal_cryp.c | 597 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig() 666 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig() 3049 if (hcryp->Init.pKey != NULL) in CRYP_SetKey() 3054 hcryp->Instance->KEYR7 = *(uint32_t *)(hcryp->Init.pKey); in CRYP_SetKey() 3055 hcryp->Instance->KEYR6 = *(uint32_t *)(hcryp->Init.pKey + 1U); in CRYP_SetKey() 3056 hcryp->Instance->KEYR5 = *(uint32_t *)(hcryp->Init.pKey + 2U); in CRYP_SetKey() 3057 hcryp->Instance->KEYR4 = *(uint32_t *)(hcryp->Init.pKey + 3U); in CRYP_SetKey() 3058 hcryp->Instance->KEYR3 = *(uint32_t *)(hcryp->Init.pKey + 4U); in CRYP_SetKey() 3059 hcryp->Instance->KEYR2 = *(uint32_t *)(hcryp->Init.pKey + 5U); in CRYP_SetKey() 3060 hcryp->Instance->KEYR1 = *(uint32_t *)(hcryp->Init.pKey + 6U); in CRYP_SetKey() [all …]
|
/hal_stm32-latest/stm32cube/stm32g4xx/drivers/src/ |
D | stm32g4xx_hal_cryp.c | 597 hcryp->Init.pKey = pConf->pKey; in HAL_CRYP_SetConfig() 666 pConf->pKey = hcryp->Init.pKey; in HAL_CRYP_GetConfig() 3049 if (hcryp->Init.pKey != NULL) in CRYP_SetKey() 3054 hcryp->Instance->KEYR7 = *(uint32_t *)(hcryp->Init.pKey); in CRYP_SetKey() 3055 hcryp->Instance->KEYR6 = *(uint32_t *)(hcryp->Init.pKey + 1U); in CRYP_SetKey() 3056 hcryp->Instance->KEYR5 = *(uint32_t *)(hcryp->Init.pKey + 2U); in CRYP_SetKey() 3057 hcryp->Instance->KEYR4 = *(uint32_t *)(hcryp->Init.pKey + 3U); in CRYP_SetKey() 3058 hcryp->Instance->KEYR3 = *(uint32_t *)(hcryp->Init.pKey + 4U); in CRYP_SetKey() 3059 hcryp->Instance->KEYR2 = *(uint32_t *)(hcryp->Init.pKey + 5U); in CRYP_SetKey() 3060 hcryp->Instance->KEYR1 = *(uint32_t *)(hcryp->Init.pKey + 6U); in CRYP_SetKey() [all …]
|