bugfix of wpa2 assert when use sha256 do signature

The order of wpa2_crypto_funcs_t structure mismatch between IDF and wifi libray

close github issue https://github.com/espressif/esp-idf/issues/1297
This commit is contained in:
Deng Xin
2018-03-19 21:18:37 +08:00
parent a58a2b6f6d
commit bc97b0f380
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ const wpa2_crypto_funcs_t g_wifi_default_wpa2_crypto_funcs = {
.crypto_cipher_encrypt = (esp_crypto_cipher_encrypt_t)fast_crypto_cipher_encrypt,
.crypto_cipher_decrypt = (esp_crypto_cipher_decrypt_t)fast_crypto_cipher_decrypt,
.crypto_cipher_deinit = (esp_crypto_cipher_deinit_t)fast_crypto_cipher_deinit,
.sha256_vector = (esp_sha256_vector_t)fast_sha256_vector,
.crypto_mod_exp = (esp_crypto_mod_exp_t)crypto_mod_exp
.crypto_mod_exp = (esp_crypto_mod_exp_t)crypto_mod_exp,
.sha256_vector = (esp_sha256_vector_t)fast_sha256_vector
};