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

1:   #pike __REAL_VERSION__    - /* $Id: https.pike,v 1.14 2003/01/27 01:41:17 nilsson Exp $ + /* $Id: https.pike,v 1.15 2004/02/03 13:52:40 nilsson Exp $    *    * dummy https server    */
74:   }      class no_random { -  object arcfour = Crypto.arcfour(); +  object arcfour = Crypto.Arcfour();       void create(string|void secret)    {    if (!secret)    secret = sprintf("Foo!%4c", time()); -  object sha = Crypto.sha(); -  sha->update(secret); -  arcfour->set_encrypt_key(sha->digest()); +  arcfour->set_encrypt_key(Crypto.SHA->hash(secret));    }       string read(int size)
135: Inside #if 0
   werror("n = %s\np = %s\nq = %s\npq = %s\n",    n->digits(), p->digits(), q->digits(), (p*q)->digits());    -  rsa = Crypto.rsa(); +  rsa = Crypto.RSA();    rsa->set_public_key(n, e);    rsa->set_private_key(d);   #else /* !0 */