Package com.biglybt.core.util
Class SHA1Hasher
- java.lang.Object
-
- com.biglybt.core.util.SHA1Hasher
-
public final class SHA1Hasher extends java.lang.Object
SHA-1 hasher utility frontend.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SHA1Hasher.DigestImpl
private static interface
SHA1Hasher.Impl
private static class
SHA1Hasher.LocalImpl
-
Field Summary
Fields Modifier and Type Field Description private SHA1Hasher.Impl
impl
private static boolean
use_digest
-
Constructor Summary
Constructors Constructor Description SHA1Hasher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
calculateHash(byte[] bytes)
byte[]
calculateHash(java.nio.ByteBuffer buffer)
byte[]
getDigest()
void
update(byte[] data)
void
update(byte[] data, int pos, int len)
-
-
-
Field Detail
-
use_digest
private static final boolean use_digest
-
impl
private final SHA1Hasher.Impl impl
-
-