This patch extends the userspace RNG interface to make it usable for CAVS testing. This is achieved by adding ALG_SET_DRBG_ENTROPY option to the setsockopt interface for specifying the entropy, and using sendmsg syscall for specifying the additional data. See libkcapi patch [1] to test the added functionality. The libkcapi patch is not intended for merging into libkcapi as is: it is only a quick plug to manually verify that the extended AF_ALG RNG interface generates the expected output on DRBG800-90A CAVS inputs. [1] https://github.com/Len0k/libkcapi/commit/6f095d270b982008f419078614c15caa592cb531 Elena Petrova (1): crypto: af_alg - add extra parameters for DRBG interface Documentation/crypto/userspace-if.rst | 14 +++- crypto/af_alg.c | 8 +++ crypto/algif_rng.c | 99 +++++++++++++++++++++++++-- include/crypto/if_alg.h | 3 +- include/uapi/linux/if_alg.h | 1 + 5 files changed, 115 insertions(+), 10 deletions(-) -- 2.27.0.383.g050319c2ae-goog