ivy.c (cb285f7c7c5ed93ca01632e839d8d093cb261a9e) ivy.c (4312ebfe0bbf314a0d5d1b6d14d003673255dd0d)
1/*-
2 * Copyright (c) 2013 The FreeBSD Foundation
3 * Copyright (c) 2013 David E. O'Brien <obrien@NUXI.org>
4 * Copyright (c) 2012 Konstantin Belousov <kib@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Portions of this software were developed by Konstantin Belousov
8 * under sponsorship from the FreeBSD Foundation.

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

55static u_int random_ivy_read(void *, u_int);
56
57static struct random_source random_ivy = {
58 .rs_ident = "Intel Secure Key RNG",
59 .rs_source = RANDOM_PURE_RDRAND,
60 .rs_read = random_ivy_read
61};
62
1/*-
2 * Copyright (c) 2013 The FreeBSD Foundation
3 * Copyright (c) 2013 David E. O'Brien <obrien@NUXI.org>
4 * Copyright (c) 2012 Konstantin Belousov <kib@FreeBSD.org>
5 * All rights reserved.
6 *
7 * Portions of this software were developed by Konstantin Belousov
8 * under sponsorship from the FreeBSD Foundation.

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

55static u_int random_ivy_read(void *, u_int);
56
57static struct random_source random_ivy = {
58 .rs_ident = "Intel Secure Key RNG",
59 .rs_source = RANDOM_PURE_RDRAND,
60 .rs_read = random_ivy_read
61};
62
63SYSCTL_NODE(_kern_random, OID_AUTO, rdrand, CTLFLAG_RW, 0,
63SYSCTL_NODE(_kern_random, OID_AUTO, rdrand, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
64 "rdrand (ivy) entropy source");
65static bool acquire_independent_seed_samples = false;
66SYSCTL_BOOL(_kern_random_rdrand, OID_AUTO, rdrand_independent_seed,
67 CTLFLAG_RWTUN, &acquire_independent_seed_samples, 0,
68 "If non-zero, use more expensive and slow, but safer, seeded samples "
69 "where RDSEED is not present.");
70
71static bool

--- 128 unchanged lines hidden ---
64 "rdrand (ivy) entropy source");
65static bool acquire_independent_seed_samples = false;
66SYSCTL_BOOL(_kern_random_rdrand, OID_AUTO, rdrand_independent_seed,
67 CTLFLAG_RWTUN, &acquire_independent_seed_samples, 0,
68 "If non-zero, use more expensive and slow, but safer, seeded samples "
69 "where RDSEED is not present.");
70
71static bool

--- 128 unchanged lines hidden ---