Package com.wolfssl.wolfcrypt
Class Sha512
java.lang.Object
com.wolfssl.wolfcrypt.WolfObject
com.wolfssl.wolfcrypt.NativeStruct
com.wolfssl.wolfcrypt.MessageDigest
com.wolfssl.wolfcrypt.Sha512
public class Sha512 extends MessageDigest
Wrapper for the native WolfCrypt Sha512 implementation.
- Version:
- 2.0, March 2017
- Author:
- Moisés Guimarães
-
Field Summary
Fields Modifier and Type Field Description static int
DIGEST_SIZE
static int
TYPE
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description int
digestSize()
protected long
mallocNativeStruct()
protected void
native_final(byte[] hash)
protected void
native_final(java.nio.ByteBuffer hash, int offset)
protected void
native_init()
protected void
native_update(byte[] data, int offset, int len)
protected void
native_update(java.nio.ByteBuffer data, int offset, int len)
Methods inherited from class com.wolfssl.wolfcrypt.MessageDigest
digest, digest, digest, init, releaseNativeStruct, update, update, update, update, update
Methods inherited from class com.wolfssl.wolfcrypt.NativeStruct
finalize, getNativeStruct, setNativeStruct
-
Field Details
-
TYPE
public static final int TYPE- See Also:
- Constant Field Values
-
DIGEST_SIZE
public static final int DIGEST_SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
mallocNativeStruct
protected long mallocNativeStruct() throws java.lang.OutOfMemoryError- Specified by:
mallocNativeStruct
in classNativeStruct
- Throws:
java.lang.OutOfMemoryError
-
native_init
protected void native_init()- Specified by:
native_init
in classMessageDigest
-
native_update
protected void native_update(java.nio.ByteBuffer data, int offset, int len)- Specified by:
native_update
in classMessageDigest
-
native_update
protected void native_update(byte[] data, int offset, int len)- Specified by:
native_update
in classMessageDigest
-
native_final
protected void native_final(java.nio.ByteBuffer hash, int offset)- Specified by:
native_final
in classMessageDigest
-
native_final
protected void native_final(byte[] hash)- Specified by:
native_final
in classMessageDigest
-
digestSize
public int digestSize()- Specified by:
digestSize
in classMessageDigest
-