Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
rand.h
Go to the documentation of this file.
1
/*
2
* Copyright 2015-2018 Yubico AB
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
/* rand.h
18
**
19
** Implements platform specific random generation operations
20
*/
21
22
#ifndef _YUBICOM_RAND_H_
23
#define _YUBICOM_RAND_H_
24
25
#include <stdbool.h>
26
#include <
stdint.h
>
27
#include <stddef.h>
28
29
#ifdef __cplusplus
30
extern
"C"
{
31
#endif
32
33
#ifndef __WIN32
34
#define YH_INTERNAL __attribute__((visibility("hidden")))
35
#else
36
#define YH_INTERNAL
37
#endif
38
39
bool
YH_INTERNAL
rand_generate
(
uint8_t
*
buf
,
size_t
cb_buf);
40
41
#ifdef __cplusplus
42
}
43
#endif
44
45
#endif
/* _YUBICOM_RAND_H_ */
rand_generate
bool YH_INTERNAL rand_generate(uint8_t *buf, size_t cb_buf)
Definition
rand.c:27
YH_INTERNAL
#define YH_INTERNAL
Definition
rand.h:34
stdint.h
uint8_t
unsigned char uint8_t
Definition
stdint.h:124
buf
uint8_t buf[2048]
Definition
yubihsm_pkcs11.c:4770
libraries
yubihsm
common
rand.h
Generated by
1.12.0