Package org.kapott.cryptalgs
Class RIPEMD160
java.lang.Object
java.security.MessageDigestSpi
org.kapott.cryptalgs.RIPEMD160
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private int
private int
private int
private static final int[]
private static final int[]
private int
private int
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private int[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
protected int
engineDigest
(byte[] buf, int offset, int len) protected int
protected void
protected void
engineUpdate
(byte input) protected void
engineUpdate
(byte[] input, int offset, int len) private int
f
(byte j, int x, int y, int z) private void
hashit()
private int
K
(byte j) private int
K2
(byte j) private byte
r
(byte j) private byte
r2
(byte j) private int
roll
(int x, byte num) private byte
s
(byte j) private byte
s2
(byte j) Methods inherited from class java.security.MessageDigestSpi
clone, engineUpdate
-
Field Details
-
h0
private int h0 -
h1
private int h1 -
h2
private int h2 -
h3
private int h3 -
h4
private int h4 -
X
private int[] X -
pos
private int pos -
length
private int length -
Ks
private static final int[] Ks -
K2s
private static final int[] K2s -
rs
private static final byte[] rs -
r2s
private static final byte[] r2s -
ss
private static final byte[] ss -
s2s
private static final byte[] s2s
-
-
Constructor Details
-
RIPEMD160
public RIPEMD160()
-
-
Method Details
-
engineDigest
protected byte[] engineDigest()- Specified by:
engineDigest
in classMessageDigestSpi
-
engineDigest
- Overrides:
engineDigest
in classMessageDigestSpi
- Throws:
DigestException
-
engineGetDigestLength
protected int engineGetDigestLength()- Overrides:
engineGetDigestLength
in classMessageDigestSpi
-
engineReset
protected void engineReset()- Specified by:
engineReset
in classMessageDigestSpi
-
engineUpdate
protected void engineUpdate(byte input) - Specified by:
engineUpdate
in classMessageDigestSpi
-
engineUpdate
protected void engineUpdate(byte[] input, int offset, int len) - Specified by:
engineUpdate
in classMessageDigestSpi
-
hashit
private void hashit() -
f
private int f(byte j, int x, int y, int z) -
K
private int K(byte j) -
K2
private int K2(byte j) -
r
private byte r(byte j) -
r2
private byte r2(byte j) -
s
private byte s(byte j) -
s2
private byte s2(byte j) -
roll
private int roll(int x, byte num)
-