Lines Matching defs:cipher
224 "Enable (tls1>=1) multi-block mode on EVP-named cipher"},
239 {"evp", OPT_EVP, 's', "Use EVP-named cipher or digest"},
241 {"cmac", OPT_CMAC, 's', "CMAC using EVP-named cipher"},
245 "Benchmark EVP-named AEAD cipher in TLS-like sequence"},
527 EVP_CIPHER *cipher = NULL;
529 if (opt_cipher_silent(name, &cipher)) {
533 && EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, 1) > 0)
536 EVP_CIPHER_free(cipher);
681 EVP_CIPHER *cipher = NULL;
683 if (!opt_cipher_silent(ciphername, &cipher))
689 if (!EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, 1)) {
708 EVP_CIPHER_free(cipher);
1513 "%s: %s is an unknown cipher or digest\n",
1531 BIO_printf(bio_err, "%s: %s is an unknown cipher\n",
1731 BIO_printf(bio_err, "-aead can be used only with an AEAD cipher\n");
1735 BIO_printf(bio_err, "%s is not an AEAD cipher\n",
1743 " capable cipher\n");
2283 EVP_CIPHER *cipher = NULL;
2288 if (!opt_cipher(evp_mac_ciphername, &cipher))
2291 keylen = EVP_CIPHER_get_key_length(cipher);
2292 EVP_CIPHER_free(cipher);
2294 BIO_printf(bio_err, "\nRequested CMAC cipher with unsupported key length.\n");
3625 app_bail_out("failed to allocate cipher context\n");
3627 app_bail_out("failed to initialise cipher context\n");
3635 app_bail_out("failed to generate random cipher key\n");
3637 app_bail_out("failed to set cipher key\n");
3644 app_bail_out("failed to get cipher name\n");