code: 9ferno

ref: 2b38105bb4f24e9990844be297b990307dc98a01
dir: /libsec/port/dsaprivtopub.c/

View raw version
#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;
}