libs/sjcl.js
function (arr) {
    var out = [], bl = sjcl.bitArray.bitLength(arr), i, tmp;
    for (i=0; i<bl/8; i++) {
      if ((i&3) === 0) {
        tmp = arr[i/4];
      }
      out.push(tmp >>> 24);
      tmp <<= 8;
    }
    return out;
  }
function (arr) {
    var out = [], bl = sjcl.bitArray.bitLength(arr), i, tmp;
    for (i=0; i<bl/8; i++) {
      if ((i&3) === 0) {
        tmp = arr[i/4];
      }
      out.push(tmp >>> 24);
      tmp <<= 8;
    }
    return out;
  }
function ( arr ) { var out = [ ] , bl = sjcl . bitArray . bitLength ( arr ) , i , tmp ; for ( i = 0 ; i < bl / 8 ; i ++ ) { if ( ( i & 3 ) === 0 ) { tmp = arr [ i / 4 ] ; } out . push ( tmp >>> 24 ) ; tmp <<= 8 ; } return out ; }
Convert from a bitArray to an array of bytes.
Convert from a bitArray to an array of bytes .