Debian Codegraph @

crypto_sign/ed25519/amd64/sc25519_mul.c

raw
1 // linker define sc25519_mul
2 // linker use ull4_mul
3 // linker use sc25519_barrett
4
5 #include "sc25519.h"
6
7 #define ull4_mul CRYPTO_SHARED_NAMESPACE(ull4_mul)
8
9 extern void ull4_mul(unsigned long long r[8], const unsigned long long x[4], const unsigned long long y[4]);
10
11 void sc25519_mul(sc25519 *r, const sc25519 *x, const sc25519 *y)
12 {
13 unsigned long long t[8];
14 ull4_mul(t, x->v, y->v);
15 sc25519_barrett(r, t);
16 }