sc25519_mul.c 366 B

12345678910111213
  1. #include "sc25519.h"
  2. #include "compat.h"
  3. #define ull4_mul CRYPTO_NAMESPACE(batch_ull4_mul)
  4. extern void ull4_mul(unsigned long long r[8], const unsigned long long x[4], const unsigned long long y[4]) SYSVABI;
  5. void sc25519_mul(sc25519 *r, const sc25519 *x, const sc25519 *y)
  6. {
  7. unsigned long long t[8];
  8. ull4_mul(t, x->v, y->v);
  9. sc25519_barrett(r, t);
  10. }