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

version» Context lines:

pike.git/lib/modules/Crypto.pmod/RSA.pike:215: Inside #if constant(Crypto.Hash)
      set_public_key(mod, pub);    set_private_key(gs[1], ({ p, q }));       } while (!raw_verify(msg, raw_sign(msg)));    return this;   }      #endif    + //! Compatibility with Pike 7.8. + variant __deprecated__ this_program generate_key(int(128..) bits, +  function rnd) + { +  function old_rnd = random; +  random = rnd; +  this_program res = generate_key(bits); +  random = old_rnd; +  return res; + }      //   // --- PKCS methods   //      #define Sequence Standards.ASN1.Types.Sequence      //! Calls @[Standards.PKCS.RSA.signatue_algorithm_id] with the   //! provided @[hash].   Sequence pkcs_algorithm_id(.Hash hash)