a
This commit is contained in:
17
libsec/egprivtopub.c
Normal file
17
libsec/egprivtopub.c
Normal file
@ -0,0 +1,17 @@
|
||||
#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;
|
||||
}
|
Reference in New Issue
Block a user