BlockUpdate() public method

public BlockUpdate ( byte input, int inOff, int length ) : void
input byte
inOff int
length int
return void
コード例 #1
0
 /// <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")));
 }