summaryrefslogtreecommitdiff
path: root/nacl/crypto_scalarmult/curve25519/ref/base.c
blob: ac2d7eb457421d4f8509ddae56cadf0e6f5cb7b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
version 20081011
Matthew Dempsky
Public domain.
Derived from public domain code by D. J. Bernstein.
*/

#include "crypto_scalarmult.h"

const unsigned char base[32] = {9};

int crypto_scalarmult_base(unsigned char *q,
  const unsigned char *n)
{
  return crypto_scalarmult(q,n,base);
}