C++ Implementation of Node.js Crypto Methods