Skip to content
Snippets Groups Projects
Select Git revision
  • f70a52ccb388b29f1cbb90d9d29157fa58ca349e
  • master default
  • rsa-crt-hardening
  • chacha96
  • fat-library
  • versioned-symbols
  • curve25519
  • dsa-reorg
  • aead-api
  • set_key-changes
  • poly1305
  • aes-reorg
  • nettle-2.7-fixes
  • size_t-changes
  • ecc-support
  • experimental-20050201
  • lsh-1.4.2
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
  • nettle_2.7.1_release_20130528
  • nettle_2.7_release_20130424
  • nettle_2.6_release_20130116
  • nettle_2.5_release_20120707
  • converted-master-branch-to-git
  • nettle_2.4_release_20110903
  • nettle_2.3_release_20110902
  • nettle_2.2_release_20110711
  • nettle_2.1_release_20100725
  • camellia_32bit_20100720
  • nettle_2.0_release_20090608
  • nettle_1.15_release_20061128
  • after_experimental_merge_20060516
  • head_before_experimental_merge_20060516
37 results

bignum-random-prime.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    • Niels Möller's avatar
      f7695101
      (_nettle_generate_pocklington_prime): New · f7695101
      Niels Möller authored
      argument top_bits_set, to optionally generate primes with the two
      most significant bits set. Reordered argument list.
      (nettle_random_prime): Likewise, added top_bits_set argument.
      Invoke progress callback when a prime is generated.
      
      Rev: nettle/bignum-random-prime.c:1.6
      Rev: nettle/bignum.h:1.7
      f7695101
      History
      (_nettle_generate_pocklington_prime): New
      Niels Möller authored
      argument top_bits_set, to optionally generate primes with the two
      most significant bits set. Reordered argument list.
      (nettle_random_prime): Likewise, added top_bits_set argument.
      Invoke progress callback when a prime is generated.
      
      Rev: nettle/bignum-random-prime.c:1.6
      Rev: nettle/bignum.h:1.7
    main.c 11.07 KiB
    /*\
    ||| This file a part of Pike, and is copyright by Fredrik Hubinette
    ||| Pike is distributed as GPL (General Public License)
    ||| See the files COPYING and DISCLAIMER for more information.
    \*/
    #include "global.h"
    RCSID("$Id: main.c,v 1.58 1998/09/02 01:05:45 grubba Exp $");
    #include "fdlib.h"
    #include "backend.h"
    #include "module.h"
    #include "object.h"
    #include "lex.h"
    #include "pike_types.h"
    #include "builtin_functions.h"
    #include "array.h"
    #include "stralloc.h"
    #include "interpret.h"
    #include "error.h"
    #include "pike_macros.h"
    #include "callback.h"
    #include "signal_handler.h"
    #include "threads.h"
    #include "dynamic_load.h"
    #include "gc.h"
    #include "multiset.h"
    #include "mapping.h"
    #include "cpp.h"
    #include "main.h"
    #include "operators.h"
    
    #include <errno.h>
    
    #ifdef HAVE_LOCALE_H
    #include <locale.h>
    #endif
    
    #include "time_stuff.h"
    
    #ifdef HAVE_SYS_RESOURCE_H
    #include <sys/resource.h>
    #endif
    
    
    char *master_file;
    char **ARGV;
    
    int debug_options=0;
    int d_flag=0;
    int c_flag=0;
    int t_flag=0;
    int default_t_flag=0;
    int a_flag=0;
    int l_flag=0;
    int p_flag=0;
    #ifdef YYDEBUG
    extern int yydebug;
    #endif /* YYDEBUG */
    static long instructions_left;
    
    static void time_to_exit(struct callback *cb,void *tmp,void *ignored)
    {
      if(instructions_left-- < 0)
      {
        push_int(0);
        f_exit(1);
      }
    }
    
    static struct callback_list post_master_callbacks;