stm32wbxx_crypto_pkc.h File Reference

STM32WB public-key hardware accelerator (PKA) More...

#include "core/crypto.h"

Go to the source code of this file.

Macros

#define STM32WBXX_CRYPTO_PKC_SUPPORT   DISABLED
 
#define PKA_MAX_ROS   3136
 
#define PKA_MAX_EOS   640
 
#define PKA_CR_MODE_MODULAR_EXP   0x00
 
#define PKA_CR_MODE_MONTGOMERY_PARAM   0x01
 
#define PKA_CR_MODE_MODULAR_EXP_FAST   0x02
 
#define PKA_CR_MODE_RSA_CRT_EXP   0x07
 
#define PKA_CR_MODE_MODULAR_INV   0x08
 
#define PKA_CR_MODE_ARITHMETIC_ADD   0x09
 
#define PKA_CR_MODE_ARITHMETIC_SUB   0x0A
 
#define PKA_CR_MODE_ARITHMETIC_MUL   0x0B
 
#define PKA_CR_MODE_COMPARISON   0x0C
 
#define PKA_CR_MODE_MODULAR_RED   0x0D
 
#define PKA_CR_MODE_MODULAR_ADD   0x0E
 
#define PKA_CR_MODE_MODULAR_SUB   0x0F
 
#define PKA_CR_MODE_MONTGOMERY_MUL   0x10
 
#define PKA_CR_MODE_ECC_MUL   0x20
 
#define PKA_CR_MODE_ECC_MUL_FAST   0x22
 
#define PKA_CR_MODE_ECDSA_SIGN   0x24
 
#define PKA_CR_MODE_ECDSA_VERIFY   0x26
 
#define PKA_CR_MODE_POINT_CHECK   0x28
 
#define PKA_STATUS_SUCCESS   0x00000000
 
#define PKA_STATUS_INVALID   0xFFFFFFFF
 

Functions

error_t pkaInit (void)
 PKA module initialization. More...
 

Detailed Description

STM32WB public-key hardware accelerator (PKA)

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.0

Definition in file stm32wbxx_crypto_pkc.h.

Macro Definition Documentation

◆ PKA_CR_MODE_ARITHMETIC_ADD

#define PKA_CR_MODE_ARITHMETIC_ADD   0x09

Definition at line 55 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_ARITHMETIC_MUL

#define PKA_CR_MODE_ARITHMETIC_MUL   0x0B

Definition at line 57 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_ARITHMETIC_SUB

#define PKA_CR_MODE_ARITHMETIC_SUB   0x0A

Definition at line 56 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_COMPARISON

#define PKA_CR_MODE_COMPARISON   0x0C

Definition at line 58 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_ECC_MUL

#define PKA_CR_MODE_ECC_MUL   0x20

Definition at line 63 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_ECC_MUL_FAST

#define PKA_CR_MODE_ECC_MUL_FAST   0x22

Definition at line 64 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_ECDSA_SIGN

#define PKA_CR_MODE_ECDSA_SIGN   0x24

Definition at line 65 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_ECDSA_VERIFY

#define PKA_CR_MODE_ECDSA_VERIFY   0x26

Definition at line 66 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_MODULAR_ADD

#define PKA_CR_MODE_MODULAR_ADD   0x0E

Definition at line 60 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_MODULAR_EXP

#define PKA_CR_MODE_MODULAR_EXP   0x00

Definition at line 50 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_MODULAR_EXP_FAST

#define PKA_CR_MODE_MODULAR_EXP_FAST   0x02

Definition at line 52 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_MODULAR_INV

#define PKA_CR_MODE_MODULAR_INV   0x08

Definition at line 54 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_MODULAR_RED

#define PKA_CR_MODE_MODULAR_RED   0x0D

Definition at line 59 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_MODULAR_SUB

#define PKA_CR_MODE_MODULAR_SUB   0x0F

Definition at line 61 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_MONTGOMERY_MUL

#define PKA_CR_MODE_MONTGOMERY_MUL   0x10

Definition at line 62 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_MONTGOMERY_PARAM

#define PKA_CR_MODE_MONTGOMERY_PARAM   0x01

Definition at line 51 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_POINT_CHECK

#define PKA_CR_MODE_POINT_CHECK   0x28

Definition at line 67 of file stm32wbxx_crypto_pkc.h.

◆ PKA_CR_MODE_RSA_CRT_EXP

#define PKA_CR_MODE_RSA_CRT_EXP   0x07

Definition at line 53 of file stm32wbxx_crypto_pkc.h.

◆ PKA_MAX_EOS

#define PKA_MAX_EOS   640

Definition at line 47 of file stm32wbxx_crypto_pkc.h.

◆ PKA_MAX_ROS

#define PKA_MAX_ROS   3136

Definition at line 45 of file stm32wbxx_crypto_pkc.h.

◆ PKA_STATUS_INVALID

#define PKA_STATUS_INVALID   0xFFFFFFFF

Definition at line 71 of file stm32wbxx_crypto_pkc.h.

◆ PKA_STATUS_SUCCESS

#define PKA_STATUS_SUCCESS   0x00000000

Definition at line 70 of file stm32wbxx_crypto_pkc.h.

◆ STM32WBXX_CRYPTO_PKC_SUPPORT

#define STM32WBXX_CRYPTO_PKC_SUPPORT   DISABLED

Definition at line 39 of file stm32wbxx_crypto_pkc.h.

Function Documentation

◆ pkaInit()

error_t pkaInit ( void  )

PKA module initialization.

Returns
Error code

Definition at line 56 of file stm32h5xx_crypto_pkc.c.