crypto.createCipheriv() implemented and matching node.js