DoFinal() public abstract method

public abstract DoFinal ( byte output, int outOff ) : int
output byte
outOff int
return int
コード例 #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")));
 }