symmetric Encrypt With HMACIV
open fun symmetricEncryptWithHMACIV(input: Array<Byte>, key: Array<Byte>, hmacSecret: Array<Byte>): Array<Byte>
Performs an encryption using AES/CBC/PKCS7 with an input byte array and key, with a IV (comprised of random bytes and the HMAC-SHA1 of the random bytes and plaintext) prepended using AES/ECB/None
Return
encrypted message
Parameters
input
array to encrypt
key
encryption key
hmac Secret
the IV
Throws
exception while encrypting