Package com.biglybt.core.util
Class SHA1Hasher
java.lang.Object
com.biglybt.core.util.SHA1Hasher
SHA-1 hasher utility frontend.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static interface
private static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
calculateHash
(byte[] bytes) byte[]
calculateHash
(ByteBuffer buffer) byte[]
void
update
(byte[] data) void
update
(byte[] data, int pos, int len)
-
Field Details
-
use_digest
private static final boolean use_digest -
impl
-
-
Constructor Details
-
SHA1Hasher
public SHA1Hasher()
-
-
Method Details
-
calculateHash
public byte[] calculateHash(byte[] bytes) -
calculateHash
-
update
public void update(byte[] data) -
update
public void update(byte[] data, int pos, int len) -
getDigest
public byte[] getDigest()
-