summaryrefslogtreecommitdiffstats
path: root/external_libs/python/pyzmq-14.7.0/bundled/libsodium/src/libsodium/crypto_scalarmult/crypto_scalarmult.c
blob: 25d7397fb9cb0e59b70a88917bdb57f3c98a3dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "crypto_scalarmult.h"

size_t
crypto_scalarmult_bytes(void)
{
    return crypto_scalarmult_BYTES;
}

size_t
crypto_scalarmult_scalarbytes(void)
{
    return crypto_scalarmult_SCALARBYTES;
}

const char *
crypto_scalarmult_primitive(void)
{
    return crypto_scalarmult_PRIMITIVE;
}

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

int
crypto_scalarmult(unsigned char *q, const unsigned char *n,
                  const unsigned char *p)
{
    return crypto_scalarmult_curve25519(q, n, p);
}