| java.lang.Object java.security.MessageDigestSpi org.jboss.crypto.digest.SHAReverseInterleave
SHAReverseInterleave | public class SHAReverseInterleave extends MessageDigestSpi (Code) | | 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/).
author: Scott.Stark@jboss.org version: $Revision: 57203 $ |
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. |
SHAReverseInterleave | public SHAReverseInterleave()(Code) | | Creates a new instance of SHAReverseInterleave
exception: ProviderException - thrown if MessageDigest.getInstance("SHA")throws a NoSuchAlgorithmException. |
engineDigest | protected byte[] engineDigest()(Code) | | Completes the digest computation by performing final
operations such as padding. Once engineDigest has
been called, the engine should be reset (see
SHAReverseInterleave.engineReset() engineReset ).
Resetting is the responsibility of the
engine implementor.
the array of bytes for the resulting digest value. |
engineGetDigestLength | protected int engineGetDigestLength()(Code) | | |
engineReset | protected void engineReset()(Code) | | Resets the digest for further use.
|
engineUpdate | protected void engineUpdate(byte input)(Code) | | Updates the digest using the specified byte.
Parameters: input - the byte to use for the update. |
engineUpdate | protected void engineUpdate(byte[] input, int offset, int len)(Code) | | Updates the digest using the specified array of bytes,
starting at the specified offset.
Parameters: input - the array of bytes to use for the update. Parameters: offset - the offset to start from in the array of bytes. Parameters: len - the input of bytes to use, starting atoffset . |
|
|