Buffer wrapper for the node crypto stream interface