Home | History | Annotate | Line # | Download | only in crypto_scalarmult
      1 
      2 #include "crypto_scalarmult.h"
      3 
      4 const char *
      5 crypto_scalarmult_primitive(void)
      6 {
      7     return crypto_scalarmult_PRIMITIVE;
      8 }
      9 
     10 int
     11 crypto_scalarmult_base(unsigned char *q, const unsigned char *n)
     12 {
     13     return crypto_scalarmult_curve25519_base(q, n);
     14 }
     15 
     16 int
     17 crypto_scalarmult(unsigned char *q, const unsigned char *n,
     18                   const unsigned char *p)
     19 {
     20     return crypto_scalarmult_curve25519(q, n, p);
     21 }
     22 
     23 size_t
     24 crypto_scalarmult_bytes(void)
     25 {
     26     return crypto_scalarmult_BYTES;
     27 }
     28 
     29 size_t
     30 crypto_scalarmult_scalarbytes(void)
     31 {
     32     return crypto_scalarmult_SCALARBYTES;
     33 }
     34