sha256.h
Go to the documentation of this file.
00001 /*
00002  * SHA256 hash implementation and interface functions
00003  * Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #ifndef SHA256_H
00016 #define SHA256_H
00017 
00018 #define SHA256_MAC_LEN 32
00019 
00020 void hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem,
00021                       const u8 *addr[], const size_t *len, u8 *mac);
00022 void hmac_sha256(const u8 *key, size_t key_len, const u8 *data,
00023                  size_t data_len, u8 *mac);
00024 void sha256_prf(const u8 *key, size_t key_len, const char *label,
00025               const u8 *data, size_t data_len, u8 *buf, size_t buf_len);
00026 
00027 #endif /* SHA256_H */


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:33:21