History

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.

Elena Petrova committed 6 years ago

Commit 77ebdab1 parent fcf5d2d6 files · +205 −15Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/linux/if_alg.h+1−0
@@ -35,6 +35,7 @@ struct af_alg_iv { · 34 unmodified lines
35#define ALG_SET_OP 335#define ALG_SET_OP 3
36#define ALG_SET_AEAD_ASSOCLEN 436#define ALG_SET_AEAD_ASSOCLEN 4
37#define ALG_SET_AEAD_AUTHSIZE 537#define ALG_SET_AEAD_AUTHSIZE 5
38#define ALG_SET_DRBG_ENTROPY 6
38 39
39/* Operations */40/* Operations */
40#define ALG_OP_DECRYPT 041#define ALG_OP_DECRYPT 0

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t