|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.security.MessageDigestSpi
|
+--java.security.MessageDigest
|
+--cryptix.provider.md.BlockMessageDigest
This is a superclass for message digests that operate internally on blocks of data. It is not intended directly for use by application programmers.
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.4 $
| Inner classes inherited from class java.security.MessageDigest |
java.security.MessageDigest.Delegate |
| Constructor Summary | |
protected |
BlockMessageDigest(java.lang.String algorithm)
Constructs a message digest with the specified algorithm name. |
| Method Summary | |
protected long |
bitcount()
|
protected byte[] |
engineDigest()
SPI: Calculates the final digest. |
protected abstract byte[] |
engineDigest(byte[] data,
int length)
SPI (for BlockMessageDigests only): Calculates the final digest. |
protected abstract int |
engineGetDataLength()
SPI: Returns the length of the block that this hash function operates on. |
protected void |
engineReset()
SPI: Resets the digest. |
protected abstract void |
engineTransform(byte[] data)
SPI (for BlockMessageDigests only): Performs a transformation on the given data, which is always one block long. |
protected void |
engineUpdate(byte b)
SPI: Updates the message digest with a byte of new data. |
protected void |
engineUpdate(byte[] data,
int offset,
int length)
SPI: Updates the message digest with new data. |
| Methods inherited from class java.security.MessageDigest |
clone, digest, digest, digest, getAlgorithm, getDigestLength, getInstance, getInstance, getProvider, isEqual, reset, toString, update, update, update |
| Methods inherited from class java.security.MessageDigestSpi |
engineDigest, engineGetDigestLength |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
protected BlockMessageDigest(java.lang.String algorithm)
algorithm - the standard name of the digest algorithm.| Method Detail |
protected long bitcount()
protected void engineReset()
engineReset
should always call this implementation using super.engineReset().engineReset in class java.security.MessageDigestSpiprotected void engineUpdate(byte b)
engineUpdate in class java.security.MessageDigestSpib - the byte to be added.
protected void engineUpdate(byte[] data,
int offset,
int length)
engineUpdate in class java.security.MessageDigestSpidata - the data to be added.offset - the start of the data in the array.length - the number of bytes of data to add.protected byte[] engineDigest()
engineDigest in class java.security.MessageDigestSpi
protected abstract byte[] engineDigest(byte[] data,
int length)
data[0..length-1] contains the last
incomplete input block. length will be less than
engineDataLength().data - the last incomplete block.length - the length in bytes of the last block.protected abstract void engineTransform(byte[] data)
protected abstract int engineGetDataLength()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||