]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/wpa_supplicant/aes_wrap.h
This commit was generated by cvs2svn to compensate for changes in r147464,
[FreeBSD/FreeBSD.git] / contrib / wpa_supplicant / aes_wrap.h
1 #ifndef AES_WRAP_H
2 #define AES_WRAP_H
3
4 void aes_wrap(u8 *kek, int n, u8 *plain, u8 *cipher);
5 int aes_unwrap(u8 *kek, int n, u8 *cipher, u8 *plain);
6 void omac1_aes_128(const u8 *key, const u8 *data, size_t data_len, u8 *mac);
7 void aes_128_encrypt_block(const u8 *key, const u8 *in, u8 *out);
8 void aes_128_ctr_encrypt(const u8 *key, const u8 *nonce,
9                          u8 *data, size_t data_len);
10 int aes_128_eax_encrypt(const u8 *key, const u8 *nonce, size_t nonce_len,
11                         const u8 *hdr, size_t hdr_len,
12                         u8 *data, size_t data_len, u8 *tag);
13 int aes_128_eax_decrypt(const u8 *key, const u8 *nonce, size_t nonce_len,
14                         const u8 *hdr, size_t hdr_len,
15                         u8 *data, size_t data_len, const u8 *tag);
16 void aes_128_cbc_encrypt(const u8 *key, const u8 *iv, u8 *data,
17                          size_t data_len);
18 void aes_128_cbc_decrypt(const u8 *key, const u8 *iv, u8 *data,
19                          size_t data_len);
20
21 #endif /* AES_WRAP_H */