random.h (1effe6ad5eac1b2e50a077695ac801d172891d6a) random.h (e688df6bc4549f28534cdb001f168b8caae55b0c)
1/*
2 * QEMU Crypto random number provider
3 *
4 * Copyright (c) 2015-2016 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 8 unchanged lines hidden (view full) ---

17 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21#ifndef QCRYPTO_RANDOM_H
22#define QCRYPTO_RANDOM_H
23
24#include "qemu-common.h"
1/*
2 * QEMU Crypto random number provider
3 *
4 * Copyright (c) 2015-2016 Red Hat, Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either

--- 8 unchanged lines hidden (view full) ---

17 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21#ifndef QCRYPTO_RANDOM_H
22#define QCRYPTO_RANDOM_H
23
24#include "qemu-common.h"
25#include "qapi/error.h"
26
25
27
28/**
29 * qcrypto_random_bytes:
30 * @buf: the buffer to fill
31 * @buflen: length of @buf in bytes
32 * @errp: pointer to a NULL-initialized error object
33 *
34 * Fill @buf with @buflen bytes of cryptographically strong
35 * random data

--- 18 unchanged lines hidden ---
26/**
27 * qcrypto_random_bytes:
28 * @buf: the buffer to fill
29 * @buflen: length of @buf in bytes
30 * @errp: pointer to a NULL-initialized error object
31 *
32 * Fill @buf with @buflen bytes of cryptographically strong
33 * random data

--- 18 unchanged lines hidden ---