nrfxlib API 2.8.99
Loading...
Searching...
No Matches
ocrypto_rsa_operations.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 - 2024 Nordic Semiconductor ASA
3 * Copyright (c) since 2013 Oberon microsystems AG
4 *
5 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
6 */
7
8
26#ifndef OCRYPTO_RSA_OPERATIONS_H
27#define OCRYPTO_RSA_OPERATIONS_H
28
29#include <stddef.h>
30#include <stdint.h>
31
33
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39
68 uint8_t *c, size_t c_len,
69 const uint8_t *m, size_t m_len,
70 const uint8_t *seed, size_t s_len,
71 const ocrypto_rsa_pub_key *pk,
72 uint32_t *mem);
73
94 uint8_t *m, size_t m_len,
95 const uint8_t *c, size_t c_len,
96 const ocrypto_rsa_key *key,
97 uint32_t *mem);
98
119 uint8_t *m, size_t m_len,
120 const uint8_t *c, size_t c_len,
121 const ocrypto_rsa_crt_key *key,
122 uint32_t *mem);
123
146 uint8_t *c, size_t c_len,
147 const uint8_t *m, size_t m_len,
148 const uint8_t *label, size_t l_len,
149 const uint8_t seed[32],
150 const ocrypto_rsa_pub_key *pk,
151 uint32_t *mem);
152
175 uint8_t *m, size_t m_len,
176 const uint8_t *c, size_t c_len,
177 const uint8_t *label, size_t l_len,
178 const ocrypto_rsa_key *key,
179 uint32_t *mem);
180
203 uint8_t *m, size_t m_len,
204 const uint8_t *c, size_t c_len,
205 const uint8_t *label, size_t l_len,
206 const ocrypto_rsa_crt_key *key,
207 uint32_t *mem);
208
227 uint8_t *s, size_t s_len,
228 const uint8_t *m, size_t m_len,
229 const ocrypto_rsa_key *key,
230 uint32_t *mem);
231
250 uint8_t *s, size_t s_len,
251 const uint8_t *m, size_t m_len,
252 const ocrypto_rsa_crt_key *key,
253 uint32_t *mem);
254
274 const uint8_t *s, size_t s_len,
275 const uint8_t *m, size_t m_len,
276 const ocrypto_rsa_pub_key *pk,
277 uint32_t *mem);
278
300 uint8_t *s, size_t s_len,
301 const uint8_t *m, size_t m_len,
302 const uint8_t *salt, size_t salt_len,
303 const ocrypto_rsa_key *key,
304 uint32_t *mem);
305
327 uint8_t *s, size_t s_len,
328 const uint8_t *m, size_t m_len,
329 const uint8_t *salt, size_t salt_len,
330 const ocrypto_rsa_crt_key *key,
331 uint32_t *mem);
332
354 const uint8_t *s, size_t s_len,
355 const uint8_t *m, size_t m_len,
356 size_t salt_len,
357 const ocrypto_rsa_pub_key *pk,
358 uint32_t *mem);
362#ifdef __cplusplus
363}
364#endif
365
366#endif
367
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)
Definition ocrypto_rsa_primitives.h:97
Definition ocrypto_rsa_primitives.h:86
Definition ocrypto_rsa_primitives.h:75