STM32F479xx HAL User Manual
Defines | Functions
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: + Extended AES processing functions. More...

#include "stm32f4xx_hal.h"

Go to the source code of this file.

Defines

#define CRYP_PHASE_INIT   0x00000000U
#define CRYP_PHASE_HEADER   CRYP_CR_GCM_CCMPH_0
#define CRYP_PHASE_PAYLOAD   CRYP_CR_GCM_CCMPH_1
#define CRYP_PHASE_FINAL   CRYP_CR_GCM_CCMPH
#define CRYP_OPERATINGMODE_ENCRYPT   0x00000000U
#define CRYP_OPERATINGMODE_DECRYPT   CRYP_CR_ALGODIR
#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.

Detailed Description

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

Author:
MCD Application Team
  ==============================================================================
                     ##### 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

  
Attention:

© Copyright (c) 2016 STMicroelectronics. All rights reserved.

This software component is licensed by ST under BSD 3-Clause license, the "License"; You may not use this file except in compliance with the License. You may obtain a copy of the License at: opensource.org/licenses/BSD-3-Clause

Definition in file stm32f4xx_hal_cryp_ex.c.