stm32u5xx_crypto_hash.h File Reference

STM32U5 hash hardware accelerator. More...

#include "core/crypto.h"

Go to the source code of this file.

Macros

#define STM32U5XX_CRYPTO_HASH_SUPPORT   DISABLED
 
#define HASH_CR_ALGO_SHA1   0
 
#define HASH_CR_ALGO_MD5   HASH_CR_ALGO_0
 
#define HASH_CR_ALGO_SHA224   HASH_CR_ALGO_1
 
#define HASH_CR_ALGO_SHA256   (HASH_CR_ALGO_1 | HASH_CR_ALGO_0)
 
#define HASH_CR_DATATYPE_32B   0
 
#define HASH_CR_DATATYPE_16B   HASH_CR_DATATYPE_0
 
#define HASH_CR_DATATYPE_8B   HASH_CR_DATATYPE_1
 
#define HASH_CR_DATATYPE_1B   (HASH_CR_DATATYPE_1 | HASH_CR_DATATYPE_0)
 

Functions

error_t hashInit (void)
 HASH module initialization. More...
 

Detailed Description

STM32U5 hash hardware accelerator.

License

SPDX-License-Identifier: GPL-2.0-or-later

Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.

This file is part of CycloneCRYPTO Open.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.4

Definition in file stm32u5xx_crypto_hash.h.

Macro Definition Documentation

◆ HASH_CR_ALGO_MD5

#define HASH_CR_ALGO_MD5   HASH_CR_ALGO_0

Definition at line 46 of file stm32u5xx_crypto_hash.h.

◆ HASH_CR_ALGO_SHA1

#define HASH_CR_ALGO_SHA1   0

Definition at line 45 of file stm32u5xx_crypto_hash.h.

◆ HASH_CR_ALGO_SHA224

#define HASH_CR_ALGO_SHA224   HASH_CR_ALGO_1

Definition at line 47 of file stm32u5xx_crypto_hash.h.

◆ HASH_CR_ALGO_SHA256

#define HASH_CR_ALGO_SHA256   (HASH_CR_ALGO_1 | HASH_CR_ALGO_0)

Definition at line 48 of file stm32u5xx_crypto_hash.h.

◆ HASH_CR_DATATYPE_16B

#define HASH_CR_DATATYPE_16B   HASH_CR_DATATYPE_0

Definition at line 52 of file stm32u5xx_crypto_hash.h.

◆ HASH_CR_DATATYPE_1B

#define HASH_CR_DATATYPE_1B   (HASH_CR_DATATYPE_1 | HASH_CR_DATATYPE_0)

Definition at line 54 of file stm32u5xx_crypto_hash.h.

◆ HASH_CR_DATATYPE_32B

#define HASH_CR_DATATYPE_32B   0

Definition at line 51 of file stm32u5xx_crypto_hash.h.

◆ HASH_CR_DATATYPE_8B

#define HASH_CR_DATATYPE_8B   HASH_CR_DATATYPE_1

Definition at line 53 of file stm32u5xx_crypto_hash.h.

◆ STM32U5XX_CRYPTO_HASH_SUPPORT

#define STM32U5XX_CRYPTO_HASH_SUPPORT   DISABLED

Definition at line 39 of file stm32u5xx_crypto_hash.h.

Function Documentation

◆ hashInit()

error_t hashInit ( void  )

HASH module initialization.

Returns
Error code

Definition at line 52 of file apm32f4xx_crypto_hash.c.