packages/cafeteria/plugins/cordova-plugin-secure-storage/www/sjcl_ss.js
function () {
   var encTable = this._tables[0], decTable = this._tables[1],
       sbox = encTable[4], sboxInv = decTable[4],
       i, x, xInv, d=[], th=[], x2, x4, x8, s, tEnc, tDec;

    // Compute double and third tables
   for (i = 0; i < 256; i++) {
     th[( d[i] = i<<1 ^ (i>>7)*283 )^i]=i;
   }

   for (x = xInv = 0; !sbox[x]; x ^= x2 || 1, xInv = th[xInv] || 1) {
     // Compute sbox
     s = xInv ^ xInv<<1 ^ xInv<<2 ^ xInv<<3 ^ xInv<<4;
     s = s>>8 ^ s&255 ^ 99;
     sbox[x] = s;
     sboxInv[s] = x;

     // Compute MixColumns
     x8 = d[x4 = d[x2 = d[x]]];
     tDec = x8*0x1010101 ^ x4*0x10001 ^ x2*0x101 ^ x*0x1010100;
     tEnc = d[s]*0x101 ^ s*0x1010100;

     for (i = 0; i < 4; i++) {
       encTable[i][x] = tEnc = tEnc<<24 ^ tEnc>>>8;
       decTable[i][s] = tDec = tDec<<24 ^ tDec>>>8;
     }
   }

   // Compactify.  Considerable speedup on Firefox.
   for (i = 0; i < 5; i++) {
     encTable[i] = encTable[i].slice(0);
     decTable[i] = decTable[i].slice(0);
   }
  }
function () {
   var encTable = this._tables[0], decTable = this._tables[1],
       sbox = encTable[4], sboxInv = decTable[4],
       i, x, xInv, d=[], th=[], x2, x4, x8, s, tEnc, tDec;

    // Compute double and third tables
   for (i = 0; i < 256; i++) {
     th[( d[i] = i<<1 ^ (i>>7)*283 )^i]=i;
   }

   for (x = xInv = 0; !sbox[x]; x ^= x2 || 1, xInv = th[xInv] || 1) {
     // Compute sbox
     s = xInv ^ xInv<<1 ^ xInv<<2 ^ xInv<<3 ^ xInv<<4;
     s = s>>8 ^ s&255 ^ 99;
     sbox[x] = s;
     sboxInv[s] = x;

     // Compute MixColumns
     x8 = d[x4 = d[x2 = d[x]]];
     tDec = x8*0x1010101 ^ x4*0x10001 ^ x2*0x101 ^ x*0x1010100;
     tEnc = d[s]*0x101 ^ s*0x1010100;

     for (i = 0; i < 4; i++) {
       encTable[i][x] = tEnc = tEnc<<24 ^ tEnc>>>8;
       decTable[i][s] = tDec = tDec<<24 ^ tDec>>>8;
     }
   }

   // Compactify.  Considerable speedup on Firefox.
   for (i = 0; i < 5; i++) {
     encTable[i] = encTable[i].slice(0);
     decTable[i] = decTable[i].slice(0);
   }
  }
function ( ) { var encTable = this . _tables [ 0 ] , decTable = this . _tables [ 1 ] , sbox = encTable [ 4 ] , sboxInv = decTable [ 4 ] , i , x , xInv , d = [ ] , th = [ ] , x2 , x4 , x8 , s , tEnc , tDec ; // Compute double and third tables for ( i = 0 ; i < 256 ; i ++ ) { th [ ( d [ i ] = i << 1 ^ ( i >> 7 ) * 283 ) ^ i ] = i ; } for ( x = xInv = 0 ; ! sbox [ x ] ; x ^= x2 || 1 , xInv = th [ xInv ] || 1 ) { // Compute sbox s = xInv ^ xInv << 1 ^ xInv << 2 ^ xInv << 3 ^ xInv << 4 ; s = s >> 8 ^ s & 255 ^ 99 ; sbox [ x ] = s ; sboxInv [ s ] = x ; // Compute MixColumns x8 = d [ x4 = d [ x2 = d [ x ] ] ] ; tDec = x8 * 0x1010101 ^ x4 * 0x10001 ^ x2 * 0x101 ^ x * 0x1010100 ; tEnc = d [ s ] * 0x101 ^ s * 0x1010100 ; for ( i = 0 ; i < 4 ; i ++ ) { encTable [ i ] [ x ] = tEnc = tEnc << 24 ^ tEnc >>> 8 ; decTable [ i ] [ s ] = tDec = tDec << 24 ^ tDec >>> 8 ; } } // Compactify.  Considerable speedup on Firefox. for ( i = 0 ; i < 5 ; i ++ ) { encTable [ i ] = encTable [ i ] . slice ( 0 ) ; decTable [ i ] = decTable [ i ] . slice ( 0 ) ; } }
Expand the S-box tables.

@private
Expand the S - box tables .