GetDigest() 개인적인 정적인 메소드

private static GetDigest ( SubjectPublicKeyInfo spki ) : byte[]
spki SubjectPublicKeyInfo
리턴 byte[]
예제 #1
0
        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));
        }
예제 #2
0
 public SubjectKeyIdentifier(SubjectPublicKeyInfo spki)
 {
     this.keyIdentifier = SubjectKeyIdentifier.GetDigest(spki);
 }