src/ecc/aes.js
function cryptoJsDecrypt(message, key, iv) {
    assert(message, "Missing cipher text");
    message = toBinaryBuffer(message);
    const decipher = crypto.createDecipheriv("aes-256-cbc", key, iv);
    // decipher.setAutoPadding(true)
    message = Buffer.concat([decipher.update(message), decipher.final()]);
    return message;
}
function cryptoJsDecrypt(message, key, iv) {
    assert(message, "Missing cipher text");
    message = toBinaryBuffer(message);
    const decipher = crypto.createDecipheriv("aes-256-cbc", key, iv);
    // decipher.setAutoPadding(true)
    message = Buffer.concat([decipher.update(message), decipher.final()]);
    return message;
}
function cryptoJsDecrypt ( message , key , iv ) { assert ( message , "Missing cipher text" ) ; message = toBinaryBuffer ( message ) ; const decipher = crypto . createDecipheriv ( "aes-256-cbc" , key , iv ) ; // decipher.setAutoPadding(true) message = Buffer . concat ( [ decipher . update ( message ) , decipher . final ( ) ] ) ; return message ; }
This method does not use a checksum, the returned data must be validated some other way.

@arg {string|Buffer} message - ciphertext binary format
@arg {string<utf8>|Buffer} key - 256bit
@arg {string<utf8>|Buffer} iv - 128bit

@return {Buffer}
This method does not use a checksum the returned data must be validated some other way .