]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libcrypto/include/random.h
update
[l4.git] / l4 / pkg / libcrypto / include / random.h
1 /*
2  * \brief   Header file for the OAEP padding method (see PKCS #1 v2.1: RSA Cryptography Standard)
3  * \date    2006-07-05
4  * \author  Carsten Weinhold <weinhold@os.inf.tu-dresden.de>
5  */
6 /*
7  * Copyright (C) 2006 Carsten Weinhold <weinhold@os.inf.tu-dresden.de>
8  * Technische Universitaet Dresden, Operating Systems Research Group
9  *
10  * This file is part of the STPM package, which is distributed under
11  * the  terms  of the  GNU General Public Licence 2.  Please see the
12  * COPYING file for details.
13  */
14
15 #ifndef __CRYPTO_RANDOM_H
16 #define __CRYPTO_RANDOM_H
17
18 #include "private/misc.h"
19
20 CRYPTO_EXTERN_C_BEGIN
21
22 /*
23  * Fill the buffer buf with buf_len random bytes. You must provide an
24  * implementation for this function.
25  */
26 int crypto_randomize_buf(char *buf, unsigned int buf_len);
27
28 CRYPTO_EXTERN_C_END
29
30 #endif /* __CRYPTO_RANDOM_H */