$search
00001 /* 00002 * MD5 hash implementation and interface functions 00003 * Copyright (c) 2003-2009, 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 MD5_H 00016 #define MD5_H 00017 00018 #define MD5_MAC_LEN 16 00019 00020 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem, 00021 const u8 *addr[], const size_t *len, u8 *mac); 00022 int hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len, 00023 u8 *mac); 00024 #ifdef CONFIG_FIPS 00025 int hmac_md5_vector_non_fips_allow(const u8 *key, size_t key_len, 00026 size_t num_elem, const u8 *addr[], 00027 const size_t *len, u8 *mac); 00028 int hmac_md5_non_fips_allow(const u8 *key, size_t key_len, const u8 *data, 00029 size_t data_len, u8 *mac); 00030 #else /* CONFIG_FIPS */ 00031 #define hmac_md5_vector_non_fips_allow hmac_md5_vector 00032 #define hmac_md5_non_fips_allow hmac_md5 00033 #endif /* CONFIG_FIPS */ 00034 00035 #endif /* MD5_H */