Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ppapi / cpp / dev / crypto_dev.h
blob2bbd43d8da9472ab86dce6c12f9bffc936fbebbf
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PPAPI_CPP_DEV_CRYPTO_DEV_H_
6 #define PPAPI_CPP_DEV_CRYPTO_DEV_H_
8 #include "ppapi/c/pp_stdint.h"
10 /// @file
11 /// This file defines APIs related to cryptography.
13 namespace pp {
15 /// APIs related to cryptography.
16 class Crypto_Dev {
17 public:
18 Crypto_Dev() {}
20 /// A function that fills the buffer with random bytes. This may be slow, so
21 /// avoid getting more bytes than needed.
22 ///
23 /// @param[out] buffer The buffer to receive the random bytes.
24 /// @param[in] num_bytes A number of random bytes to produce.
25 /// @return True on success, false on failure.
26 bool GetRandomBytes(char* buffer, uint32_t num_bytes);
29 } // namespace pp
31 #endif // PPAPI_CPP_DEV_CRYPTO_DEV_H_