Inheritance: GeneralDigest
Exemplo n.º 1
0
        private void CopyIn(RipeMD160Digest t)
        {
            base.CopyIn(t);

            H0 = t.H0;
            H1 = t.H1;
            H2 = t.H2;
            H3 = t.H3;
            H4 = t.H4;

            Array.Copy(t.X, 0, X, 0, t.X.Length);
            xOff = t.xOff;
        }
Exemplo n.º 2
0
		private void CopyIn(RipeMD160Digest t)
		{
			base.CopyIn(t);

			H0 = t.H0;
			H1 = t.H1;
			H2 = t.H2;
			H3 = t.H3;
			H4 = t.H4;

			Array.Copy(t.X, 0, X, 0, t.X.Length);
			xOff = t.xOff;
		}
Exemplo n.º 3
0
        private void CopyIn(RipeMD160Digest t)
        {
            base.CopyIn(t);

            this.H0 = t.H0;
            this.H1 = t.H1;
            this.H2 = t.H2;
            this.H3 = t.H3;
            this.H4 = t.H4;

            Array.Copy(t.X, 0, this.X, 0, t.X.Length);
            this.xOff = t.xOff;
        }
Exemplo n.º 4
0
		public static byte[] RIPEMD160(byte[] data, int offset, int count)
		{
#if USEBC || WINDOWS_UWP
			RipeMD160Digest ripemd = new RipeMD160Digest();
			ripemd.BlockUpdate(data, offset, count);
			byte[] rv = new byte[20];
			ripemd.DoFinal(rv, 0);
			return rv;
#else
			using(var ripm = new RIPEMD160Managed())
			{
				return ripm.ComputeHash(data, offset, count);
			}
#endif
		}
Exemplo n.º 5
0
        public override void Reset(IMemoable other)
        {
            RipeMD160Digest d = (RipeMD160Digest)other;

            CopyIn(d);
        }
Exemplo n.º 6
0
 /**
  * Copy constructor.  This will copy the state of the provided
  * message digest.
  */
 public RipeMD160Digest(RipeMD160Digest t) : base(t)
 {
     CopyIn(t);
 }
Exemplo n.º 7
0
		/**
        * Copy constructor.  This will copy the state of the provided
        * message digest.
        */
		public RipeMD160Digest(RipeMD160Digest t) : base(t)
		{
			CopyIn(t);
		}