-
Notifications
You must be signed in to change notification settings - Fork 29
/
aes_whitebox.h
34 lines (26 loc) · 950 Bytes
/
aes_whitebox.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
// Copyright 2019 AES WBC Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef AES_WHITEBOX_H_
#define AES_WHITEBOX_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
#include <stddef.h>
void aes_whitebox_encrypt_cfb(const uint8_t iv[16], const uint8_t* m,
size_t len, uint8_t* c);
void aes_whitebox_decrypt_cfb(const uint8_t iv[16], const uint8_t* c,
size_t len, uint8_t* m);
void aes_whitebox_encrypt_ofb(const uint8_t iv[16], const uint8_t* m,
size_t len, uint8_t* c);
void aes_whitebox_decrypt_ofb(const uint8_t iv[16], const uint8_t* c,
size_t len, uint8_t* m);
void aes_whitebox_encrypt_ctr(const uint8_t nonce[16], const uint8_t* m,
size_t len, uint8_t* c);
void aes_whitebox_decrypt_ctr(const uint8_t nonce[16], const uint8_t* c,
size_t len, uint8_t* m);
#ifdef __cplusplus
}
#endif
#endif // AES_WHITEBOX_H_