Branch: Tag:

2000-03-28

2000-03-28 13:03:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Renamed rc4 to arcfour.

Rev: lib/modules/SSL.pmod/cipher.pike:1.14
Rev: lib/modules/SSL.pmod/https.pike:1.9

1: - /* $Id: https.pike,v 1.8 1999/03/17 02:53:34 grubba Exp $ + /* $Id: https.pike,v 1.9 2000/03/28 13:03:43 grubba Exp $    *    * dummy https server    */
70:   }      class no_random { -  object rc4 = Crypto.rc4(); +  object arcfour = Crypto.arcfour();       void create(string|void secret)    {
78:    secret = sprintf("Foo!%4c", time());    object sha = Crypto.sha();    sha->update(secret); -  rc4->set_encrypt_key(sha->digest()); +  arcfour->set_encrypt_key(sha->digest());    }       string read(int size)    { -  return rc4->crypt(replace(allocate(size), 0, "\021") * ""); +  return arcfour->crypt(replace(allocate(size), 0, "\021") * "");    }   }