add amd64-{51-30k,64-24k} from SUPERCOP, now use autoconf

This commit is contained in:
cathugger
2017-09-27 02:35:56 +03:00
parent ad9c6592ed
commit 81cebae449
162 changed files with 79451 additions and 277 deletions

View File

@@ -0,0 +1,13 @@
#include "fe25519.h"
#include "sc25519.h"
#include "ge25519.h"
void ge25519_pack(unsigned char r[32], const ge25519_p3 *p)
{
fe25519 tx, ty, zi;
fe25519_invert(&zi, &p->z);
fe25519_mul(&tx, &p->x, &zi);
fe25519_mul(&ty, &p->y, &zi);
fe25519_pack(r, &ty);
r[31] ^= fe25519_getparity(&tx) << 7;
}