mbed TLS library

Dependents:   HTTPClient-SSL WS_SERVER

Embed: (wiki syntax)

« Back to documentation index

rsa_context Struct Reference

rsa_context Struct Reference

RSA context structure. More...

#include <rsa.h>

Data Fields

int ver
size_t len
mpi N
mpi E
mpi D
mpi P
mpi Q
mpi DP
mpi DQ
mpi QP
mpi RN
mpi RP
mpi RQ
mpi Vi
mpi Vf
int padding
int hash_id
threading_mutex_t mutex

Detailed Description

RSA context structure.

Definition at line 80 of file rsa.h.


Field Documentation

mpi D

private exponent

Definition at line 88 of file rsa.h.

D % (P - 1)

Definition at line 91 of file rsa.h.

D % (Q - 1)

Definition at line 92 of file rsa.h.

mpi E

public exponent

Definition at line 86 of file rsa.h.

int hash_id

Hash identifier of md_type_t as specified in the md.h header file for the EME-OAEP and EMSA-PSS encoding

Definition at line 104 of file rsa.h.

size_t len

size(N) in chars

Definition at line 83 of file rsa.h.

threading_mutex_t mutex

Thread-safety mutex

Definition at line 109 of file rsa.h.

mpi N

public modulus

Definition at line 85 of file rsa.h.

mpi P

1st prime factor

Definition at line 89 of file rsa.h.

int padding

RSA_PKCS_V15 for 1.5 padding and RSA_PKCS_v21 for OAEP/PSS

Definition at line 102 of file rsa.h.

mpi Q

2nd prime factor

Definition at line 90 of file rsa.h.

1 / (Q % P)

Definition at line 93 of file rsa.h.

cached R^2 mod N

Definition at line 95 of file rsa.h.

cached R^2 mod P

Definition at line 96 of file rsa.h.

cached R^2 mod Q

Definition at line 97 of file rsa.h.

int ver

always 0

Definition at line 82 of file rsa.h.

cached un-blinding value

Definition at line 100 of file rsa.h.

cached blinding value

Definition at line 99 of file rsa.h.