public static SubjectKeyIdentifier CreateTruncatedSha1KeyIdentifier(SubjectPublicKeyInfo keyInfo) { byte[] digest = SubjectKeyIdentifier.GetDigest(keyInfo); byte[] array = new byte[8]; Array.Copy(digest, digest.Length - 8, array, 0, array.Length); byte[] expr_25_cp_0 = array; int expr_25_cp_1 = 0; expr_25_cp_0[expr_25_cp_1] &= 15; byte[] expr_3B_cp_0 = array; int expr_3B_cp_1 = 0; expr_3B_cp_0[expr_3B_cp_1] |= 64; return(new SubjectKeyIdentifier(array)); }
public SubjectKeyIdentifier(SubjectPublicKeyInfo spki) { this.keyIdentifier = SubjectKeyIdentifier.GetDigest(spki); }