Searched refs:tfmfd (Results 1 – 1 of 1) sorted by relevance
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | crypto_sanity.c | 18 static int opfd = -1, tfmfd = -1; variable 28 tfmfd = socket(AF_ALG, SOCK_SEQPACKET, 0); in init_afalg() 29 if (tfmfd == -1) in init_afalg() 31 if (bind(tfmfd, (struct sockaddr *)&sa, sizeof(sa)) == -1) in init_afalg() 33 if (setsockopt(tfmfd, SOL_ALG, ALG_SET_KEY, crypto_key, 16) == -1) in init_afalg() 35 opfd = accept(tfmfd, NULL, 0); in init_afalg() 43 if (tfmfd != -1) in deinit_afalg() 44 close(tfmfd); in deinit_afalg()
|