Lines Matching refs:evp_cipher
215 static void multiblock_speed(const EVP_CIPHER *evp_cipher, int lengths_single,
695 EVP_CIPHER *cipher = NULL;
885 if (EVP_Cipher(tempargs->ctx, buf, buf, (size_t)lengths[testnum]) <= 0)
914 EVP_CIPHER *cipher = NULL;
1610 const EVP_CIPHER *ciph = EVP_CIPHER_CTX_get0_cipher(ctx);
1962 EVP_CIPHER *evp_cipher = NULL;
2140 if (!opt_cipher_silent(opt_arg(), &evp_cipher)) {
2144 if (evp_cipher == NULL && evp_md_name == NULL) {
2510 if (evp_cipher == NULL) {
2513 } else if (!(EVP_CIPHER_get_flags(evp_cipher) & EVP_CIPH_FLAG_AEAD_CIPHER)) {
2515 EVP_CIPHER_get0_name(evp_cipher));
2542 if (evp_cipher == NULL) {
2546 } else if (!(EVP_CIPHER_get_flags(evp_cipher) & EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK)) {
2548 EVP_CIPHER_get0_name(evp_cipher));
2997 if (evp_cipher != NULL) {
3002 if (multiblock && (EVP_CIPHER_get_flags(evp_cipher) & EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK)) {
3003 multiblock_speed(evp_cipher, lengths_single, &seconds);
3008 names[D_EVP] = EVP_CIPHER_get0_name(evp_cipher);
3010 mode_op = EVP_CIPHER_get_mode(evp_cipher);
3048 if (!EVP_CipherInit_ex(loopargs[k].ctx, evp_cipher, NULL,
3059 loopargs[k].key = app_malloc(keylen, "evp_cipher key");
3156 if (!EVP_CipherInit_ex(loopargs[k].ctx, evp_cipher,
3201 EVP_CIPHER *cipher = NULL;
4545 if (evp_cipher == NULL)
4547 else if ((alg_name = EVP_CIPHER_get0_name(evp_cipher)) == NULL)
4548 app_bail_out("failed to get name of cipher '%s'\n", evp_cipher);
4844 EVP_CIPHER_free(evp_cipher);
5149 static void multiblock_speed(const EVP_CIPHER *evp_cipher, int lengths_single,
5171 if (!EVP_EncryptInit_ex(ctx, evp_cipher, NULL, NULL, no_iv))
5178 key = app_malloc(keylen, "evp_cipher key");
5189 if ((alg_name = EVP_CIPHER_get0_name(evp_cipher)) == NULL)
5231 ciph_success = EVP_Cipher(ctx, out, inp, len + pad);