Microchip® Advanced Software Framework

dhm_context Struct Reference

#include <dhm.h>

Data Fields

mpi G
 
mpi GX
 
mpi GY
 
mpi K
 
int len
 
mpi P
 
mpi RP
 
mpi X
 

mpi dhm_context::G

generator

mpi dhm_context::GX

self = G^X mod P

mpi dhm_context::GY

peer = G^Y mod P

mpi dhm_context::K

key = GY^X mod P

int dhm_context::len

size(P) in chars

mpi dhm_context::P

prime modulus

mpi dhm_context::RP

cached R^2 mod P

mpi dhm_context::X

secret value