Package org.kapott.cryptalgs
Class RIPEMD160
java.lang.Object
java.security.MessageDigestSpi
org.kapott.cryptalgs.RIPEMD160
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate intprivate intprivate intprivate static final int[]private static final int[]private intprivate intprivate 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 intengineDigest(byte[] buf, int offset, int len) protected intprotected voidprotected voidengineUpdate(byte input) protected voidengineUpdate(byte[] input, int offset, int len) private intf(byte j, int x, int y, int z) private voidhashit()private intK(byte j) private intK2(byte j) private byter(byte j) private byter2(byte j) private introll(int x, byte num) private bytes(byte j) private bytes2(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:
engineDigestin classMessageDigestSpi
-
engineDigest
- Overrides:
engineDigestin classMessageDigestSpi- Throws:
DigestException
-
engineGetDigestLength
protected int engineGetDigestLength()- Overrides:
engineGetDigestLengthin classMessageDigestSpi
-
engineReset
protected void engineReset()- Specified by:
engineResetin classMessageDigestSpi
-
engineUpdate
protected void engineUpdate(byte input) - Specified by:
engineUpdatein classMessageDigestSpi
-
engineUpdate
protected void engineUpdate(byte[] input, int offset, int len) - Specified by:
engineUpdatein 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)
-