1 /*
2  * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6 
7 /*
8  * NaCl Service Runtime.  Secure RNG abstraction.
9  */
10 
11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_WIN_NACL_SECURE_RANDOM_TYPES_H__
12 #define NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_WIN_NACL_SECURE_RANDOM_TYPES_H__
13 
14 #include "native_client/src/include/nacl_base.h"
15 
16 #include "native_client/src/shared/platform/nacl_secure_random_base.h"
17 
18 EXTERN_C_BEGIN
19 
20 #define NACL_RANDOM_BUFFER_SIZE  1024
21 
22 struct NaClSecureRng {
23   struct NaClSecureRngIf  base;
24   unsigned char           buf[NACL_RANDOM_BUFFER_SIZE];
25   int                     nvalid;
26 };
27 
28 EXTERN_C_END
29 
30 #endif  /* NATIVE_CLIENT_SRC_TRUSTED_PLATFORM_WIN_NACL_SECURE_RANDOM_TYPES_H__ */
31