|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.util.HMAC
A simple HMAC (rfc 2104) fro the Urd package. This HMAC prepares the key and should prove to be fairly fast in repeated use.
| Constructor Summary | |
HMAC(java.lang.String digest,
int blockSize,
byte[] key)
Create a new HMAC. |
|
| Method Summary | |
byte[] |
digest(byte[] bytes)
Get digest. |
byte[] |
digest(byte[] bytes,
int off,
int len)
Get digest. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HMAC(java.lang.String digest,
int blockSize,
byte[] key)
throws java.security.NoSuchAlgorithmException
digest - MAC digest to use, e.g. MD5 or SHA-1blockSize - Digest algorithm block sizekey - HMAC key| Method Detail |
public byte[] digest(byte[] bytes)
public byte[] digest(byte[] bytes,
int off,
int len)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||