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

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:734556ce76b4
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/. */
9
10 #ifndef _H_BBSRAND_
11 #define _H_BBSRAND_
12
13 #include <limits.h>
14 #include "mpi.h"
15
16 #define BBS_RAND_MAX UINT_MAX
17
18 /* Suggested length of seed data */
19 extern int bbs_seed_size;
20
21 void bbs_srand(unsigned char *data, int len);
22 unsigned int bbs_rand(void);
23
24 #endif /* end _H_BBSRAND_ */

mercurial