Coverage Report

Created: 2026-10-28 06:28

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/openssl40/providers/implementations/kem/mlx_kem.inc
Line
Count
Source
1
/*
2
 * Copyright 2026 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
11
12
/* Machine generated by util/perl/OpenSSL/paramnames.pm */
13
#ifndef mlx_kem_get_ctx_params_list
14
static ossl_unused const OSSL_PARAM mlx_kem_get_ctx_params_list[] = {
15
# if defined(FIPS_MODULE)
16
    OSSL_PARAM_int(OSSL_KEM_PARAM_FIPS_APPROVED_INDICATOR, NULL),
17
# endif
18
    OSSL_PARAM_END
19
};
20
#endif
21
22
#ifndef mlx_kem_get_ctx_params_st
23
struct mlx_kem_get_ctx_params_st {
24
# if defined(FIPS_MODULE)
25
    OSSL_PARAM *ind;
26
# else
27
    int dummy; /* unused */
28
# endif
29
};
30
#endif
31
32
#ifndef mlx_kem_get_ctx_params_decoder
33
static ossl_unused int mlx_kem_get_ctx_params_decoder
34
    (const OSSL_PARAM *p, struct mlx_kem_get_ctx_params_st *r)
35
0
{
36
0
    const char *s;
37
0
38
0
    memset(r, 0, sizeof(*r));
39
0
    if (p != NULL)
40
0
        for (; (s = p->key) != NULL; p++)
41
0
# if defined(FIPS_MODULE)
42
0
            if (ossl_likely(strcmp("fips-indicator", s + 0) == 0)) {
43
0
                /* OSSL_KEM_PARAM_FIPS_APPROVED_INDICATOR */
44
0
                if (ossl_unlikely(r->ind != NULL)) {
45
0
                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
46
0
                                   "param %s is repeated", s);
47
0
                    return 0;
48
0
                }
49
0
                r->ind = (OSSL_PARAM *)p;
50
0
            }
51
0
# else
52
0
            ;
53
0
# endif
54
0
    return 1;
55
0
}
56
#endif
57
/* End of machine generated */