mbedtls_rsa_context
rsa.h
int int mbedtls_rsa_context::ver ver mbedtls_rsa_context::ver

Reserved for internal purposes. Do not set this field in application code. Its meaning might change without notice.

size_t size_t mbedtls_rsa_context::len len mbedtls_rsa_context::len

The size of `N` in Bytes.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::N N mbedtls_rsa_context::N

The public modulus.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::E E mbedtls_rsa_context::E

The public exponent.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::D D mbedtls_rsa_context::D

The private exponent.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::P P mbedtls_rsa_context::P

The first prime factor.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::Q Q mbedtls_rsa_context::Q

The second prime factor.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::DP DP mbedtls_rsa_context::DP

`D % (P - 1)`.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::DQ DQ mbedtls_rsa_context::DQ

`D % (Q - 1)`.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::QP QP mbedtls_rsa_context::QP

`1 / (Q % P)`.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::RN RN mbedtls_rsa_context::RN

cached `R^2 mod N`.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::RP RP mbedtls_rsa_context::RP

cached `R^2 mod P`.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::RQ RQ mbedtls_rsa_context::RQ

cached `R^2 mod Q`.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::Vi Vi mbedtls_rsa_context::Vi

The cached blinding value.

mbedtls_mpi mbedtls_mpi mbedtls_rsa_context::Vf Vf mbedtls_rsa_context::Vf

The cached un-blinding value.

int int mbedtls_rsa_context::padding padding mbedtls_rsa_context::padding

Selects padding mode: MBEDTLS_RSA_PKCS_V15 for 1.5 padding and MBEDTLS_RSA_PKCS_V21 for OAEP or PSS.

int int mbedtls_rsa_context::hash_id hash_id mbedtls_rsa_context::hash_id

Hash identifier of mbedtls_md_type_t type, as specified in md.h for use in the MGF mask generating function used in the EME-OAEP and EMSA-PSS encodings.

mbedtls_threading_mutex_t mbedtls_threading_mutex_t mbedtls_rsa_context::mutex mutex mbedtls_rsa_context::mutex

Thread-safety mutex.

The RSA context structure.

Direct manipulation of the members of this structure is deprecated. All manipulation should instead be done through the public interface functions.

mbedtls_mpi
mbedtls_rsa_context
D
DP
DQ
E
N
P
Q
QP
RN
RP
...
mutex
mbedtls_threading_mutex_t
- mbedtls_rsa_context
  D
- mbedtls_rsa_context
  DP
- mbedtls_rsa_context
  DQ
- mbedtls_rsa_context
  E
- mbedtls_rsa_context
  hash_id
- mbedtls_rsa_context
  len
- mbedtls_rsa_context
  mutex
- mbedtls_rsa_context
  N
- mbedtls_rsa_context
  P
- mbedtls_rsa_context
  padding
- mbedtls_rsa_context
  Q
- mbedtls_rsa_context
  QP
- mbedtls_rsa_context
  RN
- mbedtls_rsa_context
  RP
- mbedtls_rsa_context
  RQ
- mbedtls_rsa_context
  ver
- mbedtls_rsa_context
  Vf
- mbedtls_rsa_context
  Vi