• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright 2014-2022 The GmSSL Project. All Rights Reserved.
3  *
4  *  Licensed under the Apache License, Version 2.0 (the License); you may
5  *  not use this file except in compliance with the License.
6  *
7  *  http://www.apache.org/licenses/LICENSE-2.0
8  */
9 
10 
11 #ifndef GMSSL_RAND_H
12 #define GMSSL_RAND_H
13 
14 #include <stdint.h>
15 #include <stdlib.h>
16 
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
22 /*
23 Rand Public API
24 
25 	rand_bytes
26 
27 */
28 
29 int rand_bytes(uint8_t *buf, size_t buflen);
30 
31 int rdrand_bytes(uint8_t *buf, size_t buflen);
32 int rdseed_bytes(uint8_t *buf, size_t buflen);
33 
34 
35 #ifdef __cplusplus
36 }
37 #endif
38 #endif
39