Debian Codegraph @

crypto_nPbatch/montgomery25519/amd64-avx2-4x1-9l-maa5/batch.c

raw
1 #include "crypto_nP_montgomery25519.h"
2 #include "crypto_nPbatch.h"
3 #include "mont25519_batch.h"
4
5 void crypto_nPbatch(unsigned char *nP,
6 const unsigned char *n,
7 const unsigned char *P,
8 long long batch
9 )
10 {
11 while (batch >= 4) {
12 crypto_nP_4x1((void *) nP,(void *) n,(void *) P);
13 nP += 32*4;
14 n += 32*4;
15 P += 32*4;
16 batch -= 4;
17 }
18 while (batch > 0) {
19 crypto_nP_montgomery25519(nP,n,P);
20 nP += 32;
21 n += 32;
22 P += 32;
23 --batch;
24 }
25 }