ref: c9f54b0264a59179404644ce9f88fc748ad0a9a9
dir: /libsec/port/egprivtopub.c/
#include "os.h" #include "../include/mp.h" #include "libsec.h" EGpub* egprivtopub(EGpriv *priv) { EGpub *pub; pub = egpuballoc(); if(pub == nil) return nil; pub->p = mpcopy(priv->pub.p); pub->alpha = mpcopy(priv->pub.alpha); pub->key = mpcopy(priv->pub.key); return pub; }