aes_wrap.h

Go to the documentation of this file.
00001 
00023 #ifndef AES_WRAP_H
00024 #define AES_WRAP_H
00025 
00026 int __must_check aes_wrap(const u8 *kek, int n, const u8 *plain, u8 *cipher);
00027 int __must_check aes_unwrap(const u8 *kek, int n, const u8 *cipher, u8 *plain);
00028 int __must_check omac1_aes_128_vector(const u8 *key, size_t num_elem,
00029                                       const u8 *addr[], const size_t *len,
00030                                       u8 *mac);
00031 int __must_check omac1_aes_128(const u8 *key, const u8 *data, size_t data_len,
00032                                u8 *mac);
00033 int __must_check aes_128_encrypt_block(const u8 *key, const u8 *in, u8 *out);
00034 int __must_check aes_128_ctr_encrypt(const u8 *key, const u8 *nonce,
00035                                      u8 *data, size_t data_len);
00036 int __must_check aes_128_eax_encrypt(const u8 *key,
00037                                      const u8 *nonce, size_t nonce_len,
00038                                      const u8 *hdr, size_t hdr_len,
00039                                      u8 *data, size_t data_len, u8 *tag);
00040 int __must_check aes_128_eax_decrypt(const u8 *key,
00041                                      const u8 *nonce, size_t nonce_len,
00042                                      const u8 *hdr, size_t hdr_len,
00043                                      u8 *data, size_t data_len, const u8 *tag);
00044 int __must_check aes_128_cbc_encrypt(const u8 *key, const u8 *iv, u8 *data,
00045                                      size_t data_len);
00046 int __must_check aes_128_cbc_decrypt(const u8 *key, const u8 *iv, u8 *data,
00047                                      size_t data_len);
00048 
00049 #endif /* AES_WRAP_H */
00050 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:16:50 2009 for hostapd by  doxygen 1.6.1