mirror of
https://github.com/0intro/conterm
synced 2024-11-22 22:01:41 +03:00
18 lines
273 B
C
18 lines
273 B
C
|
#include "os.h"
|
||
|
#include <mp.h>
|
||
|
#include <libsec.h>
|
||
|
|
||
|
EGpub*
|
||
|
egprivtopub(EGpriv *priv)
|
||
|
{
|
||
|
EGpub *pub;
|
||
|
|
||
|
pub = egpuballoc();
|
||
|
if(pub == nil)
|
||
|
return nil;
|
||
|
pub->p = mpcopy(priv->pub.p);
|
||
|
pub->alpha = mpcopy(priv->pub.alpha);
|
||
|
pub->key = mpcopy(priv->pub.key);
|
||
|
return pub;
|
||
|
}
|