Branch: Tag:

2004-02-03

2004-02-03 13:53:02 by Martin Nilsson <mani@lysator.liu.se>

Use Nettle

Rev: lib/modules/Crypto.pmod/aes.pike:1.3
Rev: lib/modules/Crypto.pmod/des3.pike:1.2
Rev: lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/SSLPort.pike:1.8
Rev: lib/modules/SSL.pmod/context.pike:1.29
Rev: lib/modules/SSL.pmod/handshake.pike:1.46
Rev: lib/modules/SSL.pmod/https.pike:1.15
Rev: lib/modules/SSL.pmod/testsuite.in:1.6
Rev: lib/modules/Standards.pmod/PKCS.pmod/CSR.pmod:1.10
Rev: lib/modules/Standards.pmod/PKCS.pmod/RSA.pmod:1.19
Rev: lib/modules/Tools.pmod/X509.pmod:1.26

2:   //#pragma strict_types      /* -  * $Id: X509.pmod,v 1.25 2004/01/30 10:33:11 nilsson Exp $ +  * $Id: X509.pmod,v 1.26 2004/02/03 13:53:02 nilsson Exp $    *    * Some random functions for creating RFC-2459 style X.509 certificates.    *
164:   }      //! - string rsa_sign_digest(Crypto.rsa rsa, object digest_id, string digest) + string rsa_sign_digest(Crypto.RSA rsa, object digest_id, string digest)   {    Sequence digest_info = Sequence( ({ Sequence( ({ digest_id, Null() }) ),    OctetString(digest) }) );
172:   }      //! - int(0..1) rsa_verify_digest(Crypto.rsa rsa, object digest_id, + int(0..1) rsa_verify_digest(Crypto.RSA rsa, object digest_id,    string digest, string s)   {    Sequence digest_info = Sequence( ({ Sequence( ({ digest_id, Null() }) ),
181:   }      //! - string make_selfsigned_rsa_certificate(Crypto.rsa rsa, int ttl, array name, + string make_selfsigned_rsa_certificate(Crypto.RSA rsa, int ttl, array name,    array|void extensions)   {    Integer serial = Integer(1); /* Hard coded serial number */
219:    int(0..1) verify(object,string,string);    this_program init(string key);    -  optional Crypto.rsa rsa; // Ugly +  optional Crypto.RSA rsa; // Ugly   }      //!   class rsa_verifier   {    inherit Verifier; -  Crypto.rsa rsa; +  Crypto.RSA rsa;       constant type = "rsa";