UNPKG

tenvoy

Version:

PGP, NaCl, and PBKDF2 in node.js and the browser (hashing, random, encryption, decryption, signatures, conversions), used by TogaTech.org

29 lines (26 loc) 733 B
/** * @fileoverview Asymmetric cryptography functions * @requires tweetnacl * @requires crypto/public_key/dsa * @requires crypto/public_key/elgamal * @requires crypto/public_key/elliptic * @requires crypto/public_key/rsa * @module crypto/public_key */ import nacl from 'tweetnacl/nacl-fast-light.js'; import rsa from './rsa'; import elgamal from './elgamal'; import elliptic from './elliptic'; import dsa from './dsa'; export default { /** @see module:crypto/public_key/rsa */ rsa: rsa, /** @see module:crypto/public_key/elgamal */ elgamal: elgamal, /** @see module:crypto/public_key/elliptic */ elliptic: elliptic, /** @see module:crypto/public_key/dsa */ dsa: dsa, /** @see tweetnacl */ nacl: nacl };