symmetricDecryptHMACIV

open fun symmetricDecryptHMACIV(input: Array<Byte>, key: Array<Byte>, hmacSecret: Array<Byte>): Array<Byte>

Decrypts using AES/CBC/PKCS7 with an input byte array and key, using the IV (comprised of random bytes and the HMAC-SHA1 of the random bytes and plaintext) prepended using AES/ECB/None

Return

decrypted message

Parameters

input

array to decrypt

key

encryption key

hmacSecret

the IV

Throws

exception while decrypting