logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

kcapi_rng_seed - seed the RNG

Arguments

handle
           [in] cipher handle

       seed
           [in] seed data

       seedlen
           [in] size of seed

Author

StephanMueller <smueller@chronox.de>
           Author.

Description

       Note, this call must be called to initialize the selected RNG. When the SP800-90A DRBG is used, this call
       causes the DRBG to seed itself from the internal noise sources.

       Note, in case of using the SP800-90A DRBG, the seed buffer may be NULL. If it is not NULL, the DRBG uses
       the given data either as personalization string in case of the initial seeding or additional data for
       reseeding.

       return 0 upon success; a negative errno-style error code if an error occurred

Name

       kcapi_rng_seed - seed the RNG

Synopsis

intkcapi_rng_seed(structkcapi_handle*handle,uint8_t*seed,uint32_tseedlen);

See Also