protected void CopyIn(GeneralDigest t) { Array.Copy(t.xBuf, 0, xBuf, 0, t.xBuf.Length); xBufOff = t.xBufOff; byteCount = t.byteCount; }
protected void CopyIn(GeneralDigest t) { Array.Copy(t.xBuf, 0, xBuf, 0, t.xBuf.Length); xBufOff = t.xBufOff; byteCount = t.byteCount; }
internal GeneralDigest(GeneralDigest t) { xBuf = new byte[t.xBuf.Length]; Array.Copy(t.xBuf, 0, xBuf, 0, t.xBuf.Length); xBufOff = t.xBufOff; byteCount = t.byteCount; }
internal GeneralDigest(GeneralDigest t) { xBuf = new byte[t.xBuf.Length]; Array.Copy(t.xBuf, 0, xBuf, 0, t.xBuf.Length); xBufOff = t.xBufOff; byteCount = t.byteCount; }
internal GeneralDigest(GeneralDigest t) { xBuf = new byte[t.xBuf.Length]; CopyIn(t); }
internal GeneralDigest(GeneralDigest t) { xBuf = new byte[t.xBuf.Length]; CopyIn(t); }
/// <summary> /// Creates a human readable fingerprint for this certificate. This fingerprint may be /// compared by a user with an other certificate's fingerprint to proof their equality. /// </summary> protected static string CreateFingerprint(GeneralDigest a_digestGenerator, byte[] a_data) { var digestData = new byte[a_digestGenerator.GetDigestSize()]; a_digestGenerator.BlockUpdate(a_data, 0, a_data.Length); a_digestGenerator.DoFinal(digestData, 0); return string.Join(":", digestData.Select(x => x.ToString("X2"))); }
protected void CopyIn(GeneralDigest t) { global::System.Array.Copy((global::System.Array)t.xBuf, 0, (global::System.Array)xBuf, 0, t.xBuf.Length); xBufOff = t.xBufOff; byteCount = t.byteCount; }