~ubuntu-branches/ubuntu/trusty/nettle/trusty

« back to all changes in this revision

Viewing changes to bignum-next-prime.c

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-05-07 22:57:14 UTC
  • mfrom: (8.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130507225714-s331yr8ov53dtt17
Tags: 2.7-2
Tag some (ECC related) symbols that only exist on some architectures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
/* nettle, low-level cryptographics library
6
6
 *
7
 
 * Copyright (C) 2002 Niels M�ller
 
7
 * Copyright (C) 2002 Niels Möller
8
8
 *  
9
9
 * The nettle library is free software; you can redistribute it and/or modify
10
10
 * it under the terms of the GNU Lesser General Public License as published by
18
18
 * 
19
19
 * You should have received a copy of the GNU Lesser General Public License
20
20
 * along with the nettle library; see the file COPYING.LIB.  If not, write to
21
 
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22
 
 * MA 02111-1307, USA.
 
21
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
22
 * MA 02111-1301, USA.
23
23
 */
24
24
 
25
25
#if HAVE_CONFIG_H
74
74
/* NOTE: The mpz_nextprime in current GMP is unoptimized. */
75
75
void
76
76
nettle_next_prime(mpz_t p, mpz_t n, unsigned count, unsigned prime_limit,
77
 
                  void *progress_ctx, nettle_progress_func progress)
 
77
                  void *progress_ctx, nettle_progress_func *progress)
78
78
{
79
79
  mpz_t tmp;
80
80
  TMP_DECL(moduli, unsigned, NUMBER_OF_PRIMES);