Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
2 |
- |
1 |
#include "os.h"
|
|
|
2 |
#include <mp.h>
|
|
|
3 |
#include <libsec.h>
|
|
|
4 |
|
|
|
5 |
RSApub*
|
|
|
6 |
rsaprivtopub(RSApriv *priv)
|
|
|
7 |
{
|
|
|
8 |
RSApub *pub;
|
|
|
9 |
|
|
|
10 |
pub = rsapuballoc();
|
|
|
11 |
if(pub == nil)
|
|
|
12 |
return nil;
|
|
|
13 |
pub->n = mpcopy(priv->pub.n);
|
|
|
14 |
pub->ek = mpcopy(priv->pub.ek);
|
|
|
15 |
return pub;
|
|
|
16 |
}
|