com.pheox.jcapi
Class JCAPIMessageDigestDynamic.SHA512
java.lang.Object
java.security.MessageDigestSpi
com.pheox.jcapi.JCAPIMessageDigestDynamic
com.pheox.jcapi.JCAPIMessageDigestDynamic.SHA512
- Enclosing class:
- JCAPIMessageDigestDynamic
public static final class JCAPIMessageDigestDynamic.SHA512
- extends JCAPIMessageDigestDynamic
The SHA-512 (FIPS 180-2) hashing class.
This algorithm produces a 512-bit (64 bytes) message digest for given input data.
All message digest cryptographic operations are performed by a
native MS CAPI CSP, which makes these operations very fast.
An instance of this class must be created by the JCE framework only.
JCAPI provide support for the following algorithm aliases for SHA-512:
- SHA-512
- SHA512
- 2.16.840.1.101.3.4.2.3
This class uses the default MS CAPI CSP (see method JCAPIProperties.getRSACSP())
and the provider type of the default MS CAPI CSP (see method
JCAPIProperties.getCachedProviderTypeByCSP(String)).
Here is an example of how to create a SHA-512 based JCAPI message digest
instance through the JCE framework:
MessageDigest md = MessageDigest.getInstance("SHA-512", "JCAPI");
To learn more about how this class can be used, please look at the following example
programs that can be found in JCAPI's examples directory, by default located in
C:\<application data directory>\JCAPI\examples:
messagedigest\MessageDigestSHA512.java
cryptofactory\messagedigest\DynamicMessageDigestSHA512.java
- Since:
- 2.0
| Methods inherited from class java.security.MessageDigestSpi |
clone, engineUpdate |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CALG_SHA_512
public static final int CALG_SHA_512
- See Also:
- Constant Field Values
DIGEST_LENGTH
public static final int DIGEST_LENGTH
- See Also:
- Constant Field Values
JCAPIMessageDigestDynamic.SHA512
public JCAPIMessageDigestDynamic.SHA512()
- Default constructor.
- Since:
- 2.0
Copyright © 2011 Pheox. All Rights Reserved.