|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.MessageDigestSpi
sun.security.provider.SHA5
public class SHA5
This class implements the Secure Hash Algorithm SHA-512 developed by the National Institute of Standards and Technology along with the National Security Agency.
It implements java.security.MessageDigestSpi, and can be used through Java Cryptography Architecture (JCA), as a pluggable MessageDigest implementation.
| Constructor Summary | |
|---|---|
SHA5()
Creates a new SHA object. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns a clone if the implementation is cloneable. |
protected byte[] |
engineDigest()
Computes the final hash and returns the final value as a byte array. |
protected int |
engineDigest(byte[] hashvalue,
int offset,
int len)
Computes the final hash and places the final value in the specified array. |
protected int |
engineGetDigestLength()
Returns the digest length in bytes. |
protected void |
engineReset()
Resets the buffers and hash value to start a new hash. |
protected void |
engineUpdate(byte b)
Update a byte. |
protected void |
engineUpdate(byte[] b,
int off,
int len)
Update a buffer. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SHA5()
| Method Detail |
|---|
protected int engineGetDigestLength()
MessageDigestSpiThis concrete method has been added to this previously-defined abstract class. (For backwards compatibility, it cannot be abstract.)
The default behavior is to return 0.
This method may be overridden by a provider to return the digest length.
engineGetDigestLength in class MessageDigestSpiprotected void engineUpdate(byte b)
engineUpdate in class MessageDigestSpib - the byte
protected void engineUpdate(byte[] b,
int off,
int len)
engineUpdate in class MessageDigestSpib - the data to be updated.off - the start offset in the datalen - the number of bytes to be updated.protected void engineReset()
engineReset in class MessageDigestSpiprotected byte[] engineDigest()
engineDigest in class MessageDigestSpi
protected int engineDigest(byte[] hashvalue,
int offset,
int len)
throws DigestException
engineDigest in class MessageDigestSpihashvalue - buffer to hold the digestoffset - offset for storing the digestlen - length of the buffer
DigestException - if an error occurs.public Object clone()
MessageDigestSpi
clone in class MessageDigestSpiCloneable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||