packages/cafeteria/plugins/cordova-plugin-secure-storage/www/sjcl_ss.js
function (str) {
    var i, out=[], len;
    str = str.replace(/\s|0x/g, "");
    len = str.length;
    str = str + "00000000";
    for (i=0; i<str.length; i+=8) {
      out.push(parseInt(str.substr(i,8),16)^0);
    }
    return sjcl.bitArray.clamp(out, len*4);
  }
function (str) {
    var i, out=[], len;
    str = str.replace(/\s|0x/g, "");
    len = str.length;
    str = str + "00000000";
    for (i=0; i<str.length; i+=8) {
      out.push(parseInt(str.substr(i,8),16)^0);
    }
    return sjcl.bitArray.clamp(out, len*4);
  }
function ( str ) { var i , out = [ ] , len ; str = str . replace ( / \s|0x / g , "" ) ; len = str . length ; str = str + "00000000" ; for ( i = 0 ; i < str . length ; i += 8 ) { out . push ( parseInt ( str . substr ( i , 8 ) , 16 ) ^ 0 ) ; } return sjcl . bitArray . clamp ( out , len * 4 ) ; }
Convert from a hex string to a bitArray.
Convert from a hex string to a bitArray .