ref: 1b09060f468f530af2f4ef75441a40084e912e54
dir: /sys/src/libsec/port/dsaprivtopub.c/
#include "os.h" #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; }