OLD | NEW |
1 /* This Source Code Form is subject to the terms of the Mozilla Public | 1 /* This Source Code Form is subject to the terms of the Mozilla Public |
2 * License, v. 2.0. If a copy of the MPL was not distributed with this | 2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
4 | 4 |
5 #ifndef _SECRNG_H_ | 5 #ifndef _SECRNG_H_ |
6 #define _SECRNG_H_ | 6 #define _SECRNG_H_ |
7 /* | 7 /* |
8 * secrng.h - public data structures and prototypes for the secure random | 8 * secrng.h - public data structures and prototypes for the secure random |
9 * number generator | 9 * number generator |
10 * | |
11 * $Id$ | |
12 */ | 10 */ |
13 | 11 |
14 /******************************************/ | 12 /******************************************/ |
15 /* | 13 /* |
16 ** Random number generation. A cryptographically strong random number | 14 ** Random number generation. A cryptographically strong random number |
17 ** generator. | 15 ** generator. |
18 */ | 16 */ |
19 | 17 |
20 #include "blapi.h" | 18 #include "blapi.h" |
21 | 19 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 ** or zero if error. | 56 ** or zero if error. |
59 ** Errors: | 57 ** Errors: |
60 ** PR_NOT_IMPLEMENTED_ERROR There is no system RNG on the platform. | 58 ** PR_NOT_IMPLEMENTED_ERROR There is no system RNG on the platform. |
61 ** SEC_ERROR_NEED_RANDOM The system RNG failed. | 59 ** SEC_ERROR_NEED_RANDOM The system RNG failed. |
62 */ | 60 */ |
63 extern size_t RNG_SystemRNG(void *buf, size_t maxbytes); | 61 extern size_t RNG_SystemRNG(void *buf, size_t maxbytes); |
64 | 62 |
65 SEC_END_PROTOS | 63 SEC_END_PROTOS |
66 | 64 |
67 #endif /* _SECRNG_H_ */ | 65 #endif /* _SECRNG_H_ */ |
OLD | NEW |