Fuck node 0.11 API, not slice() on type arrays.
Check arguments and return Buffer() from enc
update key wrapper to api changes