1 2 #include "crypto_scalarmult.h" 3 4 const char * crypto_scalarmult_primitive(void)5crypto_scalarmult_primitive(void) 6 { 7 return crypto_scalarmult_PRIMITIVE; 8 } 9 10 int crypto_scalarmult_base(unsigned char * q,const unsigned char * n)11crypto_scalarmult_base(unsigned char *q, const unsigned char *n) 12 { 13 return crypto_scalarmult_curve25519_base(q, n); 14 } 15 16 int crypto_scalarmult(unsigned char * q,const unsigned char * n,const unsigned char * p)17crypto_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 crypto_scalarmult_bytes(void)24crypto_scalarmult_bytes(void) 25 { 26 return crypto_scalarmult_BYTES; 27 } 28 29 size_t crypto_scalarmult_scalarbytes(void)30crypto_scalarmult_scalarbytes(void) 31 { 32 return crypto_scalarmult_SCALARBYTES; 33 } 34