| 1 |
#include "crypto_nG_merged25519.h" |
| 2 |
#include "crypto_nG.h" |
| 3 |
|
| 4 |
void crypto_nG(unsigned char *nG,const unsigned char *n) |
| 5 |
{ |
| 6 |
unsigned char e[32]; |
| 7 |
for (int i = 0;i < 32;++i) e[i] = n[i]; |
| 8 |
e[0] &= 248; |
| 9 |
e[31] &= 127; |
| 10 |
e[31] |= 192; |
| 11 |
crypto_nG_merged25519(nG,e); |
| 12 |
} |
| 13 |
|