public static class Checksum.SHA1 extends Object implements Checksum.Hasher
Checksum.Hasher.| Constructor and Description |
|---|
SHA1() |
| Modifier and Type | Method and Description |
|---|---|
void |
reset()
Resets the hasher for further use.
|
byte[] |
sum()
Completes the hash computation by performing final operations such as padding.
|
String |
toString() |
void |
update(byte[] b) |
void |
update(byte[] b,
int off,
int len)
Updates len bytes from the specified byte array starting at offset off to this hasher.
|
public SHA1()
throws MinioException
MinioExceptionpublic void update(byte[] b,
int off,
int len)
Checksum.Hasherupdate in interface Checksum.Hasherpublic void update(byte[] b)
public byte[] sum()
Checksum.Hashersum in interface Checksum.Hasherpublic void reset()
Checksum.Hasherreset in interface Checksum.Hasher