Home
last modified time | relevance | path

Searched refs:hcryp (Results 1 – 25 of 62) sorted by relevance

123

/hal_stm32-3.5.0/stm32cube/stm32f4xx/drivers/src/
Dstm32f4xx_hal_cryp.c346 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
350 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
351 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
353 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
354 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
355 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
356 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
357 static void CRYP_Workaround(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
358 static HAL_StatusTypeDef CRYP_AESGCM_Process_DMA(CRYP_HandleTypeDef *hcryp);
359 static HAL_StatusTypeDef CRYP_AESGCM_Process_IT(CRYP_HandleTypeDef *hcryp);
[all …]
Dstm32f4xx_hal_cryp_ex.c128 HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, u… in HAL_CRYPEx_AESGCM_GenerateAuthTAG() argument
132 uint64_t headerlength = (uint64_t)(hcryp->Init.HeaderSize) * 32U; /* Header length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
133 uint64_t inputlength = (uint64_t)hcryp->SizesSum * 8U; /* Input length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
137 if (hcryp->Init.HeaderWidthUnit == CRYP_HEADERWIDTHUNIT_BYTE) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
142 if (hcryp->State == HAL_CRYP_STATE_READY) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
145 __HAL_LOCK(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
148 hcryp->State = HAL_CRYP_STATE_BUSY; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
151 if (hcryp->Phase == CRYPEx_PHASE_PROCESS) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
154 hcryp->Phase = CRYPEx_PHASE_FINAL; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
159 __HAL_CRYP_DISABLE(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f7xx/drivers/src/
Dstm32f7xx_hal_cryp.c346 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
350 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
351 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
353 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
354 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
355 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
356 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
357 static void CRYP_Workaround(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
358 static HAL_StatusTypeDef CRYP_AESGCM_Process_DMA(CRYP_HandleTypeDef *hcryp);
359 static HAL_StatusTypeDef CRYP_AESGCM_Process_IT(CRYP_HandleTypeDef *hcryp);
[all …]
Dstm32f7xx_hal_cryp_ex.c128 HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, u… in HAL_CRYPEx_AESGCM_GenerateAuthTAG() argument
132 uint64_t headerlength = (uint64_t)(hcryp->Init.HeaderSize) * 32U; /* Header length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
133 uint64_t inputlength = (uint64_t)hcryp->SizesSum * 8U; /* Input length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
137 if (hcryp->Init.HeaderWidthUnit == CRYP_HEADERWIDTHUNIT_BYTE) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
142 if (hcryp->State == HAL_CRYP_STATE_READY) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
145 __HAL_LOCK(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
148 hcryp->State = HAL_CRYP_STATE_BUSY; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
151 if (hcryp->Phase == CRYPEx_PHASE_PROCESS) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
154 hcryp->Phase = CRYPEx_PHASE_FINAL; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
159 __HAL_CRYP_DISABLE(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_hal_cryp.c366 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
367 static HAL_StatusTypeDef CRYP_SetHeaderDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uin…
371 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
372 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
373 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
374 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
375 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
376 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
377 static HAL_StatusTypeDef CRYP_GCMCCM_SetPayloadPhase_DMA(CRYP_HandleTypeDef *hcryp);
378 static HAL_StatusTypeDef CRYP_AESGCM_Process_DMA(CRYP_HandleTypeDef *hcryp);
[all …]
Dstm32g4xx_hal_cryp_ex.c98 HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, u… in HAL_CRYPEx_AESGCM_GenerateAuthTAG() argument
102 uint64_t headerlength = (uint64_t)hcryp->Init.HeaderSize * 32U; /* Header length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
103 uint64_t inputlength = (uint64_t)hcryp->SizesSum * 8U; /* Input length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
107 if (hcryp->Init.HeaderWidthUnit == CRYP_HEADERWIDTHUNIT_BYTE) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
112 if (hcryp->State == HAL_CRYP_STATE_READY) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
115 __HAL_LOCK(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
118 hcryp->State = HAL_CRYP_STATE_BUSY; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
121 if (hcryp->Phase == CRYPEx_PHASE_PROCESS) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
124 hcryp->Phase = CRYPEx_PHASE_FINAL; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
129 __HAL_CRYP_DISABLE(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_hal_cryp.c366 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
367 static HAL_StatusTypeDef CRYP_SetHeaderDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uin…
371 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
372 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
373 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
374 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
375 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
376 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
377 static HAL_StatusTypeDef CRYP_GCMCCM_SetPayloadPhase_DMA(CRYP_HandleTypeDef *hcryp);
378 static HAL_StatusTypeDef CRYP_AESGCM_Process_DMA(CRYP_HandleTypeDef *hcryp);
[all …]
Dstm32wbxx_hal_cryp_ex.c98 HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, u… in HAL_CRYPEx_AESGCM_GenerateAuthTAG() argument
102 uint64_t headerlength = (uint64_t)hcryp->Init.HeaderSize * 32U; /* Header length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
103 uint64_t inputlength = (uint64_t)hcryp->SizesSum * 8U; /* Input length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
107 if (hcryp->Init.HeaderWidthUnit == CRYP_HEADERWIDTHUNIT_BYTE) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
112 if (hcryp->State == HAL_CRYP_STATE_READY) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
115 __HAL_LOCK(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
118 hcryp->State = HAL_CRYP_STATE_BUSY; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
121 if (hcryp->Phase == CRYPEx_PHASE_PROCESS) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
124 hcryp->Phase = CRYPEx_PHASE_FINAL; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
129 __HAL_CRYP_DISABLE(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_hal_cryp.c366 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
367 static HAL_StatusTypeDef CRYP_SetHeaderDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uin…
371 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
372 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
373 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
374 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
375 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
376 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
377 static HAL_StatusTypeDef CRYP_GCMCCM_SetPayloadPhase_DMA(CRYP_HandleTypeDef *hcryp);
378 static HAL_StatusTypeDef CRYP_AESGCM_Process_DMA(CRYP_HandleTypeDef *hcryp);
[all …]
/hal_stm32-3.5.0/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_hal_cryp.c366 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
367 static HAL_StatusTypeDef CRYP_SetHeaderDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uin…
371 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
372 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
373 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
374 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
375 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
376 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
377 static HAL_StatusTypeDef CRYP_GCMCCM_SetPayloadPhase_DMA(CRYP_HandleTypeDef *hcryp);
378 static HAL_StatusTypeDef CRYP_AESGCM_Process_DMA(CRYP_HandleTypeDef *hcryp);
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wbaxx/drivers/src/
Dstm32wbaxx_hal_cryp.c358 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
359 static HAL_StatusTypeDef CRYP_SetHeaderDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uin…
363 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
364 static void CRYP_SetIV(CRYP_HandleTypeDef *hcryp);
365 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
366 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
367 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
368 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
369 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
370 static HAL_StatusTypeDef CRYP_GCMCCM_SetPayloadPhase_DMA(CRYP_HandleTypeDef *hcryp);
[all …]
Dstm32wbaxx_hal_cryp_ex.c68 static HAL_StatusTypeDef CRYPEx_KeyDecrypt(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
69 static HAL_StatusTypeDef CRYPEx_KeyEncrypt(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
70 static HAL_StatusTypeDef CRYPEx_KeyGeneration(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
105 HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, const uint32_t *pAut… in HAL_CRYPEx_AESGCM_GenerateAuthTAG() argument
109 uint64_t headerlength = (uint64_t)hcryp->Init.HeaderSize * 32U; /* Header length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
110 uint64_t inputlength = (uint64_t)hcryp->SizesSum * 8U; /* Input length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
116 if (hcryp->Init.HeaderWidthUnit == CRYP_HEADERWIDTHUNIT_BYTE) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
121 if (hcryp->State == HAL_CRYP_STATE_READY) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
123 __HAL_LOCK(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
126 hcryp->State = HAL_CRYP_STATE_BUSY; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32h7xx/drivers/src/
Dstm32h7xx_hal_cryp.c338 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
342 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
343 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
344 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
345 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
346 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
347 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
349 static void CRYP_Workaround(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
351 static HAL_StatusTypeDef CRYP_AESGCM_Process_DMA(CRYP_HandleTypeDef *hcryp);
352 static HAL_StatusTypeDef CRYP_AESGCM_Process_IT(CRYP_HandleTypeDef *hcryp);
[all …]
Dstm32h7xx_hal_cryp_ex.c111 HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, u… in HAL_CRYPEx_AESGCM_GenerateAuthTAG() argument
114 uint64_t headerlength = (uint64_t)(hcryp->Init.HeaderSize) * 32U; /* Header length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
115 uint64_t inputlength = (uint64_t)hcryp->SizesSum * 8U; /* Input length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
119 if (hcryp->Init.HeaderWidthUnit == CRYP_HEADERWIDTHUNIT_BYTE) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
124 if (hcryp->State == HAL_CRYP_STATE_READY) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
127 __HAL_LOCK(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
130 hcryp->State = HAL_CRYP_STATE_BUSY; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
133 if (hcryp->Phase == CRYPEx_PHASE_PROCESS) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
136 hcryp->Phase = CRYPEx_PHASE_FINAL; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
141 __HAL_CRYP_DISABLE(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32mp1xx/drivers/src/
Dstm32mp1xx_hal_cryp.c336 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
341 static void CRYP_SetMDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32…
346 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
347 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
348 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
349 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
350 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
351 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
352 static HAL_StatusTypeDef CRYP_AESGCM_Process_DMA(CRYP_HandleTypeDef *hcryp);
353 static HAL_StatusTypeDef CRYP_AESGCM_Process_IT(CRYP_HandleTypeDef *hcryp);
[all …]
/hal_stm32-3.5.0/stm32cube/stm32wlxx/drivers/src/
Dstm32wlxx_hal_cryp.c366 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
367 static HAL_StatusTypeDef CRYP_SetHeaderDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uin…
371 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
372 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
373 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
374 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
375 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
376 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
377 static HAL_StatusTypeDef CRYP_GCMCCM_SetPayloadPhase_DMA(CRYP_HandleTypeDef *hcryp);
378 static HAL_StatusTypeDef CRYP_AESGCM_Process_DMA(CRYP_HandleTypeDef *hcryp);
[all …]
/hal_stm32-3.5.0/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_hal_cryp.c358 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
359 static HAL_StatusTypeDef CRYP_SetHeaderDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uin…
363 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
364 static void CRYP_SetIV(CRYP_HandleTypeDef *hcryp);
365 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
366 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
367 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
368 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
369 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
370 static HAL_StatusTypeDef CRYP_GCMCCM_SetPayloadPhase_DMA(CRYP_HandleTypeDef *hcryp);
[all …]
Dstm32u5xx_hal_cryp_ex.c67 static HAL_StatusTypeDef CRYPEx_KeyDecrypt(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
68 static HAL_StatusTypeDef CRYPEx_KeyEncrypt(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
102 HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, const uint32_t *pAut… in HAL_CRYPEx_AESGCM_GenerateAuthTAG() argument
106 uint64_t headerlength = (uint64_t)hcryp->Init.HeaderSize * 32U; /* Header length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
107 uint64_t inputlength = (uint64_t)hcryp->SizesSum * 8U; /* Input length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
113 if (hcryp->Init.HeaderWidthUnit == CRYP_HEADERWIDTHUNIT_BYTE) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
118 if (hcryp->State == HAL_CRYP_STATE_READY) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
120 __HAL_LOCK(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
123 hcryp->State = HAL_CRYP_STATE_BUSY; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
126 if (hcryp->Phase == CRYPEx_PHASE_PROCESS) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_hal_cryp.c358 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
359 static HAL_StatusTypeDef CRYP_SetHeaderDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uin…
363 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
364 static void CRYP_SetIV(CRYP_HandleTypeDef *hcryp);
365 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
366 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
367 static void CRYP_GCMCCM_SetPayloadPhase_IT(CRYP_HandleTypeDef *hcryp);
368 static void CRYP_GCMCCM_SetHeaderPhase_IT(CRYP_HandleTypeDef *hcryp);
369 static HAL_StatusTypeDef CRYP_GCMCCM_SetHeaderPhase_DMA(CRYP_HandleTypeDef *hcryp);
370 static HAL_StatusTypeDef CRYP_GCMCCM_SetPayloadPhase_DMA(CRYP_HandleTypeDef *hcryp);
[all …]
Dstm32h5xx_hal_cryp_ex.c67 static HAL_StatusTypeDef CRYPEx_KeyDecrypt(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
68 static HAL_StatusTypeDef CRYPEx_KeyEncrypt(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
69 static HAL_StatusTypeDef CRYPEx_KeyGeneration(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
103 HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG(CRYP_HandleTypeDef *hcryp, uint32_t *pAuthTag, … in HAL_CRYPEx_AESGCM_GenerateAuthTAG() argument
106 uint64_t headerlength = (uint64_t)hcryp->Init.HeaderSize * 32U; /* Header length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
107 uint64_t inputlength = (uint64_t)hcryp->SizesSum * 8U; /* Input length in bits */ in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
113 if (hcryp->Init.HeaderWidthUnit == CRYP_HEADERWIDTHUNIT_BYTE) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
118 if (hcryp->State == HAL_CRYP_STATE_READY) in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
120 __HAL_LOCK(hcryp); in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
123 hcryp->State = HAL_CRYP_STATE_BUSY; in HAL_CRYPEx_AESGCM_GenerateAuthTAG()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32f2xx/drivers/src/
Dstm32f2xx_hal_cryp.c198 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
202 static void CRYP_SetKey( CRYP_HandleTypeDef *hcryp, uint32_t KeySize);
203 static void CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
204 static void CRYP_AES_ProcessData(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
205 static HAL_StatusTypeDef CRYP_AES_Encrypt(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
206 static HAL_StatusTypeDef CRYP_AES_Decrypt(CRYP_HandleTypeDef *hcryp, uint32_t Timeout);
207 static HAL_StatusTypeDef CRYP_AES_Decrypt_IT(CRYP_HandleTypeDef *hcryp);
208 static HAL_StatusTypeDef CRYP_AES_Encrypt_IT(CRYP_HandleTypeDef *hcryp);
209 static HAL_StatusTypeDef CRYP_AES_Decrypt_DMA(CRYP_HandleTypeDef *hcryp);
210 static void CRYP_TDES_IT(CRYP_HandleTypeDef *hcryp);
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_hal_cryp_ex.c61 static HAL_StatusTypeDef CRYP_ProcessData(CRYP_HandleTypeDef *hcryp, uint8_t* Input, uint16_t Ileng…
62 static HAL_StatusTypeDef CRYP_ReadKey(CRYP_HandleTypeDef *hcryp, uint8_t* Output, uint32_t Timeout);
63 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t Size, uint32_…
64 static void CRYP_Authentication_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_…
68 static HAL_StatusTypeDef CRYP_WaitOnCCFlag(CRYP_HandleTypeDef const * const hcryp, uint32_t Timeout…
69 static HAL_StatusTypeDef CRYP_WaitOnBusyFlagReset(CRYP_HandleTypeDef const * const hcryp, uint32_t …
73 static void CRYP_Padding(CRYP_HandleTypeDef *hcryp, uint32_t difflength, uint32_t polling);
106 __weak void HAL_CRYPEx_ComputationCpltCallback(CRYP_HandleTypeDef *hcryp) in HAL_CRYPEx_ComputationCpltCallback() argument
109 UNUSED(hcryp); in HAL_CRYPEx_ComputationCpltCallback()
164 HAL_StatusTypeDef HAL_CRYPEx_AES(CRYP_HandleTypeDef *hcryp, uint8_t *pInputData, uint16_t Size, uin… in HAL_CRYPEx_AES() argument
[all …]
Dstm32l4xx_hal_cryp.c150 static HAL_StatusTypeDef CRYP_SetInitVector(CRYP_HandleTypeDef *hcryp);
151 static HAL_StatusTypeDef CRYP_SetKey(CRYP_HandleTypeDef *hcryp);
152 static HAL_StatusTypeDef CRYP_AES_IT(CRYP_HandleTypeDef *hcryp);
241 HAL_StatusTypeDef HAL_CRYP_Init(CRYP_HandleTypeDef *hcryp) in HAL_CRYP_Init() argument
244 if(hcryp == NULL) in HAL_CRYP_Init()
250 assert_param(IS_AES_ALL_INSTANCE(hcryp->Instance)); in HAL_CRYP_Init()
253 assert_param(IS_CRYP_KEYSIZE(hcryp->Init.KeySize)); in HAL_CRYP_Init()
254 assert_param(IS_CRYP_DATATYPE(hcryp->Init.DataType)); in HAL_CRYP_Init()
255 assert_param(IS_CRYP_ALGOMODE(hcryp->Init.OperatingMode)); in HAL_CRYP_Init()
257 if (hcryp->Init.OperatingMode != CRYP_ALGOMODE_KEYDERIVATION) in HAL_CRYP_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_hal_cryp.c118 static HAL_StatusTypeDef CRYP_EncryptDecrypt_IT(CRYP_HandleTypeDef *hcryp);
119 static void CRYP_SetInitVector(CRYP_HandleTypeDef *hcryp, uint8_t *InitVector);
120 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint8_t *Key);
121 static HAL_StatusTypeDef CRYP_ProcessData(CRYP_HandleTypeDef *hcryp, uint8_t* Input, uint16_t Ilen…
125 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t…
162 HAL_StatusTypeDef HAL_CRYP_Init(CRYP_HandleTypeDef *hcryp) in HAL_CRYP_Init() argument
165 if(hcryp == NULL) in HAL_CRYP_Init()
171 assert_param(IS_AES_ALL_INSTANCE(hcryp->Instance)); in HAL_CRYP_Init()
172 assert_param(IS_CRYP_DATATYPE(hcryp->Init.DataType)); in HAL_CRYP_Init()
174 if(hcryp->State == HAL_CRYP_STATE_RESET) in HAL_CRYP_Init()
[all …]
/hal_stm32-3.5.0/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_hal_cryp.c117 static HAL_StatusTypeDef CRYP_EncryptDecrypt_IT(CRYP_HandleTypeDef *hcryp);
118 static void CRYP_SetInitVector(CRYP_HandleTypeDef *hcryp, uint8_t *InitVector);
119 static void CRYP_SetKey(CRYP_HandleTypeDef *hcryp, uint8_t *Key);
120 static HAL_StatusTypeDef CRYP_ProcessData(CRYP_HandleTypeDef *hcryp, uint8_t* Input, uint16_t Ilen…
124 static void CRYP_SetDMAConfig(CRYP_HandleTypeDef *hcryp, uint32_t inputaddr, uint16_t…
161 HAL_StatusTypeDef HAL_CRYP_Init(CRYP_HandleTypeDef *hcryp) in HAL_CRYP_Init() argument
164 if(hcryp == NULL) in HAL_CRYP_Init()
170 assert_param(IS_AES_ALL_INSTANCE(hcryp->Instance)); in HAL_CRYP_Init()
171 assert_param(IS_CRYP_DATATYPE(hcryp->Init.DataType)); in HAL_CRYP_Init()
173 if(hcryp->State == HAL_CRYP_STATE_RESET) in HAL_CRYP_Init()
[all …]

123