pike.git / lib / modules / Crypto.pmod / RSA.pike

version» Context lines:

pike.git/lib/modules/Crypto.pmod/RSA.pike:1: - /* $Id: RSA.pike,v 1.7 2004/02/28 14:57:10 nilsson Exp $ + /* $Id: RSA.pike,v 1.8 2004/04/14 19:27:01 nilsson Exp $    *    * Follow the PKCS#1 standard for padding and encryption.    */      #pike __REAL_VERSION__   #pragma strict_types    - #if constant(Gmp.mpz) && constant(Crypto.Hash) + #if constant(Gmp) && constant(Gmp.mpz) && constant(Crypto.Hash)      static Gmp.mpz n; /* modulo */   static Gmp.mpz e; /* public exponent */   static Gmp.mpz d; /* private exponent (if known) */   static int size;      /* Extra info associated with a private key. Not currently used. */      static Gmp.mpz p;   static Gmp.mpz q;
pike.git/lib/modules/Crypto.pmod/RSA.pike:360: Inside #if constant(Gmp.mpz) && constant(Crypto.Hash)
  string crypt(string s)   {    return (encrypt_mode ? encrypt(s) : decrypt(s));   }      //! Returns the string @expr{"RSA"@}.   string name() {    return "RSA";   }    + #else + constant this_program_does_not_exist=1;   #endif