com.pheox.jcapi
Class JCAPIMessageDigestDynamic.SHA512

java.lang.Object
  extended by java.security.MessageDigestSpi
      extended by com.pheox.jcapi.JCAPIMessageDigestDynamic
          extended by 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:

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:

Since:
2.0

Nested Class Summary
 
Nested classes/interfaces inherited from class com.pheox.jcapi.JCAPIMessageDigestDynamic
JCAPIMessageDigestDynamic.MD2, JCAPIMessageDigestDynamic.MD4, JCAPIMessageDigestDynamic.MD5, JCAPIMessageDigestDynamic.SHA1, JCAPIMessageDigestDynamic.SHA256, JCAPIMessageDigestDynamic.SHA384, JCAPIMessageDigestDynamic.SHA512
 
Field Summary
static int CALG_SHA_512
           
static int DIGEST_LENGTH
           
 
Constructor Summary
JCAPIMessageDigestDynamic.SHA512()
          Default constructor.
 
Method Summary
 
Methods inherited from class com.pheox.jcapi.JCAPIMessageDigestDynamic
engineDigest, engineDigest, engineGetDigestLength, engineReset, engineUpdate, engineUpdate
 
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
 

Field Detail

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
Constructor Detail

JCAPIMessageDigestDynamic.SHA512

public JCAPIMessageDigestDynamic.SHA512()
Default constructor.

Since:
2.0


Copyright © 2011 Pheox. All Rights Reserved.