Package com.hierynomus.security.mac
Class HmacT64
java.lang.Object
com.hierynomus.security.mac.HmacT64
- All Implemented Interfaces:
Mac
This is an implementation of the HMACT64 keyed hashing algorithm.
HMACT64 is defined by Luke Leighton as a modified HMAC-MD5 (RFC 2104)
in which the key is truncated at 64 bytes (rather than being hashed
via MD5).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private byte[]
private static final byte
private MessageDigest
private byte[]
private static final byte
-
Constructor Summary
ConstructorsConstructorDescriptionHmacT64
(MessageDigest md5) Creates an HMACT64 instance which uses the given secret key material. -
Method Summary
-
Field Details
-
BLOCK_LENGTH
private static final int BLOCK_LENGTH- See Also:
-
IPAD
private static final byte IPAD- See Also:
-
OPAD
private static final byte OPAD- See Also:
-
md5
-
ipad
private byte[] ipad -
opad
private byte[] opad
-
-
Constructor Details
-
HmacT64
Creates an HMACT64 instance which uses the given secret key material.
-
-
Method Details
-
init
- Specified by:
init
in interfaceMac
- Throws:
SecurityException
-
doFinal
public byte[] doFinal() -
update
public void update(byte b) -
update
public void update(byte[] array) -
update
public void update(byte[] array, int offset, int length) -
reset
public void reset()
-