Coverage Report

Created: 2026-10-16 07:07

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/openssl/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
#include <string.h>
14
#include <openssl/params.h>
15
#include <openssl/e_os2.h>
16
#include "internal/common.h"
17
#include "prov/proverr.h"
18
19
/* Machine generated */
20
#ifndef mlx_kem_get_ctx_params_list
21
static ossl_unused const OSSL_PARAM mlx_kem_get_ctx_params_list[] = {
22
# if defined(FIPS_MODULE)
23
    OSSL_PARAM_int(OSSL_KEM_PARAM_FIPS_APPROVED_INDICATOR, NULL),
24
# endif
25
    OSSL_PARAM_END
26
};
27
#endif
28
29
#ifndef mlx_kem_get_ctx_params_st
30
struct mlx_kem_get_ctx_params_st {
31
# if defined(FIPS_MODULE)
32
    OSSL_PARAM *ind;
33
# else
34
    int dummy; /* unused */
35
# endif
36
};
37
#endif
38
39
#ifndef mlx_kem_get_ctx_params_decoder
40
static ossl_unused int mlx_kem_get_ctx_params_decoder
41
    (const OSSL_PARAM *p, struct mlx_kem_get_ctx_params_st *r)
42
0
{
43
0
    const char *s;
44
0
45
0
    memset(r, 0, sizeof(*r));
46
0
    if (p != NULL)
47
0
        for (; (s = p->key) != NULL; p++)
48
0
# if defined(FIPS_MODULE)
49
0
            if (ossl_likely(strcmp("fips-indicator", s + 0) == 0)) {
50
0
                /* OSSL_KEM_PARAM_FIPS_APPROVED_INDICATOR */
51
0
                if (ossl_unlikely(r->ind != NULL)) {
52
0
                    ERR_raise_data(ERR_LIB_PROV, PROV_R_REPEATED_PARAMETER,
53
0
                                   "param %s is repeated", s);
54
0
                    return 0;
55
0
                }
56
0
                r->ind = (OSSL_PARAM *)p;
57
0
            }
58
0
# else
59
0
            ;
60
0
# endif
61
0
    return 1;
62
0
}
63
#endif
64
/* End of machine generated */