@Test void testHmacsha512() { HMACSHA512.Key key = HMACSHA512.Key.random(); Bytes authenticator = HMACSHA512.authenticate(Bytes.fromHexString("deadbeef"), key); assertTrue(HMACSHA512.verify(authenticator, Bytes.fromHexString("deadbeef"), key)); }
private HMACSHA512() {}
HMACSHA512 { private HMACSHA512() {} }
HMACSHA512 { private HMACSHA512() {} private  HMACSHA512(); }
HMACSHA512 { private HMACSHA512() {} private  HMACSHA512(); static Bytes authenticate(Bytes message, Key key); static byte[] authenticate(byte[] message, Key key); static boolean verify(Bytes authenticator, Bytes in, Key key); static boolean verify(byte[] authenticator, byte[] in, Key key); }
HMACSHA512 { private HMACSHA512() {} private  HMACSHA512(); static Bytes authenticate(Bytes message, Key key); static byte[] authenticate(byte[] message, Key key); static boolean verify(Bytes authenticator, Bytes in, Key key); static boolean verify(byte[] authenticator, byte[] in, Key key);  }