1KCAPI_RNG_SEED(3) Programming Interface KCAPI_RNG_SEED(3)
2
3
4
6 kcapi_rng_seed - seed the RNG
7
9 int kcapi_rng_seed(struct kcapi_handle * handle, uint8_t * seed,
10 uint32_t seedlen);
11
13 handle
14 [in] cipher handle
15
16 seed
17 [in] seed data
18
19 seedlen
20 [in] size of seed
21
23 Note, this call must be called to initialize the selected RNG. When the
24 SP800-90A DRBG is used, this call causes the DRBG to seed itself from
25 the internal noise sources.
26
27 Note, in case of using the SP800-90A DRBG, the seed buffer may be NULL.
28 If it is not NULL, the DRBG uses the given data either as
29 personalization string in case of the initial seeding or additional
30 data for reseeding.
31
32 return 0 upon success; a negative errno-style error code if an error
33 occurred
34
36 Stephan Mueller <smueller@chronox.de>
37 Author.
38
40libkcapi Manual 1.1.5 January 2020 KCAPI_RNG_SEED(3)