Home
last modified time | relevance | path

Searched refs:cipher (Results 1 – 5 of 5) sorted by relevance

/tools/testing/selftests/bpf/progs/
A Dcrypto_bench.c14 char cipher[128] = {}; variable
34 if (!cipher[0] || !key_len || key_len > 256) { in crypto_setup()
39 __builtin_memcpy(&params.algo, cipher, sizeof(cipher)); in crypto_setup()
/tools/testing/crypto/chacha20-s390/
A Dtest-cipher.c51 static int test_lib_chacha(u8 *revert, u8 *cipher, u8 *plain) in test_lib_chacha() argument
72 chacha_crypt_arch(&chacha_state, cipher, plain, data_size, 20); in test_lib_chacha()
78 16, 1, cipher, in test_lib_chacha()
87 chacha_crypt_arch(&chacha_state, revert, cipher, data_size, 20); in test_lib_chacha()
126 static int test_skcipher(char *name, u8 *revert, u8 *cipher, u8 *plain) in test_skcipher() argument
174 sg_init_one(&sk.sgout, cipher, data_size); in test_skcipher()
191 16, 1, cipher, in test_skcipher()
197 sg_init_one(&sk.sginp, cipher, data_size); in test_skcipher()
A DMakefile7 test_cipher-y := test-cipher.o
/tools/testing/selftests/net/ovpn/
A Dovpn-cli.c101 enum ovpn_cipher_alg cipher; member
437 if (strcmp(cipher, "aes") == 0) in ovpn_parse_cipher()
438 ctx->cipher = OVPN_CIPHER_ALG_AES_GCM; in ovpn_parse_cipher()
439 else if (strcmp(cipher, "chachapoly") == 0) in ovpn_parse_cipher()
440 ctx->cipher = OVPN_CIPHER_ALG_CHACHA20_POLY1305; in ovpn_parse_cipher()
441 else if (strcmp(cipher, "none") == 0) in ovpn_parse_cipher()
442 ctx->cipher = OVPN_CIPHER_ALG_NONE; in ovpn_parse_cipher()
918 NLA_PUT_U32(ctx->nl_msg, OVPN_A_KEYCONF_CIPHER_ALG, ovpn->cipher); in ovpn_new_key()
2023 if (ovpn->cipher != OVPN_CIPHER_ALG_NONE) { in ovpn_run_cmd()
2189 ovpn->cipher = OVPN_CIPHER_ALG_AES_GCM; in ovpn_parse_cmd_args()
[all …]
/tools/testing/selftests/bpf/benchs/
A Dbench_bpf_crypto.c99 snprintf(ctx.skel->bss->cipher, 128, "%s", args.crypto_cipher); in crypto_setup()

Completed in 9 milliseconds