| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
#include <config.h> |
| 24 |
|
| 25 |
#include <stddef.h> |
| 26 |
#include <stdint.h> |
| 27 |
|
| 28 |
#include <err.h> |
| 29 |
|
| 30 |
#include <aircrack-ng/defs.h> |
| 31 |
#include <aircrack-ng/crypto/aes.h> |
| 32 |
|
| 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 |
} |