23 lines
619 B
C++
Executable file
23 lines
619 B
C++
Executable file
/**
|
|
* Node Native Module for Lib Sodium
|
|
*
|
|
* @Author Pedro Paixao
|
|
* @email paixaop at gmail dot com
|
|
* @License MIT
|
|
*/
|
|
#include "node_sodium.h"
|
|
#include "crypto_scalarmult_curve25519.h"
|
|
|
|
/**
|
|
* Register function calls in node binding
|
|
*/
|
|
void register_crypto_scalarmult(Napi::Env env, Napi::Object exports) {
|
|
|
|
// Scalar Mult
|
|
EXPORT_ALIAS(crypto_scalarmult, crypto_scalarmult_curve25519);
|
|
EXPORT_ALIAS(crypto_scalarmult_base, crypto_scalarmult_curve25519_base);
|
|
|
|
EXPORT_INT(crypto_scalarmult_SCALARBYTES);
|
|
EXPORT_INT(crypto_scalarmult_BYTES);
|
|
EXPORT_STRING(crypto_scalarmult_PRIMITIVE);
|
|
} |