set Cipher
Method to set the cipher instance
Parameters
iv Spec
: initialization vector as String
secret Key
: secret key as String
algorithm
: algorithm used by the cipher
Throws
when an error occurred
Method to set the cipher instance
Parameters
iv Spec
: initialization vector as IvParameterSpec
secret Key
: secret key as SecretKey
algorithm
: algorithm used by the cipher
Throws
when an error occurred