Coverage Report

Created: 2026-02-22 06:11

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/openssl/crypto/evp/e_rc4_hmac_md5.c
Line
Count
Source
1
/*
2
 * Copyright 2011-2025 The OpenSSL Project Authors. All Rights Reserved.
3
 *
4
 * Licensed under the Apache License 2.0 (the "License").  You may not use
5
 * this file except in compliance with the License.  You can obtain a copy
6
 * in the file LICENSE in the source distribution or at
7
 * https://www.openssl.org/source/license.html
8
 */
9
10
#include <openssl/macros.h>
11
12
#if !defined(OPENSSL_NO_RC4) && !defined(OPENSSL_NO_MD5)
13
#include "crypto/evp.h"
14
15
static const EVP_CIPHER r4_hmac_md5_cipher = {
16
#ifdef NID_rc4_hmac_md5
17
    NID_rc4_hmac_md5,
18
#else
19
    NID_undef,
20
#endif
21
    1, EVP_RC4_KEY_SIZE, 0,
22
    EVP_CIPH_STREAM_CIPHER | EVP_CIPH_VARIABLE_LENGTH | EVP_CIPH_FLAG_AEAD_CIPHER,
23
    EVP_ORIG_GLOBAL
24
};
25
26
const EVP_CIPHER *EVP_rc4_hmac_md5(void)
27
3
{
28
3
    return &r4_hmac_md5_cipher;
29
3
}
30
#else
31
NON_EMPTY_TRANSLATION_UNIT
32
#endif