-rw-r--r-- 475 lib25519-20230630/crypto_nPbatch/montgomery25519/amd64-avx2-4x1-9l-maa4/batch.c raw
#include "crypto_nP_montgomery25519.h"
#include "crypto_nPbatch.h"
#include "mont25519_batch.h"
void crypto_nPbatch(unsigned char *nP,
const unsigned char *n,
const unsigned char *P,
long long batch
)
{
while (batch >= 4) {
crypto_nP_4x1((void *) nP,(void *) n,(void *) P);
nP += 32*4;
n += 32*4;
P += 32*4;
batch -= 4;
}
while (batch > 0) {
crypto_nP_montgomery25519(nP,n,P);
nP += 32;
n += 32;
P += 32;
--batch;
}
}