Verify() 공개 메소드

public Verify ( byte data, byte expecteddata ) : void
data byte
expecteddata byte
리턴 void
예제 #1
0
파일: DSA.cs 프로젝트: yoshikixxxx/poderosa
 public void Verify(byte[] data, byte[] expecteddata)
 {
     _publickey.Verify(data, expecteddata);
 }
예제 #2
0
        private void VerifyHostKeyByDSS(SSH2DataReader pubkey, byte[] sigbody, byte[] hash)
        {
            BigInteger p = pubkey.ReadMPInt();
            BigInteger q = pubkey.ReadMPInt();
            BigInteger g = pubkey.ReadMPInt();
            BigInteger y = pubkey.ReadMPInt();
            Debug.Assert(pubkey.Rest==0);

            //Debug.WriteLine(p.ToHexString());
            //Debug.WriteLine(q.ToHexString());
            //Debug.WriteLine(g.ToHexString());
            //Debug.WriteLine(y.ToHexString());

            DSAPublicKey pk = new DSAPublicKey(p,g,q,y);
            pk.Verify(sigbody, new SHA1CryptoServiceProvider().ComputeHash(hash));
            _cInfo._hostkey = pk;
        }