ref: b548687a8ed1d0a159c9d3f3f921d93bbb56908e
dir: /libsec/port/dsaprivtopub.c/
#include "os.h" #include "../include/mp.h" #include "libsec.h" DSApub* dsaprivtopub(DSApriv *priv) { DSApub *pub; pub = dsapuballoc(); pub->p = mpcopy(priv->pub.p); pub->q = mpcopy(priv->pub.q); pub->alpha = mpcopy(priv->pub.alpha); pub->key = mpcopy(priv->pub.key); return pub; }