This commit is contained in:
Looly
2022-03-31 21:34:27 +08:00
parent 3987f5b7ee
commit 59ad18381d

View File

@@ -73,8 +73,8 @@ public class HmacTest {
@Test @Test
public void zuc256MacTest(){ public void zuc256MacTest(){
byte[] iv = new byte[25];
final byte[] key = new byte[32]; final byte[] key = new byte[32];
byte[] iv = new byte[25];
HMac mac = new HMac("ZUC-256", HMac mac = new HMac("ZUC-256",
KeyUtil.generateKey(ZUC.ZUCAlgorithm.ZUC_128.getValue(), key), KeyUtil.generateKey(ZUC.ZUCAlgorithm.ZUC_128.getValue(), key),
new IvParameterSpec(iv)); new IvParameterSpec(iv));