/hal_stm32-3.5.0/stm32cube/stm32wbaxx/drivers/src/ |
D | stm32wbaxx_hal_cryp.c | 363 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 390 …c void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, const uint32_t *Output, uint32_t KeySize); 391 …c void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, const uint32_t *Input, uint32_t KeySize); 453 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 489 cr_value = (uint32_t)(hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 496 …cr_value = (uint32_t)(hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm | hcryp->… in HAL_CRYP_Init() 530 cr_value = (uint32_t)(hcryp->Init.KeyMode | hcryp->Init.DataType | hcryp->Init.KeySize | \ in HAL_CRYP_Init() 619 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 633 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 646 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() [all …]
|
D | stm32wbaxx_hal_hash.c | 328 hhash->Init.KeySize = pConf->KeySize; in HAL_HASH_SetConfig() 383 pConf->KeySize = hhash->Init.KeySize; in HAL_HASH_GetConfig() 1500 if (hhash->Init.KeySize > blocksize) in HAL_HASH_HMAC_Start() 1513 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Start() 1519 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1545 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Start() 1548 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1625 if (hhash->Init.KeySize > blocksize) in HAL_HASH_HMAC_Accumulate() 1640 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Accumulate() 1643 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Accumulate() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32h5xx/drivers/src/ |
D | stm32h5xx_hal_cryp.c | 363 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 390 …c void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, const uint32_t *Output, uint32_t KeySize); 391 …c void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, const uint32_t *Input, uint32_t KeySize); 453 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 490 …cr_value = (uint32_t)(hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm | hcryp->… in HAL_CRYP_Init() 524 cr_value = (uint32_t)(hcryp->Init.KeyMode | hcryp->Init.DataType | hcryp->Init.KeySize | \ in HAL_CRYP_Init() 612 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 626 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 640 … hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm | hcryp->Init.KeyMode); in HAL_CRYP_SetConfig() 658 … AES_CR_KEYSEL | AES_CR_KEYPROT | AES_CR_KMOD, hcryp->Init.DataType | hcryp->Init.KeySize | \ in HAL_CRYP_SetConfig() [all …]
|
D | stm32h5xx_hal_hash.c | 330 hhash->Init.KeySize = pConf->KeySize; in HAL_HASH_SetConfig() 385 pConf->KeySize = hhash->Init.KeySize; in HAL_HASH_GetConfig() 1512 if (hhash->Init.KeySize > blocksize) in HAL_HASH_HMAC_Start() 1525 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Start() 1531 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1557 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Start() 1560 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1647 if (hhash->Init.KeySize > blocksize) in HAL_HASH_HMAC_Accumulate() 1662 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Accumulate() 1665 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Accumulate() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32u5xx/drivers/src/ |
D | stm32u5xx_hal_cryp.c | 363 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 390 …c void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, const uint32_t *Output, uint32_t KeySize); 391 …c void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, const uint32_t *Input, uint32_t KeySize); 453 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 490 …cr_value = (uint32_t)(hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm | hcryp->… in HAL_CRYP_Init() 524 cr_value = (uint32_t)(hcryp->Init.KeyMode | hcryp->Init.DataType | hcryp->Init.KeySize | \ in HAL_CRYP_Init() 612 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 626 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 640 … hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm | hcryp->Init.KeyMode); in HAL_CRYP_SetConfig() 658 … AES_CR_KEYSEL | AES_CR_KEYPROT | AES_CR_KMOD, hcryp->Init.DataType | hcryp->Init.KeySize | \ in HAL_CRYP_SetConfig() [all …]
|
D | stm32u5xx_hal_hash.c | 1724 buffersize = hhash->Init.KeySize; /* DMA transfer size (in bytes) */ in HASH_DMAXferCplt() 1727 …hhash->HashInCount = hhash->Init.KeySize; /* Initial size for second DMA transfer (input data)… in HASH_DMAXferCplt() 2155 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2156 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2311 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2387 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2400 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 3200 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 3217 if (hhash->Init.KeySize > 64U) in HMAC_Start() 3240 …hhash->HashKeyCount = hhash->Init.KeySize; /* Key size, HMAC_Processing input parameter for … in HMAC_Start() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32wlxx/drivers/src/ |
D | stm32wlxx_hal_cryp.c | 371 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 397 static void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t* Output, uint32_t KeySize); 398 static void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t* Input, uint32_t KeySize); 458 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 493 …TYPE | AES_CR_KEYSIZE | AES_CR_CHMOD, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Alg… in HAL_CRYP_Init() 579 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 595 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 605 …TYPE | AES_CR_KEYSIZE | AES_CR_CHMOD, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Alg… in HAL_CRYP_SetConfig() 663 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 964 CRYP_Read_KeyRegisters(hcryp, hcryp->Key_saved, hcryp->Init.KeySize); in HAL_CRYP_Suspend() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32mp1xx/drivers/src/ |
D | stm32mp1xx_hal_hash.c | 1566 buffersize = hhash->Init.KeySize; /* DMA transfer size (in bytes) */ in HASH_DMAXferCplt() 1569 …hhash->HashInCount = hhash->Init.KeySize; /* Initial size for second DMA transfer (input data)… in HASH_DMAXferCplt() 1962 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 1963 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2096 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2172 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2185 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2736 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 2752 if(hhash->Init.KeySize > 64U) in HMAC_Start() 2770 …hhash->HashKeyCount = hhash->Init.KeySize; /* Key size, HMAC_Processing input parameter for … in HMAC_Start() [all …]
|
D | stm32mp1xx_hal_cryp.c | 346 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 424 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 460 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 542 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 558 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 567 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 622 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 1508 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in HAL_CRYP_Encrypt_DMA() 2037 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Encrypt() 2105 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Encrypt_IT() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32f2xx/drivers/src/ |
D | stm32f2xx_hal_hash.c | 1706 buffersize = hhash->Init.KeySize; /* DMA transfer size (in bytes) */ in HASH_DMAXferCplt() 1709 …hhash->HashInCount = hhash->Init.KeySize; /* Initial size for second DMA transfer (input data)… in HASH_DMAXferCplt() 2068 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2069 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2224 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2300 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2313 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 3066 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 3083 if (hhash->Init.KeySize > 64U) in HMAC_Start() 3106 …hhash->HashKeyCount = hhash->Init.KeySize; /* Key size, HMAC_Processing input parameter for … in HMAC_Start() [all …]
|
D | stm32f2xx_hal_cryp.c | 202 static void CRYP_SetKey( CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 269 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 303 …YPE|CRYP_CR_KEYSIZE|CRYP_CR_ALGOMODE, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Alg… in HAL_CRYP_Init() 382 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 398 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 402 …YPE|CRYP_CR_KEYSIZE|CRYP_CR_ALGOMODE, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Alg… in HAL_CRYP_SetConfig() 457 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 1259 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in HAL_CRYP_Encrypt_DMA() 1704 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Encrypt() 1751 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Encrypt_IT() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32f7xx/drivers/src/ |
D | stm32f7xx_hal_hash.c | 1742 buffersize = hhash->Init.KeySize; /* DMA transfer size (in bytes) */ in HASH_DMAXferCplt() 1745 …hhash->HashInCount = hhash->Init.KeySize; /* Initial size for second DMA transfer (input data)… in HASH_DMAXferCplt() 2136 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2137 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2292 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2368 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2381 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 3145 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 3162 if (hhash->Init.KeySize > 64U) in HMAC_Start() 3185 …hhash->HashKeyCount = hhash->Init.KeySize; /* Key size, HMAC_Processing input parameter for … in HMAC_Start() [all …]
|
D | stm32f7xx_hal_cryp.c | 350 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 439 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 477 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 482 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 567 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 583 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 596 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 600 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 660 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 1720 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in HAL_CRYP_Encrypt_DMA() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/ |
D | stm32l4xx_hal_hash.c | 1742 buffersize = hhash->Init.KeySize; /* DMA transfer size (in bytes) */ in HASH_DMAXferCplt() 1745 …hhash->HashInCount = hhash->Init.KeySize; /* Initial size for second DMA transfer (input data)… in HASH_DMAXferCplt() 2136 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2137 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2292 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2368 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2381 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 3145 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 3162 if (hhash->Init.KeySize > 64U) in HMAC_Start() 3185 …hhash->HashKeyCount = hhash->Init.KeySize; /* Key size, HMAC_Processing input parameter for … in HMAC_Start() [all …]
|
D | stm32l4xx_hal_cryp.c | 253 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 338 MODIFY_REG(hcryp->Instance->CR, AES_CR_KEYSIZE, hcryp->Init.KeySize); in HAL_CRYP_Init() 1534 if (hcryp->Init.KeySize == CRYP_KEYSIZE_256B) in CRYP_SetKey() 1630 if (hcryp->Init.KeySize == CRYP_KEYSIZE_256B) in CRYP_AES_IT()
|
/hal_stm32-3.5.0/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_hal_hash.c | 1742 buffersize = hhash->Init.KeySize; /* DMA transfer size (in bytes) */ in HASH_DMAXferCplt() 1745 …hhash->HashInCount = hhash->Init.KeySize; /* Initial size for second DMA transfer (input data)… in HASH_DMAXferCplt() 2144 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2145 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2300 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2376 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2389 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 3153 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 3170 if (hhash->Init.KeySize > 64U) in HMAC_Start() 3193 …hhash->HashKeyCount = hhash->Init.KeySize; /* Key size, HMAC_Processing input parameter for … in HMAC_Start() [all …]
|
D | stm32h7xx_hal_cryp.c | 342 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 423 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 459 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 545 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 561 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 572 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 627 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 1507 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in HAL_CRYP_Encrypt_DMA() 2024 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Encrypt() 2092 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in CRYP_AES_Encrypt_IT() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_hal_hash.c | 1742 buffersize = hhash->Init.KeySize; /* DMA transfer size (in bytes) */ in HASH_DMAXferCplt() 1745 …hhash->HashInCount = hhash->Init.KeySize; /* Initial size for second DMA transfer (input data)… in HASH_DMAXferCplt() 2136 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2137 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2292 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2368 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2381 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 3145 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 3162 if (hhash->Init.KeySize > 64U) in HMAC_Start() 3185 …hhash->HashKeyCount = hhash->Init.KeySize; /* Key size, HMAC_Processing input parameter for … in HMAC_Start() [all …]
|
D | stm32l5xx_hal_cryp.c | 371 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 397 static void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t* Output, uint32_t KeySize); 398 static void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t* Input, uint32_t KeySize); 456 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 491 …TYPE | AES_CR_KEYSIZE | AES_CR_CHMOD, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Alg… in HAL_CRYP_Init() 577 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 593 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 603 …TYPE | AES_CR_KEYSIZE | AES_CR_CHMOD, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Alg… in HAL_CRYP_SetConfig() 661 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 962 CRYP_Read_KeyRegisters(hcryp, hcryp->Key_saved, hcryp->Init.KeySize); in HAL_CRYP_Suspend() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32g4xx/drivers/src/ |
D | stm32g4xx_hal_cryp.c | 371 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 397 static void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t* Output, uint32_t KeySize); 398 static void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t* Input, uint32_t KeySize); 456 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 491 …TYPE | AES_CR_KEYSIZE | AES_CR_CHMOD, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Alg… in HAL_CRYP_Init() 577 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 593 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 603 …TYPE | AES_CR_KEYSIZE | AES_CR_CHMOD, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Alg… in HAL_CRYP_SetConfig() 661 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 962 CRYP_Read_KeyRegisters(hcryp, hcryp->Key_saved, hcryp->Init.KeySize); in HAL_CRYP_Suspend() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32wbxx/drivers/src/ |
D | stm32wbxx_hal_cryp.c | 371 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 397 static void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Output, uint32_t KeySize); 398 static void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint32_t KeySize); 456 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 492 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 578 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 594 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 605 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 663 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 965 CRYP_Read_KeyRegisters(hcryp, hcryp->Key_saved, hcryp->Init.KeySize); in HAL_CRYP_Suspend() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32g0xx/drivers/src/ |
D | stm32g0xx_hal_cryp.c | 371 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 397 static void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t* Output, uint32_t KeySize); 398 static void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t* Input, uint32_t KeySize); 456 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 491 …TYPE | AES_CR_KEYSIZE | AES_CR_CHMOD, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Alg… in HAL_CRYP_Init() 577 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 593 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 603 …TYPE | AES_CR_KEYSIZE | AES_CR_CHMOD, hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Alg… in HAL_CRYP_SetConfig() 661 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 962 CRYP_Read_KeyRegisters(hcryp, hcryp->Key_saved, hcryp->Init.KeySize); in HAL_CRYP_Suspend() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32f4xx/drivers/src/ |
D | stm32f4xx_hal_hash.c | 1751 buffersize = hhash->Init.KeySize; /* DMA transfer size (in bytes) */ in HASH_DMAXferCplt() 1754 …hhash->HashInCount = hhash->Init.KeySize; /* Initial size for second DMA transfer (input data)… in HASH_DMAXferCplt() 2149 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2150 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2305 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2381 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2394 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 3158 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 3175 if (hhash->Init.KeySize > 64U) in HMAC_Start() 3198 …hhash->HashKeyCount = hhash->Init.KeySize; /* Key size, HMAC_Processing input parameter for … in HMAC_Start() [all …]
|
D | stm32f4xx_hal_cryp.c | 350 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 439 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 477 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 482 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 567 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 583 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 596 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 600 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 660 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 1720 CRYP_SetKey(hcryp, hcryp->Init.KeySize); in HAL_CRYP_Encrypt_DMA() [all …]
|
/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/include/ |
D | stm32l4xx_hal_cryp_ex.h | 85 void HAL_CRYPEx_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Output, uint32_t KeySize); 86 void HAL_CRYPEx_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint8_t* Input, uint32_t KeySize);
|