/hal_stm32-latest/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-latest/stm32cube/stm32h5xx/drivers/src/ |
D | stm32h5xx_hal_cryp.c | 363 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 391 …c void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, const uint32_t *Output, uint32_t KeySize); 392 …c void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, const uint32_t *Input, uint32_t KeySize); 454 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 491 …cr_value = (uint32_t)(hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm | hcryp->… in HAL_CRYP_Init() 525 cr_value = (uint32_t)(hcryp->Init.KeyMode | hcryp->Init.DataType | hcryp->Init.KeySize | \ in HAL_CRYP_Init() 613 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 627 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 648 … hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm | hcryp->Init.KeyMode); in HAL_CRYP_SetConfig() 679 … 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 | 332 hhash->Init.KeySize = pConf->KeySize; in HAL_HASH_SetConfig() 387 pConf->KeySize = hhash->Init.KeySize; in HAL_HASH_GetConfig() 1514 if (hhash->Init.KeySize > blocksize) in HAL_HASH_HMAC_Start() 1527 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Start() 1533 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1559 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Start() 1562 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1649 if (hhash->Init.KeySize > blocksize) in HAL_HASH_HMAC_Accumulate() 1664 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Accumulate() 1667 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Accumulate() [all …]
|
/hal_stm32-latest/stm32cube/stm32n6xx/drivers/src/ |
D | stm32n6xx_hal_hash.c | 328 hhash->Init.KeySize = pConf->KeySize; in HAL_HASH_SetConfig() 383 pConf->KeySize = hhash->Init.KeySize; in HAL_HASH_GetConfig() 1510 if (hhash->Init.KeySize > blocksize) in HAL_HASH_HMAC_Start() 1523 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Start() 1529 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1555 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Start() 1558 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1645 if (hhash->Init.KeySize > blocksize) in HAL_HASH_HMAC_Accumulate() 1660 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Accumulate() 1663 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Accumulate() [all …]
|
D | stm32n6xx_hal_cryp.c | 373 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 481 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 493 assert_param(IS_SAES_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 539 … hcryp->Init.KeyMode | hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 566 SAES_CONV_DATATYPE(hcryp->Init.DataType) | SAES_CONV_KEYSIZE(hcryp->Init.KeySize) | \ in HAL_CRYP_Init() 673 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 685 assert_param(IS_SAES_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 709 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 726 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 742 … SAES_CONV_DATATYPE(hcryp->Init.DataType) | SAES_CONV_KEYSIZE(hcryp->Init.KeySize) | \ in HAL_CRYP_SetConfig() [all …]
|
/hal_stm32-latest/stm32cube/stm32h7rsxx/drivers/src/ |
D | stm32h7rsxx_hal_hash.c | 328 hhash->Init.KeySize = pConf->KeySize; in HAL_HASH_SetConfig() 383 pConf->KeySize = hhash->Init.KeySize; in HAL_HASH_GetConfig() 1510 if (hhash->Init.KeySize > blocksize) in HAL_HASH_HMAC_Start() 1523 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Start() 1529 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1555 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Start() 1558 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Start() 1645 if (hhash->Init.KeySize > blocksize) in HAL_HASH_HMAC_Accumulate() 1660 MODIFY_REG(hhash->Instance->STR, HASH_STR_NBLW, 8U * ((hhash->Init.KeySize) % 4U)); in HAL_HASH_HMAC_Accumulate() 1663 HASH_WriteData(hhash, hhash->Init.pKey, hhash->Init.KeySize); in HAL_HASH_HMAC_Accumulate() [all …]
|
D | stm32h7rsxx_hal_cryp.c | 364 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 472 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 484 assert_param(IS_SAES_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 529 … hcryp->Init.KeyMode | hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 553 … SAES_CONV_KEYSIZE(hcryp->Init.KeySize) | CRYP_SAES_AlgoConversion(hcryp->Init.Algorithm, in HAL_CRYP_Init() 660 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 672 assert_param(IS_SAES_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 695 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 711 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 727 … SAES_CONV_KEYSIZE(hcryp->Init.KeySize) | CRYP_SAES_AlgoConversion(hcryp->Init.Algorithm, in HAL_CRYP_SetConfig() [all …]
|
/hal_stm32-latest/stm32cube/stm32u5xx/drivers/src/ |
D | stm32u5xx_hal_cryp.c | 363 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 391 …c void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, const uint32_t *Output, uint32_t KeySize); 392 …c void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, const uint32_t *Input, uint32_t KeySize); 454 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 491 …cr_value = (uint32_t)(hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm | hcryp->… in HAL_CRYP_Init() 525 cr_value = (uint32_t)(hcryp->Init.KeyMode | hcryp->Init.DataType | hcryp->Init.KeySize | \ in HAL_CRYP_Init() 613 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 627 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 648 … hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm | hcryp->Init.KeyMode); in HAL_CRYP_SetConfig() 679 … 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() 2202 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2203 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2358 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2434 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2447 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 3247 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 3264 if (hhash->Init.KeySize > 64U) in HMAC_Start() 3287 …hhash->HashKeyCount = hhash->Init.KeySize; /* Key size, HMAC_Processing input parameter for … in HMAC_Start() [all …]
|
/hal_stm32-latest/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-latest/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-latest/stm32cube/stm32f2xx/drivers/src/ |
D | stm32f2xx_hal_hash.c | 1709 buffersize = hhash->Init.KeySize; /* DMA transfer size (in bytes) */ in HASH_DMAXferCplt() 1712 …hhash->HashInCount = hhash->Init.KeySize; /* Initial size for second DMA transfer (input data)… in HASH_DMAXferCplt() 2124 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2125 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2280 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2356 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2369 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 3140 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 3157 if (hhash->Init.KeySize > 64U) in HMAC_Start() 3180 …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-latest/stm32cube/stm32u0xx/drivers/src/ |
D | stm32u0xx_hal_cryp.c | 376 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 402 static void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Output, uint32_t KeySize); 403 static void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint32_t KeySize); 461 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 497 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 583 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 599 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 610 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 668 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 968 CRYP_Read_KeyRegisters(hcryp, hcryp->Key_saved, hcryp->Init.KeySize); in HAL_CRYP_Suspend() [all …]
|
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/src/ |
D | stm32g0xx_hal_cryp.c | 376 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 402 static void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Output, uint32_t KeySize); 403 static void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint32_t KeySize); 461 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 497 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 583 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 599 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 610 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 668 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 970 CRYP_Read_KeyRegisters(hcryp, hcryp->Key_saved, hcryp->Init.KeySize); in HAL_CRYP_Suspend() [all …]
|
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/src/ |
D | stm32wbxx_hal_cryp.c | 376 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 402 static void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Output, uint32_t KeySize); 403 static void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint32_t KeySize); 461 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 497 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 583 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 599 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 610 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 668 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 968 CRYP_Read_KeyRegisters(hcryp, hcryp->Key_saved, hcryp->Init.KeySize); in HAL_CRYP_Suspend() [all …]
|
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/src/ |
D | stm32l5xx_hal_cryp.c | 376 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 402 static void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Output, uint32_t KeySize); 403 static void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint32_t KeySize); 461 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 497 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 583 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 599 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 610 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 668 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 968 CRYP_Read_KeyRegisters(hcryp, hcryp->Key_saved, hcryp->Init.KeySize); in HAL_CRYP_Suspend() [all …]
|
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() 2191 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2192 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2347 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2423 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2436 __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-latest/stm32cube/stm32g4xx/drivers/src/ |
D | stm32g4xx_hal_cryp.c | 376 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize); 402 static void CRYP_Read_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Output, uint32_t KeySize); 403 static void CRYP_Write_KeyRegisters(CRYP_HandleTypeDef *hcryp, uint32_t *Input, uint32_t KeySize); 461 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init() 497 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_Init() 583 assert_param(IS_CRYP_KEYSIZE(pConf->KeySize)); in HAL_CRYP_SetConfig() 599 hcryp->Init.KeySize = pConf->KeySize; in HAL_CRYP_SetConfig() 610 hcryp->Init.DataType | hcryp->Init.KeySize | hcryp->Init.Algorithm); in HAL_CRYP_SetConfig() 668 pConf->KeySize = hcryp->Init.KeySize ; in HAL_CRYP_GetConfig() 968 CRYP_Read_KeyRegisters(hcryp, hcryp->Key_saved, hcryp->Init.KeySize); in HAL_CRYP_Suspend() [all …]
|
/hal_stm32-latest/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() 2204 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2205 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2360 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2436 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2449 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 3213 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 3230 if (hhash->Init.KeySize > 64U) in HMAC_Start() 3253 …hhash->HashKeyCount = hhash->Init.KeySize; /* Key size, HMAC_Processing input parameter for … in HMAC_Start() [all …]
|
/hal_stm32-latest/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() 2191 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2192 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2347 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2423 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2436 __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-latest/stm32cube/stm32h7xx/drivers/src/ |
D | stm32h7xx_hal_hash.c | 1745 buffersize = hhash->Init.KeySize; /* DMA transfer size (in bytes) */ in HASH_DMAXferCplt() 1748 …hhash->HashInCount = hhash->Init.KeySize; /* Initial size for second DMA transfer (input data)… in HASH_DMAXferCplt() 2192 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2193 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2348 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2424 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2437 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 3219 …if ((pInBuffer == NULL) || (Size == 0U) || (hhash->Init.pKey == NULL) || (hhash->Init.KeySize == 0… in HMAC_Start() 3236 if (hhash->Init.KeySize > 64U) in HMAC_Start() 3259 …hhash->HashKeyCount = hhash->Init.KeySize; /* Key size, HMAC_Processing input parameter for … in HMAC_Start() [all …]
|
/hal_stm32-latest/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() 2191 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); /* Set NBLW for the key */ in HASH_IT() 2192 hhash->HashInCount = hhash->Init.KeySize; /* Set the key size (in bytes) */ in HASH_IT() 2347 __HAL_HASH_SET_NBVALIDBITS(hhash->Init.KeySize); in HMAC_Processing() 2423 hhash->HashKeyCount = hhash->Init.KeySize; in HMAC_Processing() 2436 __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 …]
|