security/nss/lib/freebl/mpi/utils/bbs_rand.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /*
     2  *  bbs_rand.h
     3  *
     4  *  Blum, Blum & Shub PRNG using the MPI library
     5  *
     6  * This Source Code Form is subject to the terms of the Mozilla Public
     7  * License, v. 2.0. If a copy of the MPL was not distributed with this
     8  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    10 #ifndef _H_BBSRAND_
    11 #define _H_BBSRAND_
    13 #include <limits.h>
    14 #include "mpi.h"
    16 #define  BBS_RAND_MAX    UINT_MAX
    18 /* Suggested length of seed data */
    19 extern int bbs_seed_size;
    21 void         bbs_srand(unsigned char *data, int len);
    22 unsigned int bbs_rand(void);
    24 #endif /* end _H_BBSRAND_ */

mercurial