Branch: Tag:

2013-11-21

2013-11-21 23:31:43 by Martin Nilsson <nilsson@opera.com>

Comment fix.

259:    extern protected int(0..1) pkcs_verify(string, Crypto.Hash, string);       //! Verifies the @[signature] of the certificate @[msg] using the -  //! indicated hash @[algorithm]. The signature is the DER-encoded -  //! ASN.1 sequence Dss-Sig-Value with the two integers r and s. See -  //! RFC 3279 section 2.2.2. +  //! indicated hash @[algorithm].    int(0..1) verify(Sequence algorithm, string msg, string signature)    {    Crypto.Hash hash = algorithms[algorithm[0]->get_der()];
299:    dsa = DSA.parse_public_key(key, p, q, g);    }    +  // The signature is the DER-encoded ASN.1 sequence Dss-Sig-Value +  // with the two integers r and s. See RFC 3279 section 2.2.2.    protected int(0..1) pkcs_verify(string msg, Crypto.Hash h, string sign)    {    return dsa && dsa->pkcs_verify(msg, h, sign);