Class RIPEMD160

java.lang.Object
java.security.MessageDigestSpi
org.kapott.cryptalgs.RIPEMD160

public final class RIPEMD160 extends MessageDigestSpi
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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
     
    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

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class MessageDigestSpi
    • engineDigest

      protected int engineDigest(byte[] buf, int offset, int len) throws DigestException
      Overrides:
      engineDigest in class MessageDigestSpi
      Throws:
      DigestException
    • engineGetDigestLength

      protected int engineGetDigestLength()
      Overrides:
      engineGetDigestLength in class MessageDigestSpi
    • engineReset

      protected void engineReset()
      Specified by:
      engineReset in class MessageDigestSpi
    • engineUpdate

      protected void engineUpdate(byte input)
      Specified by:
      engineUpdate in class MessageDigestSpi
    • engineUpdate

      protected void engineUpdate(byte[] input, int offset, int len)
      Specified by:
      engineUpdate in class MessageDigestSpi
    • 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)