1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/freebl/mpi/utils/bbs_rand.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +/* 1.5 + * bbs_rand.h 1.6 + * 1.7 + * Blum, Blum & Shub PRNG using the MPI library 1.8 + * 1.9 + * This Source Code Form is subject to the terms of the Mozilla Public 1.10 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.11 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.12 + 1.13 +#ifndef _H_BBSRAND_ 1.14 +#define _H_BBSRAND_ 1.15 + 1.16 +#include <limits.h> 1.17 +#include "mpi.h" 1.18 + 1.19 +#define BBS_RAND_MAX UINT_MAX 1.20 + 1.21 +/* Suggested length of seed data */ 1.22 +extern int bbs_seed_size; 1.23 + 1.24 +void bbs_srand(unsigned char *data, int len); 1.25 +unsigned int bbs_rand(void); 1.26 + 1.27 +#endif /* end _H_BBSRAND_ */