| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final NativeRef. | |
| private boolean | digestInitializedInContext
Whether the digest struct has been initialized inside EVP_MD_CTX. |
| private final long | evp_md
Holds the EVP_MD for the hashing algorithm, e.g. EVP_get_digestbyname("sha1"); |
| private final byte[] | singleByte
Holds a dummy buffer for writing single bytes to the digest. |
| private final int | size
Holds the output size of the message digest. |
| Access | Constructor and Description |
|---|---|
| private | OpenSSLMessageDigestJDK(long evp_md, int size)
Creates a new OpenSSLMessageDigest instance for the given algorithm name. |
| private | OpenSSLMessageDigestJDK(long evp_md, int size, NativeRef.
|
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides java. |
| protected synchronized byte[] | engineDigest()
Implements abstract java. |
| protected int | engineGetDigestLength()
Overrides java. |
| protected synchronized void | engineReset()
Implements abstract java. |
| protected synchronized void | engineUpdate(byte
the byte to use for the update. input)Implements abstract java. |
| protected synchronized void | engineUpdate(byte[]
the array of bytes to use for the update. input, int the offset to start from in the array of bytes. offset, int the number of bytes to use, starting at
len)offset.Implements abstract java. |
| protected synchronized void | engineUpdate(ByteBuffer
the ByteBuffer input)Overrides java. |
| private synchronized void |
| ctx | back to summary |
|---|---|
| private final NativeRef. | |
| digestInitializedInContext | back to summary |
|---|---|
| private boolean digestInitializedInContext Whether the digest struct has been initialized inside EVP_MD_CTX. | |
| evp_md | back to summary |
|---|---|
| private final long evp_md Holds the EVP_MD for the hashing algorithm, e.g. EVP_get_digestbyname("sha1"); | |
| singleByte | back to summary |
|---|---|
| private final byte[] singleByte Holds a dummy buffer for writing single bytes to the digest. | |
| size | back to summary |
|---|---|
| private final int size Holds the output size of the message digest. | |
| OpenSSLMessageDigestJDK | back to summary |
|---|---|
| private OpenSSLMessageDigestJDK(long evp_md, int size) throws NoSuchAlgorithmException Creates a new OpenSSLMessageDigest instance for the given algorithm name. | |
| OpenSSLMessageDigestJDK | back to summary |
|---|---|
| private OpenSSLMessageDigestJDK(long evp_md, int size, NativeRef. | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Returns a clone if the implementation is cloneable. | |
| engineDigest | back to summary |
|---|---|
| protected synchronized byte[] engineDigest() Implements abstract java. Doc from java. Completes the hash computation by performing final
operations such as padding. Once
| |
| engineGetDigestLength | back to summary |
|---|---|
| protected int engineGetDigestLength() Overrides java. Doc from java. Returns the digest length in bytes. This concrete method has been added to this previously-defined abstract class. (For backwards compatibility, it cannot be abstract.) The default behavior is to return 0. This method may be overridden by a provider to return the digest length.
| |
| engineReset | back to summary |
|---|---|
| protected synchronized void engineReset() Implements abstract java. Doc from java. Resets the digest for further use.
| |
| engineUpdate | back to summary |
|---|---|
| protected synchronized void engineUpdate(byte input) Implements abstract java. Doc from java. Updates the digest using the specified byte.
| |
| engineUpdate | back to summary |
|---|---|
| protected synchronized void engineUpdate(byte[] input, int offset, int len) Implements abstract java. Doc from java. Updates the digest using the specified array of bytes, starting at the specified offset.
| |
| engineUpdate | back to summary |
|---|---|
| protected synchronized void engineUpdate(ByteBuffer input) Overrides java. Doc from java. Update the digest using the specified ByteBuffer. The digest is
updated using the
| |
| ensureDigestInitializedInContext | back to summary |
|---|---|
| private synchronized void ensureDigestInitializedInContext() | |
| Access | Constructor and Description |
|---|---|
| public |
| MD5 | back to summary |
|---|---|
| public MD5() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA1 | back to summary |
|---|---|
| public SHA1() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA224 | back to summary |
|---|---|
| public SHA224() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA256 | back to summary |
|---|---|
| public SHA256() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA384 | back to summary |
|---|---|
| public SHA384() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| SHA512 | back to summary |
|---|---|
| public SHA512() throws NoSuchAlgorithmException | |