public final class Ssl3ShaMd5Capi extends CapiDigest
An instance of this algorithm can be obtained using the Java Cryptography
Architecture (JCA), by requesting an 'SSL3-SHAMD5CAPI' message digest from
the Entrust
cryptographic service provider. This can be done using the following call:
MessageDigest.getInstance("SSL3-SHAMD5CAPI", "Entrust");| Constructor and Description |
|---|
Ssl3ShaMd5Capi()
The constructor; creates a new instance of the SSL3-SHAMD5 message digest
algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeHash()
Closes any open handles to native CAPI objects referenced by this hash
object.
|
void |
createCapiHash(CryptProvider provider)
Create the internal native CAPI hasher.
|
protected byte[] |
engineDigest()
Completes the hash computation by performing final operations such as
padding.
|
protected void |
engineReset()
Resets the digest for further use.
|
protected void |
engineUpdate(byte input)
Updates the digest using the specified byte.
|
protected void |
engineUpdate(byte[] input,
int offset,
int length)
Updates the digest using the specified array of bytes, starting at the
specified offset.
|
engineGetDigestLength, getHashpublic Ssl3ShaMd5Capi()
Applications should not use this constructor, instead the message digest
algorithm should be requested from the appropriate JCA/JCE cryptographic
service provider as follows:
MessageDigest.getInstance("SSL3-SHAMD5CAPI", "Entrust").
public void closeHash()
CapiDigestcloseHash in class CapiDigestpublic void createCapiHash(CryptProvider provider) throws CapiException
CapiDigestcreateCapiHash in class CapiDigestprovider - [FIPS 140-2 control output] the CAPI CSP which will provide
the native hashing capability.CapiException - [FIPS 140-2 status output] if the hashing algorithm is not
SHA1 or MD5, or if the CSP does not support the hash
algorithm.protected void engineUpdate(byte input)
CapiDigestengineUpdate in class CapiDigestinput - [FIPS 140-2 data input] the byte to use for the update.protected void engineUpdate(byte[] input,
int offset,
int length)
CapiDigestengineUpdate in class CapiDigestinput - [FIPS 140-2 data input] the array of bytes to use for the
update.offset - [FIPS 140-2 data input] the offset to start from in the array
of bytes.length - [FIPS 140-2 data input] the number of bytes to use, starting
at offset.protected final byte[] engineDigest()
CapiDigestengineDigest has been called, the engine
should be reset (see engineReset). Resetting is
the responsibility of the engine implementor.
engineDigest in class CapiDigestprotected void engineReset()
CapiDigestengineReset in class CapiDigest