Class RIPEMD160


  • public final class RIPEMD160
    extends java.security.MessageDigestSpi
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int h0  
      private int h1  
      private int h2  
      private int h3  
      private int h4  
      private static int[] K2s  
      private static int[] Ks  
      private int length  
      private int pos  
      private static byte[] r2s  
      private static byte[] rs  
      private static byte[] s2s  
      private static byte[] ss  
      private int[] X  
    • Constructor Summary

      Constructors 
      Constructor Description
      RIPEMD160()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected byte[] engineDigest()  
      protected int engineDigest​(byte[] buf, int offset, int len)  
      protected int engineGetDigestLength()  
      protected void engineReset()  
      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
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • 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 Detail

      • RIPEMD160

        public RIPEMD160()
    • Method Detail

      • engineDigest

        protected byte[] engineDigest()
        Specified by:
        engineDigest in class java.security.MessageDigestSpi
      • engineDigest

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

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

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

        protected void engineUpdate​(byte input)
        Specified by:
        engineUpdate in class java.security.MessageDigestSpi
      • engineUpdate

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