Debian Codegraph @

tests/external_override/sntrup761_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/sntrup761.h"
25
26 void __wrap_sntrup761_keypair(uint8_t *pk,
27 uint8_t *sk,
28 void *random_ctx,
29 sntrup761_random_func *random);
30
31 void __wrap_sntrup761_enc(uint8_t *c,
32 uint8_t *k,
33 const uint8_t *pk,
34 void *random_ctx,
35 sntrup761_random_func *random);
36
37 void __wrap_sntrup761_dec(uint8_t *k, const uint8_t *c, const uint8_t *sk);
38
39 bool internal_sntrup761_function_called(void);
40 void reset_sntrup761_function_called(void);