Branch: Tag:

2014-12-04

2014-12-04 19:24:54 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Nettle: All narrow strings should now be declared as such.

39:    memcpy(&X.Y, get_storage(Y, auto_bignum_program.u.program), sizeof(mpz_t));\    } while(0)    - /*! @decl array(object(Gmp.mpz)) dsa_generate_keypair(int p_bits, int q_bits, @ -  *! function(int:string) rnd) + /*! @decl array(object(Gmp.mpz)) @ +  *! dsa_generate_keypair(int p_bits, int q_bits, @ +  *! function(int:string(0..255)) rnd)    *!    *! Generates a DSA key pair with @[p_bits] number of bits (sometimes    *! referred to as L) for p, and @[q_bits] number of bits (sometimes
69:    *! The value x, the private value.    *! @endarray    */ - PIKEFUN array(object(Gmp.mpz)) dsa_generate_keypair(int p_bits, int q_bits, -  function(int:string) rnd) + PIKEFUN array(object(Gmp.mpz)) +  dsa_generate_keypair(int p_bits, int q_bits, function(int:string(0..255)) rnd)   {    struct dsa_public_key pub;    struct object *p, *q, *g, *y;
100:   }      /*! @decl array(object(Gmp.mpz)) @ -  *! rsa_generate_keypair(int bits, int e, function(int:string) rnd) +  *! rsa_generate_keypair(int bits, int e, function(int:string(0..255)) rnd)    *!    *! Generates an RSA key pair with a @[bits] sized modulus (n), using    *! the provided value for @[e] and random function @[rnd].
118:    *! @endarray    */   PIKEFUN array(object(Gmp.mpz)) -  rsa_generate_keypair(int bits, int e, function(int:string) rnd) +  rsa_generate_keypair(int bits, int e, function(int:string(0..255)) rnd)   {    struct rsa_public_key pub;    struct object *n, *_e;