Debian Codegraph @

lib/crypto/mac-omac1-generic.c

raw symbols SCIP
1 // clang-format offcxx . . $ `<file>/lib/crypto/mac-omac1-generic.c`/
2 /**
3 * \file mac-omac1-generic.c
4 *
5 * \brief One-Key CBC MAC (OMAC1) hash with AES.
6 *
7 * \author Joseph Benden <[email protected]>
8 *
9 * \license BSD-3-CLAUSE
10 *
11 * \ingroup
12 * \cond
13 ******************************************************************************
14 *
15 * SPDX-License-Identifier: BSD-3-CLAUSE
16 *
17 ******************************************************************************
18 * \endcond
19 */
20
21 #ifdef HAVE_CONFIG_Hcxx . . $ `<built-in>:411:9`!
22 #include <config.h>cxx . . $ `<file>/config.h`/
23 #endif
24
25 #include <stddef.h> // size_t
26 #include <stdint.h> // [u]int[8,16,32,64]_t
27
28 #include "aircrack-ng/defs.h"cxx . . $ `<file>/include/aircrack-ng/defs.h`/
29 #include "aircrack-ng/crypto/crypto.h"cxx . . $ `<file>/include/aircrack-ng/crypto/crypto.h`/
30 // clang-format on
31
32 API_EXPORTcxx . . $ `include/aircrack-ng/defs.h:94:9`!
33 int MAC_OMAC1_AES_Vectorcxx . . $ MAC_OMAC1_AES_Vector(2564766a35c3f83a).(size_t key_len,
34 const uint8_tcxx . . $ uint8_t# key[static key_len],
35 size_t num_elem,
36 const uint8_tcxx . . $ uint8_t# * addr[],
37 const size_t * len,
38 uint8_tcxx . . $ uint8_t# * mac)
39 {
40 UNUSED_PARAMcxx . . $ `include/aircrack-ng/defs.h:144:9`!(key);
41 UNUSED_PARAMcxx . . $ `include/aircrack-ng/defs.h:144:9`!(num_elem);
42 UNUSED_PARAMcxx . . $ `include/aircrack-ng/defs.h:144:9`!(addr);
43 UNUSED_PARAMcxx . . $ `include/aircrack-ng/defs.h:144:9`!(len);
44 UNUSED_PARAMcxx . . $ `include/aircrack-ng/defs.h:144:9`!(mac);
45
46 fprintfcxx . . $ fprintf(bc216f8e5b1ebeac).(stderrcxx . . $ `<external>/232824719582829767/stdio.h:155:9`!,
47 "OMAC1 is only supported when OpenSSL (or similar) "
48 "supports CMAC.\n");
49
50 return (-1);
51 }