a
This commit is contained in:
16
libsec/rsaprivtopub.c
Normal file
16
libsec/rsaprivtopub.c
Normal file
@ -0,0 +1,16 @@
|
||||
#include "os.h"
|
||||
#include <mp.h>
|
||||
#include <libsec.h>
|
||||
|
||||
RSApub*
|
||||
rsaprivtopub(RSApriv *priv)
|
||||
{
|
||||
RSApub *pub;
|
||||
|
||||
pub = rsapuballoc();
|
||||
if(pub == nil)
|
||||
return nil;
|
||||
pub->n = mpcopy(priv->pub.n);
|
||||
pub->ek = mpcopy(priv->pub.ek);
|
||||
return pub;
|
||||
}
|
Reference in New Issue
Block a user