mirror of
https://github.com/0intro/conterm
synced 2024-11-22 13:51:34 +03:00
17 lines
279 B
C
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;
|
|
}
|