Package com.biglybt.core.util
Class SHA1Hasher.DigestImpl
java.lang.Object
com.biglybt.core.util.SHA1Hasher.DigestImpl
- 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[]
void
update
(byte[] data) void
update
(byte[] data, int pos, int len)
-
Field Details
-
md
-
-
Constructor Details
-
DigestImpl
- Throws:
NoSuchAlgorithmException
-
-
Method Details
-
calculateHash
public byte[] calculateHash(byte[] bytes) - Specified by:
calculateHash
in interfaceSHA1Hasher.Impl
-
calculateHash
- Specified by:
calculateHash
in interfaceSHA1Hasher.Impl
-
update
public void update(byte[] data) - Specified by:
update
in interfaceSHA1Hasher.Impl
-
update
public void update(byte[] data, int pos, int len) - Specified by:
update
in interfaceSHA1Hasher.Impl
-
getDigest
public byte[] getDigest()- Specified by:
getDigest
in interfaceSHA1Hasher.Impl
-