diff options
author | Niels Möller <nisse@lysator.liu.se> | 2021-11-19 22:01:26 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2021-11-19 22:01:26 +0100 |
commit | d2e4e5311a84f2ca6144378aaa8d3b8a6d76dd5e (patch) | |
tree | 212b9b265cda09bedd49d8d8f6f28d8a8a14a6f7 /gmp-glue.c | |
parent | dd5662399b985f6f0b127840b2173c73c2855e15 (diff) | |
download | nettle-d2e4e5311a84f2ca6144378aaa8d3b8a6d76dd5e.tar.gz |
Delete function mpz_limbs_read_n.
Diffstat (limited to 'gmp-glue.c')
-rw-r--r-- | gmp-glue.c | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -115,25 +115,6 @@ sec_zero_p (const mp_limb_t *ap, mp_size_t n) /* Additional convenience functions. */ -/* Get a pointer to an n limb area, for read-only operation. n must be - greater or equal to the current size, and the mpz is zero-padded if - needed. */ -const mp_limb_t * -mpz_limbs_read_n (mpz_ptr x, mp_size_t n) -{ - mp_size_t xn = mpz_size (x); - mp_ptr xp; - - assert (xn <= n); - - xp = mpz_limbs_modify (x, n); - - if (xn < n) - mpn_zero (xp + xn, n - xn); - - return xp; -} - void mpz_limbs_copy (mp_limb_t *xp, mpz_srcptr x, mp_size_t n) { |