Branch: Tag:

2004-02-05

2004-02-05 19:22:17 by Martin Nilsson <mani@lysator.liu.se>

SHA -> SHA1

Rev: lib/modules/Crypto.pmod/PGP.pmod:1.8
Rev: lib/modules/Crypto.pmod/RSA.pike:1.4
Rev: lib/modules/Crypto.pmod/dsa.pike:1.3
Rev: lib/modules/Crypto.pmod/randomness.pmod:1.5
Rev: lib/modules/Crypto.pmod/rsa.pike:1.8
Rev: lib/modules/Crypto.pmod/testsuite.in:1.28
Rev: lib/modules/SSL.pmod/Cipher.pmod:1.12
Rev: lib/modules/Tools.pmod/X509.pmod:1.28

2:   //#pragma strict_types      /* -  * $Id: X509.pmod,v 1.27 2004/02/04 20:07:32 bill Exp $ +  * $Id: X509.pmod,v 1.28 2004/02/05 19:22:17 nilsson Exp $    *    * Some random functions for creating RFC-2459 style X.509 certificates.    *
224:    ({ tbs,    rsa_sha1_algorithm,    BitString(rsa_sign_digest(rsa, Identifiers.sha1_id, - #if constant(Crypto.SHA.name) -  Crypto.SHA.hash(tbs->get_der()) + #if constant(Crypto.SHA1.name) +  Crypto.SHA1.hash(tbs->get_der())   #else    Crypto.sha()->update(tbs->get_der())->digest()   #endif
267:    signature);    if (algorithm->get_der() == rsa_sha1_algorithm->get_der())    return rsa_verify_digest(rsa, Identifiers.sha1_id, - #if constant(Crypto.SHA.name) -  Crypto.SHA.hash(msg), + #if constant(Crypto.SHA1.name) +  Crypto.SHA1.hash(msg),   #else    Crypto.sha()->update(msg)->digest(),   #endif