From daf10baf9e6830c6de8942cabdfb87a36ecbf984 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 2 Jul 2012 22:10:03 +0300 Subject: EAP-pwd: Replace direct OpenSSL HMAC use with wrapper This is a step towards allowing EAP-pwd to be supported with other crypto libraries. Signed-hostap: Jouni Malinen --- src/eap_common/eap_pwd_common.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/eap_common/eap_pwd_common.h') diff --git a/src/eap_common/eap_pwd_common.h b/src/eap_common/eap_pwd_common.h index 358d008..816e58c 100644 --- a/src/eap_common/eap_pwd_common.h +++ b/src/eap_common/eap_pwd_common.h @@ -10,10 +10,8 @@ #define EAP_PWD_COMMON_H #include -#include #include #include -#include /* * definition of a finite cyclic group @@ -62,8 +60,8 @@ int compute_password_element(EAP_PWD_group *, u16, u8 *, int, u8 *, int, u8 *, int, u8 *); int compute_keys(EAP_PWD_group *, BN_CTX *, BIGNUM *, BIGNUM *, BIGNUM *, u8 *, u8 *, u32 *, u8 *, u8 *); -void H_Init(HMAC_CTX *); -void H_Update(HMAC_CTX *, const u8 *, int); -void H_Final(HMAC_CTX *, u8 *); +struct crypto_hash * eap_pwd_h_init(void); +void eap_pwd_h_update(struct crypto_hash *hash, const u8 *data, size_t len); +void eap_pwd_h_final(struct crypto_hash *hash, u8 *digest); #endif /* EAP_PWD_COMMON_H */ -- cgit v1.1