|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.MessageDigestSpi
org.jboss.crypto.digest.SHAReverseInterleave
public class SHAReverseInterleave
An alternate SHA Interleave algorithm as implemented in the SRP distribution. This version reverses the even and odd byte streams before performing the SHA digest. This product includes software developed by Tom Wu and Eugene Jhong for the SRP Distribution (http://srp.stanford.edu/srp/).
Constructor Summary | |
---|---|
SHAReverseInterleave()
Creates a new instance of SHAReverseInterleave |
Method Summary | |
---|---|
protected byte[] |
engineDigest()
Completes the digest computation by performing final operations such as padding. |
protected int |
engineGetDigestLength()
|
protected void |
engineReset()
Resets the digest for further use. |
protected void |
engineUpdate(byte input)
Updates the digest using the specified byte. |
protected void |
engineUpdate(byte[] input,
int offset,
int len)
Updates the digest using the specified array of bytes, starting at the specified offset. |
Methods inherited from class java.security.MessageDigestSpi |
---|
clone, engineDigest, engineUpdate |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SHAReverseInterleave()
ProviderException
- thrown if MessageDigest.getInstance("SHA")
throws a NoSuchAlgorithmException.Method Detail |
---|
protected int engineGetDigestLength()
engineGetDigestLength
in class MessageDigestSpi
protected byte[] engineDigest()
engineDigest
has
been called, the engine should be reset (see
engineReset
).
Resetting is the responsibility of the
engine implementor.
engineDigest
in class MessageDigestSpi
protected void engineReset()
engineReset
in class MessageDigestSpi
protected void engineUpdate(byte input)
engineUpdate
in class MessageDigestSpi
input
- the byte to use for the update.protected void engineUpdate(byte[] input, int offset, int len)
engineUpdate
in class MessageDigestSpi
input
- the array of bytes to use for the update.offset
- the offset to start from in the array of bytes.len
- the input of bytes to use, starting at
offset
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |