1 | ;
|
2 |
|
3 | /*
|
4 | * Copyright (c) 2014 Mega Limited
|
5 | * under the MIT License.
|
6 | *
|
7 | * Authors: Guy K. Kloss
|
8 | *
|
9 | * You should have received a copy of the license along with this program.
|
10 | */
|
11 |
|
12 | var dh = require('./lib/dh');
|
13 | var eddsa = require('./lib/eddsa');
|
14 | var curve255 = require('./lib/curve255');
|
15 | var utils = require('./lib/utils');
|
16 |
|
17 | /**
|
18 | * @exports jodid25519
|
19 | * Curve 25519-based cryptography collection.
|
20 | *
|
21 | * @description
|
22 | * EC Diffie-Hellman (ECDH) based on Curve25519 and digital signatures
|
23 | * (EdDSA) based on Ed25519.
|
24 | */
|
25 | var ns = {};
|
26 |
|
27 | /** Module version indicator as string (format: [major.minor.patch]). */
|
28 | ns.VERSION = '0.7.1';
|
29 |
|
30 | ns.dh = dh;
|
31 | ns.eddsa = eddsa;
|
32 | ns.curve255 = curve255;
|
33 | ns.utils = utils;
|
34 |
|
35 | module.exports = ns;
|