public class OpenSSLMessageDigestJDK extends MessageDigestSpi implements Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenSSLMessageDigestJDK.MD5 |
static class |
OpenSSLMessageDigestJDK.SHA1 |
static class |
OpenSSLMessageDigestJDK.SHA224 |
static class |
OpenSSLMessageDigestJDK.SHA256 |
static class |
OpenSSLMessageDigestJDK.SHA384 |
static class |
OpenSSLMessageDigestJDK.SHA512 |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates and returns a copy of this
Object. |
protected byte[] |
engineDigest()
Computes and returns the final hash value for this
MessageDigestSpi. |
protected int |
engineGetDigestLength()
Returns the engine digest length in bytes.
|
protected void |
engineReset()
Puts this
MessageDigestSpi back in an initial state, such that it
is ready to compute a one way hash value. |
protected void |
engineUpdate(byte input)
Updates this
MessageDigestSpi using the given byte. |
protected void |
engineUpdate(byte[] input,
int offset,
int len)
Updates this
MessageDigestSpi using the given byte[]. |
protected void |
engineUpdate(ByteBuffer input)
Updates this
MessageDigestSpi using the given input. |
engineDigestprotected void engineReset()
MessageDigestSpiMessageDigestSpi back in an initial state, such that it
is ready to compute a one way hash value.engineReset in class MessageDigestSpiprotected int engineGetDigestLength()
MessageDigestSpi0 is returned.engineGetDigestLength in class MessageDigestSpi0.protected void engineUpdate(byte input)
MessageDigestSpiMessageDigestSpi using the given byte.engineUpdate in class MessageDigestSpiinput - the byte to update this MessageDigestSpi with.MessageDigestSpi.engineReset()protected 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.protected void engineUpdate(ByteBuffer input)
MessageDigestSpiMessageDigestSpi using the given input.engineUpdate in class MessageDigestSpiinput - the ByteBuffer.protected byte[] engineDigest()
MessageDigestSpiMessageDigestSpi. After the digest is computed the receiver is
reset.engineDigest in class MessageDigestSpiMessageDigestSpi.engineReset()public Object clone()
ObjectObject. The default
implementation returns a so-called "shallow" copy: It creates a new
instance of the same class and then copies the field values (including
object references) from this instance to the new instance. A "deep" copy,
in contrast, would also recursively clone nested objects. A subclass that
needs to implement this kind of cloning should call super.clone()
to create the new instance and then create deep copies of the nested,
mutable objects.clone in class MessageDigestSpi