More refactoring of internal cipher API.  Eliminate usage of void* in set_iv function.