nrfxlib API 2.8.99
Loading...
Searching...
No Matches
rsa_alt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef MBEDTLS_RSA_ALT_H
8#define MBEDTLS_RSA_ALT_H
9
10#if defined(MBEDTLS_CONFIG_FILE)
11#include MBEDTLS_CONFIG_FILE
12#endif
13
14#if defined (MBEDTLS_RSA_ALT)
15
16#include "mbedtls/bignum.h"
17
18#if defined(MBEDTLS_THREADING_C)
19#include "mbedtls/threading.h"
20#endif
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
33typedef struct
34{
35 int ver;
36 size_t len;
38 mbedtls_mpi N;
39 mbedtls_mpi E;
41 mbedtls_mpi D;
42 mbedtls_mpi P;
43 mbedtls_mpi Q;
45 mbedtls_mpi DP;
46 mbedtls_mpi DQ;
47 mbedtls_mpi QP;
49 mbedtls_mpi RN;
51 mbedtls_mpi RP;
52 mbedtls_mpi RQ;
54 mbedtls_mpi Vi;
55 mbedtls_mpi Vf;
57 int padding;
59 int hash_id;
63#if defined(MBEDTLS_THREADING_C)
65#else
66 uint8_t dummy[8];
67#endif
68
69 mbedtls_mpi NP;
70 mbedtls_mpi BQP;
71 mbedtls_mpi BPP;
73}
74mbedtls_rsa_context;
75
76#ifdef __cplusplus
77}
78#endif
79
80#endif /* MBEDTLS_RSA_ALT */
81
82#endif /* MBEDTLS_RSA_ALT_H */
Type definition of architecture neutral mutex type.
Definition nrf_cc3xx_platform_mutex.h:35