com.ibm.crypto.fips.provider

Class FullHardwareSHA

  • java.lang.Object
    • java.security.MessageDigestSpi
      • com.ibm.crypto.fips.provider.FullHardwareSHA
  • All Implemented Interfaces:
    java.lang.Cloneable


    public final class FullHardwareSHA
    extends java.security.MessageDigestSpi
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected java.lang.String alg 
    • Constructor Summary

      Constructors 
      Constructor and Description
      FullHardwareSHA()
      Standard constructor, creates a new SHA instance, allocates its buffers from the heap.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.Object clone()
      Clones this object.
      protected byte[] engineDigest() 
      protected int engineDigest(byte[] buf, int offset, int len) 
      protected int engineGetDigestBlockSize() 
      protected int engineGetDigestLength()
      Return the digest length in bytes
      protected void engineReset() 
      protected void engineUpdate(byte b)
      Update adds the passed byte to the digested data.
      protected void engineUpdate(byte[] input, int offset, int len)
      Update adds the selected part of an array of bytes to the digest.
      protected byte[] internalDigest() 
      protected int internalDigest(byte[] buf, int offset, int len) 
      protected int internalGetDigestBlockSize() 
      protected int internalGetDigestLength()
      Return the digest length in bytes
      protected void internalReset() 
      protected void internalUpdate(byte b)
      Update adds the passed byte to the digested data.
      protected void internalUpdate(byte[] input, int offset, int len)
      Update adds the selected part of an array of bytes to the digest.
      static boolean isSupportedByHardware(java.lang.String algorithm) 
      • Methods inherited from class java.security.MessageDigestSpi

        engineUpdate
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • alg

        protected java.lang.String alg
    • Constructor Detail

      • FullHardwareSHA

        public FullHardwareSHA()
        Standard constructor, creates a new SHA instance, allocates its buffers from the heap.
    • Method Detail

      • engineGetDigestBlockSize

        protected int engineGetDigestBlockSize()
      • internalGetDigestBlockSize

        protected int internalGetDigestBlockSize()
      • engineReset

        protected void engineReset()
        Specified by:
        engineReset in class java.security.MessageDigestSpi
      • internalReset

        protected void internalReset()
      • engineGetDigestLength

        protected int engineGetDigestLength()
        Return the digest length in bytes
        Overrides:
        engineGetDigestLength in class java.security.MessageDigestSpi
      • internalGetDigestLength

        protected int internalGetDigestLength()
        Return the digest length in bytes
      • engineUpdate

        protected void engineUpdate(byte b)
        Update adds the passed byte to the digested data.
        Specified by:
        engineUpdate in class java.security.MessageDigestSpi
      • internalUpdate

        protected void internalUpdate(byte b)
        Update adds the passed byte to the digested data.
      • engineUpdate

        protected void engineUpdate(byte[] input,
                        int offset,
                        int len)
        Update adds the selected part of an array of bytes to the digest. This version is more efficient than the byte-at-a-time version; it avoids data copies and reduces per-byte call overhead.
        Specified by:
        engineUpdate in class java.security.MessageDigestSpi
      • internalUpdate

        protected void internalUpdate(byte[] input,
                          int offset,
                          int len)
        Update adds the selected part of an array of bytes to the digest. This version is more efficient than the byte-at-a-time version; it avoids data copies and reduces per-byte call overhead.
      • engineDigest

        protected byte[] engineDigest()
        Specified by:
        engineDigest in class java.security.MessageDigestSpi
      • internalDigest

        protected byte[] internalDigest()
      • engineDigest

        protected int engineDigest(byte[] buf,
                       int offset,
                       int len)
                            throws java.security.DigestException
        Overrides:
        engineDigest in class java.security.MessageDigestSpi
        Throws:
        java.security.DigestException
      • internalDigest

        protected int internalDigest(byte[] buf,
                         int offset,
                         int len)
                              throws java.security.DigestException
        Throws:
        java.security.DigestException
      • clone

        public java.lang.Object clone()
        Clones this object.
        Overrides:
        clone in class java.security.MessageDigestSpi
      • isSupportedByHardware

        public static boolean isSupportedByHardware(java.lang.String algorithm)
© Portions Copyright 2003, 2014, 2015, 2016 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2014 Oracle and/or its affiliates. All rights reserved.