diff options
| author | Elena Petrova <[email protected]> | 2020-09-18 15:42:16 +0000 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2020-09-25 07:48:52 +0000 |
| commit | 77ebdabe8de7c02f43c6de3357f79ff96f9f0579 (patch) | |
| tree | e6f8fbb41137d2e27703a31083d6cf99762251af /lib/mpi/mpi-cmp.c | |
| parent | crypto: sun8i-ss - fix comparison of integer expressions of different signedness (diff) | |
| download | kernel-77ebdabe8de7c02f43c6de3357f79ff96f9f0579.tar.gz kernel-77ebdabe8de7c02f43c6de3357f79ff96f9f0579.zip | |
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: Elena Petrova <[email protected]>
Acked-by: Stephan Müller <[email protected]>
Reviewed-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
