public class BCMessageDigest extends MessageDigest
| Modifier | Constructor and Description |
|---|---|
protected |
BCMessageDigest(Digest digest) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
engineDigest()
Computes and returns the final hash value for this
MessageDigestSpi. |
void |
engineReset()
Puts this
MessageDigestSpi back in an initial state, such that it
is ready to compute a one way hash value. |
void |
engineUpdate(byte input)
Updates this
MessageDigestSpi using the given byte. |
void |
engineUpdate(byte[] input,
int offset,
int len)
Updates this
MessageDigestSpi using the given byte[]. |
digest, digest, digest, getAlgorithm, getDigestLength, getInstance, getInstance, getInstance, getProvider, isEqual, reset, toString, update, update, update, updateclone, engineDigest, engineGetDigestLength, engineUpdateprotected Digest digest
protected BCMessageDigest(Digest digest)
public void engineReset()
MessageDigestSpiMessageDigestSpi back in an initial state, such that it
is ready to compute a one way hash value.engineReset in class MessageDigestSpipublic void engineUpdate(byte input)
MessageDigestSpiMessageDigestSpi using the given byte.engineUpdate in class MessageDigestSpiinput - the byte to update this MessageDigestSpi with.MessageDigestSpi.engineReset()public void engineUpdate(byte[] input,
int offset,
int len)
MessageDigestSpiMessageDigestSpi using the given byte[].engineUpdate in class MessageDigestSpiinput - the byte array.offset - the index of the first byte in input to update from.len - the number of bytes in input to update from.public byte[] engineDigest()
MessageDigestSpiMessageDigestSpi. After the digest is computed the receiver is
reset.engineDigest in class MessageDigestSpiMessageDigestSpi.engineReset()