diff options
Diffstat (limited to 'security/nss/lib/freebl/mpi/utils/bbs_rand.h')
-rw-r--r-- | security/nss/lib/freebl/mpi/utils/bbs_rand.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/security/nss/lib/freebl/mpi/utils/bbs_rand.h b/security/nss/lib/freebl/mpi/utils/bbs_rand.h new file mode 100644 index 000000000..d12269bf9 --- /dev/null +++ b/security/nss/lib/freebl/mpi/utils/bbs_rand.h @@ -0,0 +1,24 @@ +/* + * bbs_rand.h + * + * Blum, Blum & Shub PRNG using the MPI library + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef _H_BBSRAND_ +#define _H_BBSRAND_ + +#include <limits.h> +#include "mpi.h" + +#define BBS_RAND_MAX UINT_MAX + +/* Suggested length of seed data */ +extern int bbs_seed_size; + +void bbs_srand(unsigned char *data, int len); +unsigned int bbs_rand(void); + +#endif /* end _H_BBSRAND_ */ |