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.c
Line
Count
Source
1
/*
2
 * Copyright 1995-2021 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
#ifndef OPENSSL_NO_RC4
13
#include "crypto/evp.h"
14
15
static const EVP_CIPHER r4_cipher = {
16
    NID_rc4,
17
    1, EVP_RC4_KEY_SIZE, 0,
18
    EVP_CIPH_VARIABLE_LENGTH,
19
    EVP_ORIG_GLOBAL
20
};
21
22
static const EVP_CIPHER r4_40_cipher = {
23
    NID_rc4_40,
24
    1, 5 /* 40 bit */, 0,
25
    EVP_CIPH_VARIABLE_LENGTH,
26
    EVP_ORIG_GLOBAL
27
};
28
29
const EVP_CIPHER *EVP_rc4(void)
30
3
{
31
3
    return &r4_cipher;
32
3
}
33
34
const EVP_CIPHER *EVP_rc4_40(void)
35
3
{
36
3
    return &r4_40_cipher;
37
3
}
38
#else
39
NON_EMPTY_TRANSLATION_UNIT
40
#endif