Debian Codegraph @

crypto_nPbatch/montgomery25519/arm64-neon-2x1-uma-10l/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 >= 2) {
12 crypto_nP_2x1((void *) nP,(void *) n,(void *) P);
13 nP += 32*2;
14 n += 32*2;
15 P += 32*2;
16 batch -= 2;
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 }