Class SHA1Hasher.LocalImpl
java.lang.Object
com.biglybt.core.util.SHA1Hasher.LocalImpl
- All Implemented Interfaces:
SHA1Hasher.Impl
- Enclosing class:
SHA1Hasher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]calculateHash(byte[] bytes) byte[]calculateHash(ByteBuffer buffer) byte[]voidupdate(byte[] data) voidupdate(byte[] data, int pos, int len) voidupdate(ByteBuffer buffer)
-
Field Details
-
sha1
-
-
Constructor Details
-
LocalImpl
private LocalImpl()
-
-
Method Details
-
calculateHash
public byte[] calculateHash(byte[] bytes) - Specified by:
calculateHashin interfaceSHA1Hasher.Impl
-
calculateHash
- Specified by:
calculateHashin interfaceSHA1Hasher.Impl
-
update
public void update(byte[] data) - Specified by:
updatein interfaceSHA1Hasher.Impl
-
update
public void update(byte[] data, int pos, int len) - Specified by:
updatein interfaceSHA1Hasher.Impl
-
update
-
getDigest
public byte[] getDigest()- Specified by:
getDigestin interfaceSHA1Hasher.Impl
-