Debian Codegraph @

lib/crypto/aes-128-cbc-generic.c

raw symbols SCIP
1 // clang-format off
2 /**
3 * \file aes-128-cbc-generic.c
4 *
5 * \brief AES 128-bit with CBC encryption routines
6 *
7 * \author Joseph Benden <[email protected]>
8 * \author Jouni Malinen <[email protected]>
9 *
10 * \license BSD-3-CLAUSE
11 *
12 * \ingroup
13 * \cond
14 ******************************************************************************
15 *
16 * Portions Copyright (c) 2003-2016, Jouni Malinen <[email protected]>
17 * SPDX-License-Identifier: BSD-3-CLAUSE
18 *
19 ******************************************************************************
20 * \endcond
21 */
22
23 #include <config.h>
24
25 #include <stddef.h> // {s,ss}ize_t
26 #include <stdint.h> // [u]int[8,16,32,64]_t
27
28 #include <err.h> // err{,x} warn{,x}
29
30 #include <aircrack-ng/defs.h>
31 #include <aircrack-ng/crypto/aes.h>
32 // clang-format on
33
34 API_EXPORT
35 Cipher_AES_CTX * Cipher_AES_Encrypt_Init(size_t len,
36 const uint8_t key[static len])
37 {
38 REQUIRE(len > 0);
39 (void) key;
40
41 return (NULL);
42 }
43
44 API_EXPORT
45 int Cipher_AES_Encrypt(Cipher_AES_CTX * ctx,
46 const uint8_t * plain,
47 uint8_t * crypt)
48 {
49 REQUIRE(ctx != NULL);
50 REQUIRE(plain != NULL);
51 REQUIRE(crypt != NULL);
52 return (0);
53 }
54
55 API_EXPORT
56 void Cipher_AES_Encrypt_Deinit(Cipher_AES_CTX * ctx)
57 {
58 REQUIRE(ctx != NULL);
59 }