Lines Matching refs:cipher
101 enum ovpn_cipher_alg cipher; member
435 static int ovpn_parse_cipher(const char *cipher, struct ovpn_ctx *ctx) in ovpn_parse_cipher() argument
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()
2361 ovpn.cipher = OVPN_CIPHER_ALG_NONE; in main()