-
Notifications
You must be signed in to change notification settings - Fork 3
/
aes.h
34 lines (32 loc) · 1.36 KB
/
aes.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* aes.h - AES interface
*
* Copyright (C) 2018 Sergei Glushchenko
* Author: Sergei Glushchenko <[email protected]>
*
* This file is a part of Chpostx port to EFM32HG
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* As additional permission under GNU GPL version 3 section 7, you may
* distribute non-source form of the Program without the copy of the
* GNU GPL normally required by section 4, provided you inform the
* recipients of GNU GPL by a written offer.
*
*/
#include <stdint.h>
void aes_cbc128_encrypt (uint8_t *out, const uint8_t *in, unsigned int len,
const uint8_t *key, const uint8_t *iv);
void aes_cbc128_decrypt (uint8_t *out, const uint8_t *in, unsigned int len,
const uint8_t *key, const uint8_t *iv);