Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 77ebdabe authored by Elena Petrova's avatar Elena Petrova Committed by Herbert Xu
Browse files

crypto: af_alg - add extra parameters for DRBG interface


Extend the user-space RNG interface:
  1. Add entropy input via ALG_SET_DRBG_ENTROPY setsockopt option;
  2. Add additional data input via sendmsg syscall.

This allows DRBG to be tested with test vectors, for example for the
purpose of CAVP testing, which otherwise isn't possible.

To prevent erroneous use of entropy input, it is hidden under
CRYPTO_USER_API_RNG_CAVP config option and requires CAP_SYS_ADMIN to
succeed.

Signed-off-by: default avatarElena Petrova <lenaptr@google.com>
Acked-by: default avatarStephan Müller <smueller@chronox.de>
Reviewed-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent fcf5d2dc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment