Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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
00031 #define hmac_md5_vector_non_fips_allow hmac_md5_vector
00032 #define hmac_md5_non_fips_allow hmac_md5
00033 #endif
00034
00035 #endif