Debian Codegraph @

tests/external_override/mlkem768_override.h

raw
1 /*
2 * This file is part of the SSH Library
3 *
4 * Copyright (c) 2021 - 2025 Red Hat, Inc.
5 *
6 * Authors: Anderson Toshiyuki Sasaki
7 * Jakub Jelen <[email protected]>
8 *
9 * The SSH Library is free software: you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation, either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * The SSH Library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with the SSH Library; see the file COPYING. If not,
21 * see <https://www.gnu.org/licenses/>.
22 */
23
24 #include "libssh/mlkem_native.h"
25
26 libcrux_ml_kem_mlkem768_MlKem768KeyPair
27 __wrap_libcrux_ml_kem_mlkem768_portable_generate_key_pair(
28 uint8_t randomness[64U]);
29
30 bool __wrap_libcrux_ml_kem_mlkem768_portable_validate_public_key(
31 libcrux_ml_kem_types_MlKemPublicKey_30 *public_key);
32
33 tuple_c2 __wrap_libcrux_ml_kem_mlkem768_portable_encapsulate(
34 libcrux_ml_kem_types_MlKemPublicKey_30 *public_key,
35 uint8_t randomness[32U]);
36
37 void __wrap_libcrux_ml_kem_mlkem768_portable_decapsulate(
38 libcrux_ml_kem_types_MlKemPrivateKey_d9 *private_key,
39 libcrux_ml_kem_mlkem768_MlKem768Ciphertext *ciphertext,
40 uint8_t ret[32U]);
41
42 bool internal_mlkem768_function_called(void);
43 void reset_mlkem768_function_called(void);