STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
stm32f4xx_hal_cryp_ex.c File Reference

Extended CRYP HAL module driver This file provides firmware functions to manage the following functionalities of CRYP extension peripheral: More...

#include "stm32f4xx_hal.h"
Include dependency graph for stm32f4xx_hal_cryp_ex.c:

Go to the source code of this file.

Macros

#define CRYP_PHASE_INIT   0x00000000U
 
#define CRYP_PHASE_HEADER   AES_CR_GCMPH_0
 
#define CRYP_PHASE_PAYLOAD   AES_CR_GCMPH_1
 
#define CRYP_PHASE_FINAL   AES_CR_GCMPH
 
#define CRYP_OPERATINGMODE_ENCRYPT   0x00000000U
 
#define CRYP_OPERATINGMODE_KEYDERIVATION   AES_CR_MODE_0
 
#define CRYP_OPERATINGMODE_DECRYPT   AES_CR_MODE_1
 
#define CRYP_OPERATINGMODE_KEYDERIVATION_DECRYPT   AES_CR_MODE
 
#define CRYPEx_PHASE_PROCESS   0x02U
 
#define CRYPEx_PHASE_FINAL   0x03U
 
#define CRYP_CCM_CTR0_0   0x07FFFFFFU
 
#define CRYP_CCM_CTR0_3   0xFFFFFF00U
 

Functions

HAL_StatusTypeDef HAL_CRYPEx_AESGCM_GenerateAuthTAG (CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, uint32_t Timeout)
 generate the GCM authentication TAG.
 
HAL_StatusTypeDef HAL_CRYPEx_AESCCM_GenerateAuthTAG (CRYP_HandleTypeDef *hcryp, uint32_t *AuthTag, uint32_t Timeout)
 AES CCM Authentication TAG generation.
 
void HAL_CRYPEx_EnableAutoKeyDerivation (CRYP_HandleTypeDef *hcryp)
 AES enable key derivation functions.
 
void HAL_CRYPEx_DisableAutoKeyDerivation (CRYP_HandleTypeDef *hcryp)
 AES disable key derivation functions.
 

Detailed Description

Extended CRYP HAL module driver This file provides firmware functions to manage the following functionalities of CRYP extension peripheral:

Author
MCD Application Team
  • Extended AES processing functions
Attention

Copyright (c) 2016 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

==============================================================================
                   ##### How to use this driver #####
==============================================================================
  [..]
  The CRYP extension HAL driver can be used as follows:
  (#)After AES-GCM or AES-CCM  Encryption/Decryption user can start following API
     to get the  authentication messages :
    (##) HAL_CRYPEx_AESGCM_GenerateAuthTAG
    (##) HAL_CRYPEx_AESCCM_GenerateAuthTAG

Definition in file stm32f4xx_hal_cryp_ex.c.