summaryrefslogtreecommitdiffstats
path: root/ppapi/api/dev/ppb_crypto_dev.idl
blob: 51b2baec334c949ed3d13efd188ac8fc61af8672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Copyright (c) 2012 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/**
 * This file defines the PPB_Crypto_Dev interface.
 */

label Chrome {
  M13 = 0.1
};

interface PPB_Crypto_Dev {
  /**
   * Fills the given buffer with random bytes. This is potentially slow so only
   * request the amount of data you need.
   */
  void GetRandomBytes([out] str_t buffer, [in] uint32_t num_bytes);
};