Bulk Operations in HMAC
The bulk operation in HMAC is supported only with HmacSHA256
. To perform the bulk operation follow the steps below:
Create an instance of HmacSHA256
HmacSHA256 hmc = new HmacSHA256( hkey );
Call doFinalBulk method and pass the array of data to be encrypted.
byte[][] macValue = hmc.doFinalBulk( dataToEncrypt);