src/crypto/crypto.js
function(ua, uaLength) {
    let temp = [];
    for (let i = 0; i < uaLength; i += 4) {
        let x = ua[i] * 0x1000000 + (ua[i + 1] || 0) * 0x10000 + (ua[i + 2] || 0) * 0x100 + (ua[i + 3] || 0);
        temp.push((x > 0x7fffffff) ? x - 0x100000000 : x);
    }
    return CryptoJS.lib.WordArray.create(temp, uaLength);
}
function(ua, uaLength) {
    let temp = [];
    for (let i = 0; i < uaLength; i += 4) {
        let x = ua[i] * 0x1000000 + (ua[i + 1] || 0) * 0x10000 + (ua[i + 2] || 0) * 0x100 + (ua[i + 3] || 0);
        temp.push((x > 0x7fffffff) ? x - 0x100000000 : x);
    }
    return CryptoJS.lib.WordArray.create(temp, uaLength);
}
function ( ua , uaLength ) { let temp = [ ] ; for ( let i = 0 ; i < uaLength ; i += 4 ) { let x = ua [ i ] * 0x1000000 + ( ua [ i + 1 ] || 0 ) * 0x10000 + ( ua [ i + 2 ] || 0 ) * 0x100 + ( ua [ i + 3 ] || 0 ) ; temp . push ( ( x > 0x7fffffff ) ? x - 0x100000000 : x ) ; } return CryptoJS . lib . WordArray . create ( temp , uaLength ) ; }
Convert an Uint8Array to WordArray

@param {Uint8Array} ua - An Uint8Array
@param {number} uaLength - The Uint8Array length

@return {WordArray}
Convert an Uint8Array to WordArray