Microchip® Advanced Software Framework

rsa_context Struct Reference

RSA context structure.

#include <rsa.h>

Data Fields

mpi D
 
mpi DP
 
mpi DQ
 
mpi E
 
int hash_id
 
int len
 
mpi N
 
mpi P
 
int padding
 
mpi Q
 
mpi QP
 
mpi RN
 
mpi RP
 
mpi RQ
 
int ver
 

mpi rsa_context::D

private exponent

mpi rsa_context::DP

D % (P - 1)

mpi rsa_context::DQ

D % (Q - 1)

mpi rsa_context::E

public exponent

Referenced by d2i_RSA_PUBKEY().

int rsa_context::hash_id

hash identifier

int rsa_context::len

size(N) in chars

Referenced by d2i_RSA_PUBKEY().

mpi rsa_context::N

public modulus

Referenced by d2i_RSA_PUBKEY().

mpi rsa_context::P

1st prime factor

int rsa_context::padding

1.5 or OAEP/PSS

mpi rsa_context::Q

2nd prime factor

mpi rsa_context::QP

1 / (Q % P)

mpi rsa_context::RN

cached R^2 mod N

mpi rsa_context::RP

cached R^2 mod P

mpi rsa_context::RQ

cached R^2 mod Q

int rsa_context::ver

always 0