In cryptography, SIV (Synthetic Initialization Vector) is a block cipher mode for authenticated encryption
SIV (Synthetic Initialization Vector) is a block cipher mode for authenticated-encryption in which the initialization vector can be calculated deterministically.
I'm trying to use BouncyCastle's CMac implementation but apparently I'm doing it wrong. At least the following unit test (based on RFC 5297 test vectors) fails:
@Test
public void testCMacOfZeros() {
byte[] key = {(byte) 0xff, (byte) 0xfe, (byte)…