nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_rsa_operations.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 - 2025 Nordic Semiconductor ASA
3 * Copyright (c) since 2013 Oberon microsystems AG
4 *
5 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
6 */
7
8
30#ifndef OCRYPTO_RSA_OPERATIONS_H
31#define OCRYPTO_RSA_OPERATIONS_H
32
33#include <stddef.h>
34#include <stdint.h>
35
37
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43
73 uint8_t *c, size_t c_len,
74 const uint8_t *m, size_t m_len,
75 const uint8_t *seed, size_t s_len,
76 const ocrypto_rsa_pub_key *pk,
77 uint32_t *mem);
78
99 uint8_t *m, size_t m_len,
100 const uint8_t *c, size_t c_len,
101 const ocrypto_rsa_key *key,
102 uint32_t *mem);
103
124 uint8_t *m, size_t m_len,
125 const uint8_t *c, size_t c_len,
126 const ocrypto_rsa_crt_key *key,
127 uint32_t *mem);
128
151 uint8_t *c, size_t c_len,
152 const uint8_t *m, size_t m_len,
153 const uint8_t *label, size_t l_len,
154 const uint8_t seed[32],
155 const ocrypto_rsa_pub_key *pk,
156 uint32_t *mem);
157
180 uint8_t *m, size_t m_len,
181 const uint8_t *c, size_t c_len,
182 const uint8_t *label, size_t l_len,
183 const ocrypto_rsa_key *key,
184 uint32_t *mem);
185
208 uint8_t *m, size_t m_len,
209 const uint8_t *c, size_t c_len,
210 const uint8_t *label, size_t l_len,
211 const ocrypto_rsa_crt_key *key,
212 uint32_t *mem);
213
232 uint8_t *s, size_t s_len,
233 const uint8_t *m, size_t m_len,
234 const ocrypto_rsa_key *key,
235 uint32_t *mem);
236
255 uint8_t *s, size_t s_len,
256 const uint8_t *m, size_t m_len,
257 const ocrypto_rsa_crt_key *key,
258 uint32_t *mem);
259
279 const uint8_t *s, size_t s_len,
280 const uint8_t *m, size_t m_len,
281 const ocrypto_rsa_pub_key *pk,
282 uint32_t *mem);
283
305 uint8_t *s, size_t s_len,
306 const uint8_t *m, size_t m_len,
307 const uint8_t *salt, size_t salt_len,
308 const ocrypto_rsa_key *key,
309 uint32_t *mem);
310
332 uint8_t *s, size_t s_len,
333 const uint8_t *m, size_t m_len,
334 const uint8_t *salt, size_t salt_len,
335 const ocrypto_rsa_crt_key *key,
336 uint32_t *mem);
337
359 const uint8_t *s, size_t s_len,
360 const uint8_t *m, size_t m_len,
361 size_t salt_len,
362 const ocrypto_rsa_pub_key *pk,
363 uint32_t *mem);
367#ifdef __cplusplus
368}
369#endif
370
371#endif
372
int ocrypto_rsa_pss_sha256_verify(const uint8_t *s, size_t s_len, const uint8_t *m, size_t m_len, size_t salt_len, const ocrypto_rsa_pub_key *pk, uint32_t *mem)
int ocrypto_rsa_oaep_sha256_crt_decrypt(uint8_t *m, size_t m_len, const uint8_t *c, size_t c_len, const uint8_t *label, size_t l_len, const ocrypto_rsa_crt_key *key, uint32_t *mem)
int ocrypto_rsa_pkcs1_v15_sha256_sign(uint8_t *s, size_t s_len, const uint8_t *m, size_t m_len, const ocrypto_rsa_key *key, uint32_t *mem)
int ocrypto_rsa_oaep_sha256_encrypt(uint8_t *c, size_t c_len, const uint8_t *m, size_t m_len, const uint8_t *label, size_t l_len, const uint8_t seed[32], const ocrypto_rsa_pub_key *pk, uint32_t *mem)
int ocrypto_rsa_pkcs1_v15_crt_decrypt(uint8_t *m, size_t m_len, const uint8_t *c, size_t c_len, const ocrypto_rsa_crt_key *key, uint32_t *mem)
int ocrypto_rsa_pss_sha256_sign(uint8_t *s, size_t s_len, const uint8_t *m, size_t m_len, const uint8_t *salt, size_t salt_len, const ocrypto_rsa_key *key, uint32_t *mem)
int ocrypto_rsa_pkcs1_v15_decrypt(uint8_t *m, size_t m_len, const uint8_t *c, size_t c_len, const ocrypto_rsa_key *key, uint32_t *mem)
int ocrypto_rsa_pkcs1_v15_encrypt(uint8_t *c, size_t c_len, const uint8_t *m, size_t m_len, const uint8_t *seed, size_t s_len, const ocrypto_rsa_pub_key *pk, uint32_t *mem)
int ocrypto_rsa_pkcs1_v15_sha256_crt_sign(uint8_t *s, size_t s_len, const uint8_t *m, size_t m_len, const ocrypto_rsa_crt_key *key, uint32_t *mem)
int ocrypto_rsa_oaep_sha256_decrypt(uint8_t *m, size_t m_len, const uint8_t *c, size_t c_len, const uint8_t *label, size_t l_len, const ocrypto_rsa_key *key, uint32_t *mem)
int ocrypto_rsa_pss_sha256_crt_sign(uint8_t *s, size_t s_len, const uint8_t *m, size_t m_len, const uint8_t *salt, size_t salt_len, const ocrypto_rsa_crt_key *key, uint32_t *mem)
int ocrypto_rsa_pkcs1_v15_sha256_verify(const uint8_t *s, size_t s_len, const uint8_t *m, size_t m_len, const ocrypto_rsa_pub_key *pk, uint32_t *mem)
RSA primitives, including key setup.
Definition ocrypto_rsa_primitives.h:101
Definition ocrypto_rsa_primitives.h:90
Definition ocrypto_rsa_primitives.h:79