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

version» Context lines:

pike.git/lib/modules/Crypto.pmod/DSA.pmod:71:    y = key;    return this;    }       //! Sets the public key in this DSA object.    //!    //! @param params    //! The finite-field diffie-hellman group parameters.    //! @param key    //! The public key y parameter. -  variant this_program set_public_key(__builtin.Nettle.DH_Params params, +  variant this_program set_public_key(.DH.Parameters params,    Gmp.mpz key)    {    p = params->p;    q = params->q;    g = params->g;    y = key;    return this;    }       //! Compares the public key in this object with that in the provided
pike.git/lib/modules/Crypto.pmod/DSA.pmod:238:    variant this_program generate_key(int p_bits, int q_bits)    {    [ p, q, g, y, x ] = Nettle.dsa_generate_keypair(p_bits, q_bits, random);    return this;    }      #endif       //! Generates a public/private key pair with the specified    //! finite field diffie-hellman parameters. -  variant this_program generate_key(__builtin.Nettle.DH_Params params) +  variant this_program generate_key(.DH.Parameters params)    {    p = params->p;    g = params->g;    q = params->q;       [y, x] = params->generate_keypair(random);    return this;    }       //! Generates a public/private key pair. Needs the public parameters