| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 #ifndef PPAPI_C_DEV_PPB_CRYPTO_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_CRYPTO_DEV_H_ |
| 6 #define PPAPI_C_DEV_PPB_CRYPTO_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_CRYPTO_DEV_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
| 9 #include "ppapi/c/pp_stdint.h" | 9 #include "ppapi/c/pp_stdint.h" |
| 10 | 10 |
| 11 #define PPB_CRYPTO_DEV_INTERFACE_0_1 "PPB_Crypto(Dev);0.1" | 11 #define PPB_CRYPTO_DEV_INTERFACE_0_1 "PPB_Crypto(Dev);0.1" |
| 12 #define PPB_CRYPTO_DEV_INTERFACE PPB_CRYPTO_DEV_INTERFACE_0_1 | 12 #define PPB_CRYPTO_DEV_INTERFACE PPB_CRYPTO_DEV_INTERFACE_0_1 |
| 13 | 13 |
| 14 struct PPB_Crypto_Dev { | 14 struct PPB_Crypto_Dev_0_1 { |
| 15 /** | 15 /** |
| 16 * Fills the given buffer with random bytes. This is potentially slow so only | 16 * Fills the given buffer with random bytes. This is potentially slow so only |
| 17 * request the amount of data you need. | 17 * request the amount of data you need. |
| 18 */ | 18 */ |
| 19 void (*GetRandomBytes)(char* buffer, uint32_t num_bytes); | 19 void (*GetRandomBytes)(char* buffer, uint32_t num_bytes); |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 typedef struct PPB_Crypto_Dev_0_1 PPB_Crypto_Dev; |
| 23 |
| 22 #endif | 24 #endif |
| OLD | NEW |