allow all options for legacy pkcs5_keyivgen
allow encoding to give back an encoded value