summaryrefslogtreecommitdiff
path: root/rnd.h
blob: 154fccfb75a42fcd89e56c197b0de8f2d997371d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef RND_H
#define RND_H

#define HIG_ENTROPY_SOURCE	"/dev/random"
#define LOW_ENTROPY_SOURCE	"/dev/urandom"

/* secrand is not really secure, but the name only suggests it's better to use
 * than rand(3) when transferring bytes over the network in non-security
 * critical structure members. secrand() is only used to fill up salts actually.
 */
extern int secrand(void);
extern void gen_key_bytes(unsigned char *area, size_t len);

#endif /* RND_H */
t;patrice.chotard@st.com>2016-11-23 09:25:23 +0100 committerPatrice Chotard <patrice.chotard@st.com>2016-11-28 13:02:14 +0100 commit88d7658bf31f17296b8792e62268825d066d23c4 (patch) tree61331d3b9f18ef0253f2c3092980868221b3a377 parent57dae748959d0abae2b382ccee68621a82f827c8 (diff)
ARM: multi_v7_defconfig: enable STMicroelectronics HVA driver
Enable HVA (Hardware Video Accelerator) video encoder driver for STMicroelectronics SoC. Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat