Files
jehanne/sys/src/lib/sec/port/dsaprivtopub.c
Giacomo Tesio 38aca7a581 first usable version of kernel and commands
After an year of hard work, this is a first "usable" version of Jehanne.
2016-11-26 03:49:29 +01:00

17 lines
279 B
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;
}