nrfxlib API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
ocrypto_rsa_padding.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
17
22
23
#ifndef OCRYPTO_RSA_PADDING_H
24
#define OCRYPTO_RSA_PADDING_H
25
26
#include <stddef.h>
27
#include <stdint.h>
28
29
30
#ifdef __cplusplus
31
extern
"C"
{
32
#endif
33
34
51
int
ocrypto_rsa_pkcs1_v15_padding
(
52
uint8_t *em,
size_t
em_len,
53
const
uint8_t *m,
size_t
m_len,
54
const
uint8_t *seed,
size_t
s_len);
55
68
int
ocrypto_rsa_pkcs1_v15_unpad
(
69
uint8_t *m,
size_t
m_len,
70
uint8_t *em,
size_t
em_len);
71
72
87
int
ocrypto_rsa_oaep_sha256_padding
(
88
uint8_t *em,
size_t
em_len,
89
const
uint8_t *m,
size_t
m_len,
90
const
uint8_t *label,
size_t
l_len,
91
const
uint8_t seed[32]);
92
107
int
ocrypto_rsa_oaep_sha256_check_padding
(
108
uint8_t *m,
size_t
m_len,
109
uint8_t *em,
size_t
em_len,
110
const
uint8_t *label,
size_t
l_len);
111
112
124
int
ocrypto_rsa_pkcs1_v15_sha256_encode
(
125
uint8_t *em,
size_t
em_len,
126
const
uint8_t *m,
size_t
m_len);
127
128
142
int
ocrypto_rsa_pss_sha256_encode
(
143
uint8_t *em,
size_t
em_len,
144
const
uint8_t *m,
size_t
m_len,
145
const
uint8_t *salt,
size_t
s_len);
146
160
int
ocrypto_rsa_pss_sha256_decode
(
161
uint8_t *em,
size_t
em_len,
162
const
uint8_t *m,
size_t
m_len,
163
size_t
salt_len);
164
165
166
#ifdef __cplusplus
167
}
168
#endif
169
170
#endif
171
ocrypto_rsa_pkcs1_v15_sha256_encode
int ocrypto_rsa_pkcs1_v15_sha256_encode(uint8_t *em, size_t em_len, const uint8_t *m, size_t m_len)
ocrypto_rsa_pkcs1_v15_padding
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)
ocrypto_rsa_pkcs1_v15_unpad
int ocrypto_rsa_pkcs1_v15_unpad(uint8_t *m, size_t m_len, uint8_t *em, size_t em_len)
ocrypto_rsa_pss_sha256_decode
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)
ocrypto_rsa_oaep_sha256_check_padding
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)
ocrypto_rsa_pss_sha256_encode
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)
ocrypto_rsa_oaep_sha256_padding
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])
crypto
nrf_oberon
include
ocrypto_rsa_padding.h
Generated on
for nrfxlib API by
1.17.0