STM32U3 public-key hardware accelerator (PKA) More...
#include "stm32u3xx.h"#include "stm32u3xx_hal.h"#include "core/crypto.h"#include "hardware/stm32u3xx/stm32u3xx_crypto.h"#include "hardware/stm32u3xx/stm32u3xx_crypto_pkc.h"#include "pkc/rsa.h"#include "ecc/ec.h"#include "ecc/ec_misc.h"#include "ecc/ecdsa.h"#include "debug.h"Go to the source code of this file.
Macros | |
| #define | TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Functions | |
| error_t | pkaInit (void) |
| PKA module initialization. More... | |
| void | pkaImportArray (const uint8_t *src, size_t srcLen, uint_t destLen, uint_t offset) |
| Import byte array. More... | |
| void | pkaImportScalar (const uint32_t *src, uint_t length, uint_t offset) |
| Import scalar. More... | |
| void | pkaImportMpi (const Mpi *src, uint_t length, uint_t offset) |
| Import multiple-precision integer. More... | |
| void | pkaExportScalar (uint32_t *dest, uint_t length, uint_t offset) |
| Export scalar. More... | |
| error_t | pkaExportMpi (Mpi *dest, uint_t length, uint_t offset) |
| Export multiple-precision integer. More... | |
Detailed Description
STM32U3 public-key hardware accelerator (PKA)
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2025 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.
- Version
- 2.5.4
Definition in file stm32u3xx_crypto_pkc.c.
Macro Definition Documentation
◆ TRACE_LEVEL
| #define TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Definition at line 32 of file stm32u3xx_crypto_pkc.c.
Function Documentation
◆ pkaExportMpi()
Export multiple-precision integer.
- Parameters
-
[out] dest Pointer to the multiple-precision integer [in] length Length of the operand, in bits [in] offset PKA ram offset
- Returns
- Error code
Definition at line 239 of file stm32u3xx_crypto_pkc.c.
◆ pkaExportScalar()
Export scalar.
- Parameters
-
[out] dest Pointer to the scalar [in] length Length of the operand, in bits [in] offset PKA ram offset
Definition at line 216 of file stm32u3xx_crypto_pkc.c.
◆ pkaImportArray()
Import byte array.
- Parameters
-
[in] src Pointer to the byte array [in] srcLen Length of the array to be copied, in bytes [in] destLen Length of the operand, in bits [in] offset PKA ram offset
Definition at line 85 of file stm32u3xx_crypto_pkc.c.
◆ pkaImportMpi()
Import multiple-precision integer.
- Parameters
-
[in] src Pointer to the multiple-precision integer [in] length Length of the operand, in bits [in] offset PKA ram offset
Definition at line 180 of file stm32u3xx_crypto_pkc.c.
◆ pkaImportScalar()
Import scalar.
- Parameters
-
[in] src Pointer to the scalar [in] length Length of the operand, in bits [in] offset PKA ram offset
Definition at line 147 of file stm32u3xx_crypto_pkc.c.
◆ pkaInit()
| error_t pkaInit | ( | void | ) |
