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

version» Context lines:

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