Class BCMessageDigest

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.crypto.Digest digest  
      private static java.util.Map<java.lang.String,​Factory<org.bouncycastle.crypto.Digest>> lookup  
    • Constructor Summary

      Constructors 
      Constructor Description
      BCMessageDigest​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] digest()  
      private org.bouncycastle.crypto.Digest getDigest​(java.lang.String name)  
      int getDigestLength()  
      void reset()  
      void update​(byte b)  
      void update​(byte[] bytes)  
      void update​(byte[] bytes, int offset, int len)  
      • Methods inherited from class java.lang.Object

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

      • lookup

        private static java.util.Map<java.lang.String,​Factory<org.bouncycastle.crypto.Digest>> lookup
      • digest

        private final org.bouncycastle.crypto.Digest digest
    • Constructor Detail

      • BCMessageDigest

        BCMessageDigest​(java.lang.String name)
    • Method Detail

      • getDigest

        private org.bouncycastle.crypto.Digest getDigest​(java.lang.String name)
      • update

        public void update​(byte[] bytes)
        Specified by:
        update in interface MessageDigest
      • update

        public void update​(byte[] bytes,
                           int offset,
                           int len)
        Specified by:
        update in interface MessageDigest