public abstract class MessageDigestSpi extends Object
Constructor and Description |
---|
MessageDigestSpi() |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Default clone() method performs a "shallow" cloning of the instance.
|
protected abstract byte[] |
engineDigest() |
protected int |
engineDigest(byte[] buf,
int offset,
int len)
method was added in 1.2.
|
protected int |
engineGetDigestLength()
method was added in 1.2.
|
protected abstract void |
engineReset() |
protected abstract void |
engineUpdate(byte input) |
protected abstract void |
engineUpdate(byte[] input,
int offset,
int len) |
public Object clone() throws CloneNotSupportedException
Object
clone
in class Object
CloneNotSupportedException
protected abstract byte[] engineDigest()
protected abstract void engineReset()
protected abstract void engineUpdate(byte input)
protected abstract void engineUpdate(byte[] input, int offset, int len)
protected int engineDigest(byte[] buf, int offset, int len) throws DigestException
buf
- buffer in which to write the digestoffset
- offset within buf
where digest should startlen
- space available to write digestDigestException
- if an arror occurs, in particular if len
is less than the length of the digest or is out of range.protected int engineGetDigestLength()