diff options
author | Jouni Malinen <j@w1.fi> | 2012-07-02 22:10:03 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-07-02 22:10:03 +0300 |
commit | daf10baf9e6830c6de8942cabdfb87a36ecbf984 (patch) | |
tree | a186342482bd317205e518616d944cf7d0d0ee34 /src/eap_common/eap_pwd_common.h | |
parent | d9cc4646eb0255be31f11d8a8edad857431fdf49 (diff) | |
download | external_wpa_supplicant_8_ti-daf10baf9e6830c6de8942cabdfb87a36ecbf984.zip external_wpa_supplicant_8_ti-daf10baf9e6830c6de8942cabdfb87a36ecbf984.tar.gz external_wpa_supplicant_8_ti-daf10baf9e6830c6de8942cabdfb87a36ecbf984.tar.bz2 |
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 <j@w1.fi>
Diffstat (limited to 'src/eap_common/eap_pwd_common.h')
-rw-r--r-- | src/eap_common/eap_pwd_common.h | 8 |
1 files changed, 3 insertions, 5 deletions
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 <openssl/bn.h> -#include <openssl/sha.h> #include <openssl/ec.h> #include <openssl/evp.h> -#include <openssl/hmac.h> /* * 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 */ |