nrfxlib API 2.7.99
Loading...
Searching...
No Matches
ocrypto_rsa_key.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  ocrypto_rsa1024_pub_key
 
struct  ocrypto_rsa1024_key
 
struct  ocrypto_rsa1024_crt_key
 
struct  ocrypto_rsa2048_pub_key
 
struct  ocrypto_rsa2048_key
 
struct  ocrypto_rsa2048_crt_key
 

Macros

#define ocrypto_rsa_PUBLIC_EXPONENT   65537
 

Functions

1024-bit RSA key setup.

This group of functions is used for 1024-bit RSA key setup.

int ocrypto_rsa1024_init_pub_key (ocrypto_rsa1024_pub_key *pk, const uint8_t *n, size_t n_len)
 
int ocrypto_rsa1024_init_key (ocrypto_rsa1024_key *pk, const uint8_t *n, size_t n_len, const uint8_t *d, size_t d_len)
 
int ocrypto_rsa1024_init_crt_key (ocrypto_rsa1024_crt_key *sk, const uint8_t *p, size_t p_len, const uint8_t *q, size_t q_len, const uint8_t *dp, size_t dp_len, const uint8_t *dq, size_t dq_len, const uint8_t *qinv, size_t qi_len)
 
2048-bit RSA key setup.

This group of functions is used for 2048-bit RSA key setup.

int ocrypto_rsa2048_init_pub_key (ocrypto_rsa2048_pub_key *pk, const uint8_t *n, size_t n_len)
 
int ocrypto_rsa2048_init_key (ocrypto_rsa2048_key *sk, const uint8_t *n, size_t n_len, const uint8_t *d, size_t d_len)
 
int ocrypto_rsa2048_init_crt_key (ocrypto_rsa2048_crt_key *sk, const uint8_t *p, size_t p_len, const uint8_t *q, size_t q_len, const uint8_t *dp, size_t dp_len, const uint8_t *dq, size_t dq_len, const uint8_t *qinv, size_t qi_len)