nrfxlib API 0.1.0
Loading...
Searching...
No Matches
ocrypto_rsa_padding.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
24#ifndef OCRYPTO_RSA_PADDING_H
25#define OCRYPTO_RSA_PADDING_H
26
27#include <stddef.h>
28#include <stdint.h>
29
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35
53 uint8_t *em, size_t em_len,
54 const uint8_t *m, size_t m_len,
55 const uint8_t *seed, size_t s_len);
56
70 uint8_t *m, size_t m_len,
71 const uint8_t *em, size_t em_len);
72
73
89 uint8_t *em, size_t em_len,
90 const uint8_t *m, size_t m_len,
91 const uint8_t *label, size_t l_len,
92 const uint8_t seed[32]);
93
109 uint8_t *m, size_t m_len,
110 uint8_t *em, size_t em_len,
111 const uint8_t *label, size_t l_len);
112
113
126 uint8_t *em, size_t em_len,
127 const uint8_t *m, size_t m_len);
128
129
144 uint8_t *em, size_t em_len,
145 const uint8_t *m, size_t m_len,
146 const uint8_t *salt, size_t s_len);
147
162 uint8_t *em, size_t em_len,
163 const uint8_t *m, size_t m_len,
164 size_t salt_len);
165
166
167#ifdef __cplusplus
168}
169#endif
170
171#endif
172
int ocrypto_rsa_pkcs1_v15_sha256_encode(uint8_t *em, size_t em_len, const uint8_t *m, size_t m_len)
int ocrypto_rsa_pkcs1_v15_padding(uint8_t *em, size_t em_len, const uint8_t *m, size_t m_len, const uint8_t *seed, size_t s_len)
int ocrypto_rsa_pkcs1_v15_check_padding(uint8_t *m, size_t m_len, const uint8_t *em, size_t em_len)
int ocrypto_rsa_pss_sha256_decode(uint8_t *em, size_t em_len, const uint8_t *m, size_t m_len, size_t salt_len)
int ocrypto_rsa_oaep_sha256_check_padding(uint8_t *m, size_t m_len, uint8_t *em, size_t em_len, const uint8_t *label, size_t l_len)
int ocrypto_rsa_pss_sha256_encode(uint8_t *em, size_t em_len, const uint8_t *m, size_t m_len, const uint8_t *salt, size_t s_len)
int ocrypto_rsa_oaep_sha256_padding(uint8_t *em, size_t em_len, const uint8_t *m, size_t m_len, const uint8_t *label, size_t l_len, const uint8_t seed[32])