forked from r00t1024/nandflasher
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaes.h
More file actions
23 lines (18 loc) · 687 Bytes
/
aes.h
File metadata and controls
23 lines (18 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
BootMii - a Free Software replacement for the Nintendo/BroadOn IOS.
Requires mini.
# This code is licensed to you under the terms of the GNU GPL, version 2;
# see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
*/
#ifndef __AES_H__
#define __AES_H__
#define HARDWARE_AES 0
void my_aes_set_key(u8 *key);
void my_aes_decrypt(u8 *iv, u8 *inbuf, u8 *outbuf, unsigned long long len);
void my_aes_encrypt(u8 *iv, u8 *inbuf, u8 *outbuf, unsigned long long len);
void aes_reset(void);
void aes_set_key(u8 *key);
void aes_set_iv(u8 *iv);
void aes_decrypt(u8 *src, u8 *dst, u32 blocks, u8 keep_iv);
void aes_encrypt(u8 *src, u8 *dst, u32 blocks, u8 keep_iv);
#endif