/*
Written in the D programming language.
For git maintenance (ensure at least one congruent line with originating C header):
#define crypto_scalarmult_curve25519_H
*/

module deimos.sodium.crypto_scalarmult_curve25519;


extern(C) @nogc pure :


enum crypto_scalarmult_curve25519_BYTES = 32U;

size_t crypto_scalarmult_curve25519_bytes() @trusted;

enum crypto_scalarmult_curve25519_SCALARBYTES = 32U;

size_t crypto_scalarmult_curve25519_scalarbytes() @trusted;

/*
 * NOTE: Do not use the result of this function directly for key exchange.
 *
 * Hash the result with the public keys in order to compute a shared
 * secret key: H(q || client_pk || server_pk)
 *
 * Or unless this is not an option, use the crypto_kx() API instead.
 */
int crypto_scalarmult_curve25519(ubyte* q, const(ubyte)* n,
                                 const(ubyte)* p) nothrow; // __attribute__ ((warn_unused_result)) __attribute__ ((nonnull));

int crypto_scalarmult_curve25519_base(ubyte* q, const(ubyte)* n); //__attribute__ ((nonnull));