index.js 805 B

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