Beispiel #1
0
 // MessageDigestImpl ctor
 internal MessageDigestImpl(MessageDigestSpi messageDigestSpi,
                            Provider provider, String algorithm) :
     base(algorithm)
 {
     base.provider = provider;
     spiImpl       = messageDigestSpi;
 }
Beispiel #2
0
            // Returns a clone if the spiImpl is cloneable
            public override Object clone()
            {//throws CloneNotSupportedException {
                if (spiImpl is java.lang.Cloneable)
                {
                    MessageDigestSpi spi = (MessageDigestSpi)spiImpl.clone();
                    return(new MessageDigestImpl(spi, getProvider(), getAlgorithm()));
                }

                throw new java.lang.CloneNotSupportedException();
            }
Beispiel #3
0
 // MessageDigestImpl ctor
 internal MessageDigestImpl(MessageDigestSpi messageDigestSpi,
         Provider provider, String algorithm)
     : base(algorithm)
 {
     base.provider = provider;
     spiImpl = messageDigestSpi;
 }