Added support for iv as Buffer

Fixes #4