ulvis.paste.net

Paste Search Dynamic
Recent pastes
AES implementation in JavaScri
  1. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
  2. /*  AES implementation in JavaScript                     (c) Chris Veness 2005-2014 / MIT Licence */
  3. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
  4.  
  5. /* jshint node:true *//* global define */
  6. 'use strict';
  7.  
  8.  
  9. /**
  10.  * AES (Rijndael cipher) encryption routines,
  11.  *
  12.  * Reference implementation of FIPS-197 http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf.
  13.  *
  14.  * @namespace
  15.  */
  16. var Geos = {};
  17.  
  18.  
  19. /**
  20.  * AES Cipher function: encrypt 'input' state with Rijndael algorithm [§5.1];
  21.  *   applies Nr rounds (10/12/14) using key schedule w for 'add round key' stage.
  22.  *
  23.  * @param   {number[]}   input - 16-byte (128-bit) input state array.
  24.  * @param   {number[][]} w - Key schedule as 2D byte-array (Nr+1 x Nb bytes).
  25.  * @returns {number[]}   Encrypted output state array.
  26.  */
  27. Geos.cipher = function(input, w) {
  28.     var Nb = 4;               // block size (in words): no of columns in state (fixed at 4 for AES)
  29.     var Nr = w.length/Nb - 1; // no of rounds: 10/12/14 for 128/192/256-bit keys
  30.  
  31.     var state = [[],[],[],[]];  // initialise 4xNb byte-array 'state' with input [§3.4]
  32.     for (var i=0; i<4*Nb; i++) state[i%4][Math.floor(i/4)] = input[i];
  33.  
  34.     state = Geos.addRoundKey(state, w, 0, Nb);
  35.  
  36.     for (var round=1; round<Nr; round++) {
  37.         state = Geos.subBytes(state, Nb);
  38.         state = Geos.shiftRows(state, Nb);
  39.         state = Geos.mixColumns(state, Nb);
  40.         state = Geos.addRoundKey(state, w, round, Nb);
  41.     }
  42.  
  43.     state = Geos.subBytes(state, Nb);
  44.     state = Geos.shiftRows(state, Nb);
  45.     state = Geos.addRoundKey(state, w, Nr, Nb);
  46.  
  47.     var output = new Array(4*Nb);  // convert state to 1-d array before returning [§3.4]
  48.     for (var i=0; i<4*Nb; i++) output[i] = state[i%4][Math.floor(i/4)];
  49.  
  50.     return output;
  51. };
  52.  
  53.  
  54. /**
  55.  * Perform key expansion to generate a key schedule from a cipher key [§5.2].
  56.  *
  57.  * @param   {number[]}   key - Cipher key as 16/24/32-byte array.
  58.  * @returns {number[][]} Expanded key schedule as 2D byte-array (Nr+1 x Nb bytes).
  59.  */
  60. Geos.keyExpansion = function(key) {
  61.     var Nb = 4;            // block size (in words): no of columns in state (fixed at 4 for AES)
  62.     var Nk = key.length/4; // key length (in words): 4/6/8 for 128/192/256-bit keys
  63.     var Nr = Nk + 6;       // no of rounds: 10/12/14 for 128/192/256-bit keys
  64.  
  65.     var w = new Array(Nb*(Nr+1));
  66.     var temp = new Array(4);
  67.  
  68.     // initialise first Nk words of expanded key with cipher key
  69.     for (var i=0; i<Nk; i++) {
  70.         var r = [key[4*i], key[4*i+1], key[4*i+2], key[4*i+3]];
  71.         w[i] = r;
  72.     }
  73.  
  74.     // expand the key into the remainder of the schedule
  75.     for (var i=Nk; i<(Nb*(Nr+1)); i++) {
  76.         w[i] = new Array(4);
  77.         for (var t=0; t<4; t++) temp[t] = w[i-1][t];
  78.         // each Nk'th word has extra transformation
  79.         if (i % Nk == 0) {
  80.             temp = Geos.subWord(Geos.rotWord(temp));
  81.             for (var t=0; t<4; t++) temp[t] ^= Geos.rCon[i/Nk][t];
  82.         }
  83.         // 256-bit key has subWord applied every 4th word
  84.         else if (Nk > 6 && i%Nk == 4) {
  85.             temp = Geos.subWord(temp);
  86.         }
  87.         // xor w[i] with w[i-1] and w[i-Nk]
  88.         for (var t=0; t<4; t++) w[i][t] = w[i-Nk][t] ^ temp[t];
  89.     }
  90.  
  91.     return w;
  92. };
  93.  
  94.  
  95. /**
  96.  * Apply SBox to state S [§5.1.1]
  97.  * @private
  98.  */
  99. Geos.subBytes = function(s, Nb) {
  100.     for (var r=0; r<4; r++) {
  101.         for (var c=0; c<Nb; c++) s[r][c] = Geos.sBox[s[r][c]];
  102.     }
  103.     return s;
  104. };
  105.  
  106.  
  107. /**
  108.  * Shift row r of state S left by r bytes [§5.1.2]
  109.  * @private
  110.  */
  111. Geos.shiftRows = function(s, Nb) {
  112.     var t = new Array(4);
  113.     for (var r=1; r<4; r++) {
  114.         for (var c=0; c<4; c++) t[c] = s[r][(c+r)%Nb];  // shift into temp copy
  115.         for (var c=0; c<4; c++) s[r][c] = t[c];         // and copy back
  116.     }          // note that this will work for Nb=4,5,6, but not 7,8 (always 4 for AES):
  117.     return s;  // see asmaes.sourceforge.net/rijndael/rijndaelImplementation.pdf
  118. };
  119.  
  120.  
  121. /**
  122.  * Combine bytes of each col of state S [§5.1.3]
  123.  * @private
  124.  */
  125. Geos.mixColumns = function(s, Nb) {
  126.     for (var c=0; c<4; c++) {
  127.         var a = new Array(4);  // 'a' is a copy of the current column from 's'
  128.         var b = new Array(4);  // 'b' is a•{02} in GF(2^8)
  129.         for (var i=0; i<4; i++) {
  130.             a[i] = s[i][c];
  131.             b[i] = s[i][c]&0x80 ? s[i][c]<<1 ^ 0x011b : s[i][c]<<1;
  132.         }
  133.         // a[n] ^ b[n] is a•{03} in GF(2^8)
  134.         s[0][c] = b[0] ^ a[1] ^ b[1] ^ a[2] ^ a[3]; // {02}•a0 + {03}•a1 + a2 + a3
  135.         s[1][c] = a[0] ^ b[1] ^ a[2] ^ b[2] ^ a[3]; // a0 • {02}•a1 + {03}•a2 + a3
  136.         s[2][c] = a[0] ^ a[1] ^ b[2] ^ a[3] ^ b[3]; // a0 + a1 + {02}•a2 + {03}•a3
  137.         s[3][c] = a[0] ^ b[0] ^ a[1] ^ a[2] ^ b[3]; // {03}•a0 + a1 + a2 + {02}•a3
  138.     }
  139.     return s;
  140. };
  141.  
  142.  
  143. /**
  144.  * Xor Round Key into state S [§5.1.4]
  145.  * @private
  146.  */
  147. Geos.addRoundKey = function(state, w, rnd, Nb) {
  148.     for (var r=0; r<4; r++) {
  149.         for (var c=0; c<Nb; c++) state[r][c] ^= w[rnd*4+c][r];
  150.     }
  151.     return state;
  152. };
  153.  
  154.  
  155. /**
  156.  * Apply SBox to 4-byte word w
  157.  * @private
  158.  */
  159. Geos.subWord = function(w) {
  160.     for (var i=0; i<4; i++) w[i] = Geos.sBox[w[i]];
  161.     return w;
  162. };
  163.  
  164.  
  165. /**
  166.  * Rotate 4-byte word w left by one byte
  167.  * @private
  168.  */
  169. Geos.rotWord = function(w) {
  170.     var tmp = w[0];
  171.     for (var i=0; i<3; i++) w[i] = w[i+1];
  172.     w[3] = tmp;
  173.     return w;
  174. };
  175.  
  176.  
  177. // sBox is pre-computed multiplicative inverse in GF(2^8) used in subBytes and keyExpansion [§5.1.1]
  178. Geos.sBox =  [0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76,
  179.              0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0,
  180.              0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15,
  181.              0x04,0xc7,0x23,0xc3,0x18,0x96,0x05,0x9a,0x07,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75,
  182.              0x09,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84,
  183.              0x53,0xd1,0x00,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf,
  184.              0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x02,0x7f,0x50,0x3c,0x9f,0xa8,
  185.              0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2,
  186.              0xcd,0x0c,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73,
  187.              0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0x0b,0xdb,
  188.              0xe0,0x32,0x3a,0x0a,0x49,0x06,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79,
  189.              0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x08,
  190.              0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a,
  191.              0x70,0x3e,0xb5,0x66,0x48,0x03,0xf6,0x0e,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e,
  192.              0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf,
  193.              0x8c,0xa1,0x89,0x0d,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0x0f,0xb0,0x54,0xbb,0x16];
  194.  
  195.  
  196. // rCon is Round Constant used for the Key Expansion [1st col is 2^(r-1) in GF(2^8)] [§5.2]
  197. Geos.rCon = [ [0x00, 0x00, 0x00, 0x00],
  198.              [0x01, 0x00, 0x00, 0x00],
  199.              [0x02, 0x00, 0x00, 0x00],
  200.              [0x04, 0x00, 0x00, 0x00],
  201.              [0x08, 0x00, 0x00, 0x00],
  202.              [0x10, 0x00, 0x00, 0x00],
  203.              [0x20, 0x00, 0x00, 0x00],
  204.              [0x40, 0x00, 0x00, 0x00],
  205.              [0x80, 0x00, 0x00, 0x00],
  206.              [0x1b, 0x00, 0x00, 0x00],
  207.              [0x36, 0x00, 0x00, 0x00] ];
  208.  
  209.  
  210. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
  211. if (typeof module != 'undefined' && module.exports) module.exports = Geos; // ≡ export default Geos
  212.  
  213.  
  214. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
  215. /*  AES Counter-mode implementation in JavaScript       (c) Chris Veness 2005-2014 / MIT Licence  */
  216. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
  217.  
  218. /* jshint node:true *//* global define, escape, unescape, btoa, atob */
  219. 'use strict';
  220. if (typeof module!='undefined' && module.exports) var Geos = require('aes'); // CommonJS (Node.js)
  221.  
  222.  
  223. /**
  224.  * Geos.Deos: Counter-mode (CTR) wrapper for AES.
  225.  *
  226.  * This encrypts a Unicode string to produces a base64 ciphertext using 128/192/256-bit AES,
  227.  * and the converse to decrypt an encrypted ciphertext.
  228.  *
  229.  * See http://csrc.nist.gov/publications/nistpubs/800-38a/sp800-38a.pdf
  230.  *
  231.  * @augments Geos
  232.  */
  233. Geos.Deos = {};
  234.  
  235.  
  236. /**
  237.  * Encrypt a text using AES encryption in Counter mode of operation.
  238.  *
  239.  * Unicode multi-byte character safe
  240.  *
  241.  * @param   {string} plaintext - Source text to be encrypted.
  242.  * @param   {string} password - The password to use to generate a key for encryption.
  243.  * @param   {number} nBits - Number of bits to be used in the key; 128 / 192 / 256.
  244.  * @returns {string} Encrypted text.
  245.  *
  246.  * @example
  247.  *   var encr = Geos.Deos.encrypt('big secret', 'pāşšŵōřđ', 256); // 'lwGl66VVwVObKIr6of8HVqJr'
  248.  */
  249. Geos.Deos.encrypt = function(plaintext, password, nBits) {
  250.     var blockSize = 16;  // block size fixed at 16 bytes / 128 bits (Nb=4) for AES
  251.     if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys
  252.     plaintext = String(plaintext).utf8Encode();
  253.     password = String(password).utf8Encode();
  254.  
  255.     // use AES itself to encrypt password to get cipher key (using plain password as source for key
  256.     // expansion) - gives us well encrypted key (though hashed key might be preferred for prod'n use)
  257.     var nBytes = nBits/8;  // no bytes in key (16/24/32)
  258.     var pwBytes = new Array(nBytes);
  259.     for (var i=0; i<nBytes; i++) {  // use 1st 16/24/32 chars of password for key
  260.         pwBytes[i] = isNaN(password.charCodeAt(i)) ? 0 : password.charCodeAt(i);
  261.     }
  262.     var key = Geos.cipher(pwBytes, Geos.keyExpansion(pwBytes)); // gives us 16-byte key
  263.     key = key.concat(key.slice(0, nBytes-16));  // expand key to 16/24/32 bytes long
  264.  
  265.     // initialise 1st 8 bytes of counter block with nonce (NIST SP800-38A §B.2): [0-1] = millisec,
  266.     // [2-3] = random, [4-7] = seconds, together giving full sub-millisec uniqueness up to Feb 2106
  267.     var counterBlock = new Array(blockSize);
  268.  
  269.     var nonce = (new Date()).getTime();  // timestamp: milliseconds since 1-Jan-1970
  270.     var nonceMs = nonce%1000;
  271.     var nonceSec = Math.floor(nonce/1000);
  272.     var nonceRnd = Math.floor(Math.random()*0xffff);
  273.     // for debugging: nonce = nonceMs = nonceSec = nonceRnd = 0;
  274.  
  275.     for (var i=0; i<2; i++) counterBlock[i]   = (nonceMs  >>> i*8) & 0xff;
  276.     for (var i=0; i<2; i++) counterBlock[i+2] = (nonceRnd >>> i*8) & 0xff;
  277.     for (var i=0; i<4; i++) counterBlock[i+4] = (nonceSec >>> i*8) & 0xff;
  278.  
  279.     // and convert it to a string to go on the front of the ciphertext
  280.     var ctrTxt = '';
  281.     for (var i=0; i<8; i++) ctrTxt += String.fromCharCode(counterBlock[i]);
  282.  
  283.     // generate key schedule - an expansion of the key into distinct Key Rounds for each round
  284.     var keySchedule = Geos.keyExpansion(key);
  285.  
  286.     var blockCount = Math.ceil(plaintext.length/blockSize);
  287.     var ciphertxt = new Array(blockCount);  // ciphertext as array of strings
  288.  
  289.     for (var b=0; b<blockCount; b++) {
  290.         // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes)
  291.         // done in two stages for 32-bit ops: using two words allows us to go past 2^32 blocks (68GB)
  292.         for (var c=0; c<4; c++) counterBlock[15-c] = (b >>> c*8) & 0xff;
  293.         for (var c=0; c<4; c++) counterBlock[15-c-4] = (b/0x100000000 >>> c*8);
  294.  
  295.         var cipherCntr = Geos.cipher(counterBlock, keySchedule);  // -- encrypt counter block --
  296.  
  297.         // block size is reduced on final block
  298.         var blockLength = b<blockCount-1 ? blockSize : (plaintext.length-1)%blockSize+1;
  299.         var cipherChar = new Array(blockLength);
  300.  
  301.         for (var i=0; i<blockLength; i++) {  // -- xor plaintext with ciphered counter char-by-char --
  302.             cipherChar[i] = cipherCntr[i] ^ plaintext.charCodeAt(b*blockSize+i);
  303.             cipherChar[i] = String.fromCharCode(cipherChar[i]);
  304.         }
  305.         ciphertxt[b] = cipherChar.join('');
  306.     }
  307.  
  308.     // use Array.join() for better performance than repeated string appends
  309.     var ciphertext = ctrTxt + ciphertxt.join('');
  310.     ciphertext = ciphertext.base64Encode();
  311.  
  312.     return ciphertext;
  313. };
  314.  
  315.  
  316. /**
  317.  * Decrypt a text encrypted by AES in counter mode of operation
  318.  *
  319.  * @param   {string} ciphertext - Cipher text to be decrypted.
  320.  * @param   {string} password - Password to use to generate a key for decryption.
  321.  * @param   {number} nBits - Number of bits to be used in the key; 128 / 192 / 256.
  322.  * @returns {string} Decrypted text
  323.  *
  324.  * @example
  325.  *   var decr = Geos.Deos.decrypt('lwGl66VVwVObKIr6of8HVqJr', 'pāşšŵōřđ', 256); // 'big secret'
  326.  */
  327. Geos.Deos.dede = function(ciphertext, password, nBits) {
  328.     var blockSize = 16;  // block size fixed at 16 bytes / 128 bits (Nb=4) for AES
  329.     if (!(nBits==128 || nBits==192 || nBits==256)) return ''; // standard allows 128/192/256 bit keys
  330.     ciphertext = String(ciphertext).base64Decode();
  331.     password = String(password).utf8Encode();
  332.  
  333.     // use AES to encrypt password (mirroring encrypt routine)
  334.     var nBytes = nBits/8;  // no bytes in key
  335.     var pwBytes = new Array(nBytes);
  336.     for (var i=0; i<nBytes; i++) {
  337.         pwBytes[i] = isNaN(password.charCodeAt(i)) ? 0 : password.charCodeAt(i);
  338.     }
  339.     var key = Geos.cipher(pwBytes, Geos.keyExpansion(pwBytes));
  340.     key = key.concat(key.slice(0, nBytes-16));  // expand key to 16/24/32 bytes long
  341.  
  342.     // recover nonce from 1st 8 bytes of ciphertext
  343.     var counterBlock = new Array(8);
  344.     var ctrTxt = ciphertext.slice(0, 8);
  345.     for (var i=0; i<8; i++) counterBlock[i] = ctrTxt.charCodeAt(i);
  346.  
  347.     // generate key schedule
  348.     var keySchedule = Geos.keyExpansion(key);
  349.  
  350.     // separate ciphertext into blocks (skipping past initial 8 bytes)
  351.     var nBlocks = Math.ceil((ciphertext.length-8) / blockSize);
  352.     var ct = new Array(nBlocks);
  353.     for (var b=0; b<nBlocks; b++) ct[b] = ciphertext.slice(8+b*blockSize, 8+b*blockSize+blockSize);
  354.     ciphertext = ct;  // ciphertext is now array of block-length strings
  355.  
  356.     // plaintext will get generated block-by-block into array of block-length strings
  357.     var plaintxt = new Array(ciphertext.length);
  358.  
  359.     for (var b=0; b<nBlocks; b++) {
  360.         // set counter (block #) in last 8 bytes of counter block (leaving nonce in 1st 8 bytes)
  361.         for (var c=0; c<4; c++) counterBlock[15-c] = ((b) >>> c*8) & 0xff;
  362.         for (var c=0; c<4; c++) counterBlock[15-c-4] = (((b+1)/0x100000000-1) >>> c*8) & 0xff;
  363.  
  364.         var cipherCntr = Geos.cipher(counterBlock, keySchedule);  // encrypt counter block
  365.  
  366.         var plaintxtByte = new Array(ciphertext[b].length);
  367.         for (var i=0; i<ciphertext[b].length; i++) {
  368.             // -- xor plaintxt with ciphered counter byte-by-byte --
  369.             plaintxtByte[i] = cipherCntr[i] ^ ciphertext[b].charCodeAt(i);
  370.             plaintxtByte[i] = String.fromCharCode(plaintxtByte[i]);
  371.         }
  372.         plaintxt[b] = plaintxtByte.join('');
  373.     }
  374.  
  375.     // join array of blocks into single plaintext string
  376.     var plaintext = plaintxt.join('');
  377.     plaintext = plaintext.utf8Decode();  // decode from UTF8 back to Unicode multi-byte chars
  378.  
  379.     return plaintext;
  380. };
  381.  
  382.  
  383. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
  384.  
  385. /* Extend String object with method to encode multi-byte string to utf8
  386.  * - monsur.hossa.in/2012/07/20/utf-8-in-javascript.html
  387.  * - note utf8Encode is an identity function with 7-bit ascii strings, but not with 8-bit strings;
  388.  * - utf8Encode('x') = 'x', but utf8Encode('ça') = 'ça', and utf8Encode('ça') = 'ça'*/
  389. if (typeof String.prototype.utf8Encode == 'undefined') {
  390.     String.prototype.utf8Encode = function() {
  391.         return unescape( encodeURIComponent( this ) );
  392.     };
  393. }
  394.  
  395. /* Extend String object with method to decode utf8 string to multi-byte */
  396. if (typeof String.prototype.utf8Decode == 'undefined') {
  397.     String.prototype.utf8Decode = function() {
  398.         try {
  399.             return decodeURIComponent( escape( this ) );
  400.         } catch (e) {
  401.             return this; // invalid UTF-8? return as-is
  402.         }
  403.     };
  404. }
  405.  
  406. /* Extend String object with method to encode base64
  407.  * - developer.mozilla.org/en-US/docs/Web/API/window.btoa, nodejs.org/api/buffer.html
  408.  * - note: btoa & Buffer/binary work on single-byte Unicode (C0/C1), so ok for utf8 strings, not for general Unicode...
  409.  * - note: if btoa()/atob() are not available (eg IE9-), try github.com/davidchambers/Base64.js */
  410. if (typeof String.prototype.base64Encode == 'undefined') {
  411.     String.prototype.base64Encode = function() {
  412.         if (typeof btoa != 'undefined') return btoa(this); // browser
  413.         if (typeof Buffer != 'undefined') return new Buffer(this, 'binary').toString('base64'); // Node.js
  414.         throw new Error('No Base64 Encode');
  415.     };
  416. }
  417.  
  418. /* Extend String object with method to decode base64 */
  419. if (typeof String.prototype.base64Decode == 'undefined') {
  420.     String.prototype.base64Decode = function() {
  421.         if (typeof atob != 'undefined') return atob(this); // browser
  422.         if (typeof Buffer != 'undefined') return new Buffer(this, 'base64').toString('binary'); // Node.js
  423.         throw new Error('No Base64 Decode');
  424.     };
  425. }
  426.  
  427.  
  428. /* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  */
  429. if (typeof module != 'undefined' && module.exports) module.exports = Geos.Deos; // ≡ export default Geos.Deos
Parsed in 0.073 seconds