20#ifndef OCRYPTO_RSA_KEY_H
21#define OCRYPTO_RSA_KEY_H
35#define ocrypto_rsa_PUBLIC_EXPONENT 65537
69 uint32_t p[16], q[16];
70 uint32_t dp[16], dq[16];
108 uint32_t p[32], q[32];
109 uint32_t dp[32], dq[32];
134 const uint8_t *n,
size_t n_len);
150 const uint8_t *n,
size_t n_len,
151 const uint8_t *d,
size_t d_len);
173 const uint8_t *p,
size_t p_len,
174 const uint8_t *q,
size_t q_len,
175 const uint8_t *dp,
size_t dp_len,
176 const uint8_t *dq,
size_t dq_len,
177 const uint8_t *qinv,
size_t qi_len);
199 const uint8_t *n,
size_t n_len);
214 const uint8_t *n,
size_t n_len,
215 const uint8_t *d,
size_t d_len);
237 const uint8_t *p,
size_t p_len,
238 const uint8_t *q,
size_t q_len,
239 const uint8_t *dp,
size_t dp_len,
240 const uint8_t *dq,
size_t dq_len,
241 const uint8_t *qinv,
size_t qi_len);
int ocrypto_rsa1024_init_pub_key(ocrypto_rsa1024_pub_key *pk, const uint8_t *n, size_t n_len)
int ocrypto_rsa2048_init_pub_key(ocrypto_rsa2048_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_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)
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_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)
Definition: ocrypto_rsa_key.h:66
Definition: ocrypto_rsa_key.h:56
Definition: ocrypto_rsa_key.h:46
Definition: ocrypto_rsa_key.h:105
Definition: ocrypto_rsa_key.h:95
Definition: ocrypto_rsa_key.h:85