Class SHA1Constants

java.lang.Object
org.apache.harmony.security.provider.crypto.SHA1Constants

public final class SHA1Constants
extends Object
This interface contains :
- a set of constant values, H0-H4, defined in "SECURE HASH STANDARD", FIPS PUB 180-2 ;
- implementation constant values to use in classes using SHA-1 algorithm.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static int BYTES_OFFSET
    offset in buffer to store number of bytes in 0-15 word frame
    static int DIGEST_LENGTH
    # of bytes in H0-H4 words;
    in this implementation # is set to 20 (in general # varies from 1 to 20)
    static int H0
    constant defined in "SECURE HASH STANDARD"
    static int H1
    constant defined in "SECURE HASH STANDARD"
    static int H2
    constant defined in "SECURE HASH STANDARD"
    static int H3
    constant defined in "SECURE HASH STANDARD"
    static int H4
    constant defined in "SECURE HASH STANDARD"
    static int HASH_OFFSET
    offset in buffer to store current hash value
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • H0

      public static final int H0
      constant defined in "SECURE HASH STANDARD"
      See Also:
      Constant Field Values
    • H1

      public static final int H1
      constant defined in "SECURE HASH STANDARD"
      See Also:
      Constant Field Values
    • H2

      public static final int H2
      constant defined in "SECURE HASH STANDARD"
      See Also:
      Constant Field Values
    • H3

      public static final int H3
      constant defined in "SECURE HASH STANDARD"
      See Also:
      Constant Field Values
    • H4

      public static final int H4
      constant defined in "SECURE HASH STANDARD"
      See Also:
      Constant Field Values
    • BYTES_OFFSET

      public static final int BYTES_OFFSET
      offset in buffer to store number of bytes in 0-15 word frame
      See Also:
      Constant Field Values
    • HASH_OFFSET

      public static final int HASH_OFFSET
      offset in buffer to store current hash value
      See Also:
      Constant Field Values
    • DIGEST_LENGTH

      public static final int DIGEST_LENGTH
      # of bytes in H0-H4 words;
      in this implementation # is set to 20 (in general # varies from 1 to 20)
      See Also:
      Constant Field Values