Name

drng_chacha20_reseed — Reseed the ChaCha20 DRNG

Synopsis

DSO_PUBLIC int drng_chacha20_reseed (struct chacha20_drng * drng,
 const uint8_t * inbuf,
 uint32_t inbuflen);
 

Arguments

drng

[in] allocated ChaCha20 cipher handle

inbuf

[in] buffer with the seed data

inbuflen

[in] length of inbuf

Description

When calling the function, the DRNG is first seeded from its internal noise sources. This is followed by seeding the DRNG with the caller-provided data.

return 0 upon succes; < 0 on error