Modifier and Type | Field and Description |
---|---|
private long |
currentLen |
private int |
currentPos |
private int |
H0 |
private int |
H1 |
private int |
H2 |
private int |
H3 |
private int |
H4 |
private int[] |
w |
Constructor and Description |
---|
SHA1() |
Modifier and Type | Method and Description |
---|---|
void |
digest(byte[] out) |
void |
digest(byte[] out,
int off) |
int |
getDigestLength() |
static void |
main(java.lang.String[] args) |
private void |
perform() |
private void |
putInt(byte[] b,
int pos,
int val) |
void |
reset() |
private static java.lang.String |
toHexString(byte[] b) |
void |
update(byte b) |
void |
update(byte[] b) |
void |
update(byte[] b,
int off,
int len) |
private int H0
private int H1
private int H2
private int H3
private int H4
private final int[] w
private int currentPos
private long currentLen
public final int getDigestLength()
getDigestLength
in interface Digest
public final void update(byte[] b, int off, int len)
private final void putInt(byte[] b, int pos, int val)
private final void perform()
private static final java.lang.String toHexString(byte[] b)
public static void main(java.lang.String[] args)