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
private static class SHA1Hasher.DigestImpl extends java.lang.Object implements SHA1Hasher.Impl
-
-
Field Summary
Fields Modifier and Type Field Description private java.security.MessageDigest
md
-
Constructor Summary
Constructors Modifier Constructor Description private
DigestImpl()
-
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)
-
-
-
Method Detail
-
calculateHash
public byte[] calculateHash(byte[] bytes)
- Specified by:
calculateHash
in interfaceSHA1Hasher.Impl
-
calculateHash
public byte[] calculateHash(java.nio.ByteBuffer buffer)
- 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
-
-