public class OpenSSLDigest extends Object implements ExtendedDigest
BcKeyStoreSpi to be able to use it.| Modifier and Type | Class and Description |
|---|---|
static class |
OpenSSLDigest.MD5 |
static class |
OpenSSLDigest.SHA1 |
static class |
OpenSSLDigest.SHA224 |
static class |
OpenSSLDigest.SHA256 |
static class |
OpenSSLDigest.SHA384 |
static class |
OpenSSLDigest.SHA512 |
| Constructor and Description |
|---|
OpenSSLDigest(String algorithm,
int byteSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
doFinal(byte[] out,
int outOff)
close the digest, producing the final digest value.
|
String |
getAlgorithmName()
return the algorithm name
|
int |
getByteLength()
Return the size in bytes of the internal buffer the digest applies it's compression
function to.
|
int |
getDigestSize()
return the size, in bytes, of the digest produced by this message digest.
|
void |
reset()
reset the digest back to it's initial state.
|
void |
update(byte in)
update the message digest with a single byte.
|
void |
update(byte[] in,
int inOff,
int len)
update the message digest with a block of bytes.
|
public OpenSSLDigest(String algorithm, int byteSize)
public String getAlgorithmName()
DigestgetAlgorithmName in interface Digestpublic int getDigestSize()
DigestgetDigestSize in interface Digestpublic int getByteLength()
ExtendedDigestgetByteLength in interface ExtendedDigestpublic void reset()
Digestpublic void update(byte in)
Digestpublic void update(byte[] in,
int inOff,
int len)
Digestpublic int doFinal(byte[] out,
int outOff)
Digest