Package 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
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
ConstructorDescriptionDeprecated.Standard constructorDeprecated.Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
bigEndianToInt
(byte[] bs, int off) Deprecated.static long
bigEndianToLong
(byte[] bs, int off) Deprecated.clone()
Deprecated.int
doFinal
(byte[] out, int outOff) Deprecated.void
finish()
Deprecated.Deprecated.int
Deprecated.int
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
-
Constructor Details
-
SHA224Digest
public SHA224Digest()Deprecated.Standard constructor -
SHA224Digest
Deprecated.Copy constructor. This will copy the state of the provided message digest.
-
-
Method Details
-
update
public void update(byte in) Deprecated.- Overrides:
update
in classMessageDigest
-
update
public void update(byte[] in, int inOff, int len) Deprecated.- Overrides:
update
in classMessageDigest
-
finish
public void finish()Deprecated. -
getByteLength
public int getByteLength()Deprecated. -
getAlgorithmName
Deprecated. -
getDigestSize
public int getDigestSize()Deprecated. -
doFinal
public int doFinal(byte[] out, int outOff) Deprecated. -
reset
public void reset()Deprecated.- Overrides:
reset
in classMessageDigest
-
clone
Deprecated.- Overrides:
clone
in classMessageDigest
- Throws:
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.
-