org.python.modules

## Class SHA224Digest

- java.lang.Object
- - java.security.MessageDigestSpi
  - - java.security.MessageDigest
    - - org.python.modules.SHA224Digest

- Deprecated.
  use the SHA224 implementation provided in Java 8 and later

      @Deprecated
      public class SHA224Digest
      extends java.security.MessageDigest

  SHA-224 as described in RFC 3874. This introduces the SHA224 Digest which has been omitted from the JDK `java.security`.

  This implementation has been borrowed from the Bouncy Castle implementation of SHA2 algorithms.

  Since they are MIT Licensed, they are compatible with this project. Their mandatory copyright notice follows.

       Copyright (c) 2000 - 2011 The Legion Of The Bouncy Castle
       (http://www.bouncycastle.org)

       Permission is hereby granted, free of charge, to any person obtaining a copy
       of this software and associated documentation files (the "Software"), to deal
       in the Software without restriction, including without limitation the rights
       to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
       copies of the Software, and to permit persons to whom the Software is
       furnished to do so, subject to the following conditions:

       The above copyright notice and this permission notice shall be included in
       all copies or substantial portions of the Software.

       THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
       IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
       FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
       AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
       LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
       OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
       SOFTWARE.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SHA224Digest()` Deprecated. Standard constructor
    `SHA224Digest(SHA224Digest t)` Deprecated. Copy constructor.

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `static int` | `bigEndianToInt(byte[] bs, int off)` Deprecated.
    `static long` | `bigEndianToLong(byte[] bs, int off)` Deprecated.
    `java.lang.Object` | `clone()` Deprecated.
    `int` | `doFinal(byte[] out, int outOff)` Deprecated.
    `void` | `finish()` Deprecated.
    `java.lang.String` | `getAlgorithmName()` Deprecated.
    `int` | `getByteLength()` Deprecated.
    `int` | `getDigestSize()` Deprecated.
    `static void` | `intToBigEndian(int n, byte[] bs, int off)` Deprecated.
    `static void` | `longToBigEndian(long n, byte[] bs, int off)` Deprecated.
    `void` | `reset()` Deprecated.
    `void` | `update(byte in)` Deprecated.
    `void` | `update(byte[] in, int inOff, int len)` Deprecated.

    - ### Methods inherited from class java.security.MessageDigest

      `digest, digest, digest, getAlgorithm, getDigestLength, getInstance, getInstance, getInstance, getProvider, isEqual, toString, update, update`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SHA224Digest

          public SHA224Digest()

      Deprecated.
      Standard constructor

    - #### SHA224Digest

          public SHA224Digest(SHA224Digest t)

      Deprecated.
      Copy constructor. This will copy the state of the provided message digest.

  - ### Method Detail

    - #### update

          public void update(byte in)

      Deprecated.
      Overrides:
        `update` in class `java.security.MessageDigest`

    - #### update

          public void update(byte[] in,
                             int inOff,
                             int len)

      Deprecated.
      Overrides:
        `update` in class `java.security.MessageDigest`

    - #### finish

          public void finish()

      Deprecated.

    - #### getByteLength

          public int getByteLength()

      Deprecated.

    - #### getAlgorithmName

          public java.lang.String getAlgorithmName()

      Deprecated.

    - #### getDigestSize

          public int getDigestSize()

      Deprecated.

    - #### doFinal

          public int doFinal(byte[] out,
                             int outOff)

      Deprecated.

    - #### reset

          public void reset()

      Deprecated.
      Overrides:
        `reset` in class `java.security.MessageDigest`

    - #### clone

          public java.lang.Object clone()
                                 throws java.lang.CloneNotSupportedException

      Deprecated.
      Overrides:
        `clone` in class `java.security.MessageDigest`
      Throws:
        `java.lang.CloneNotSupportedException`

    - #### bigEndianToInt

          public static int bigEndianToInt(byte[] bs,
                                           int off)

      Deprecated.

    - #### intToBigEndian

          public static void intToBigEndian(int n,
                                            byte[] bs,
                                            int off)

      Deprecated.

    - #### bigEndianToLong

          public static long bigEndianToLong(byte[] bs,
                                             int off)

      Deprecated.

    - #### longToBigEndian

          public static void longToBigEndian(long n,
                                             byte[] bs,
                                             int off)

      Deprecated.

Jython homepage