"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/jodid25519/index.js" (7 Feb 2017, 805 Bytes) of archive /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 "use strict";
    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;