cpu/esp32: use renamed SDK crypto functions
This commit is contained in:
parent
d8f0399eaa
commit
1a12f56fbd
42
cpu/esp32/vendor/esp-idf/esp32/fast_crypto_ops.c
vendored
42
cpu/esp32/vendor/esp-idf/esp32/fast_crypto_ops.c
vendored
@ -136,25 +136,25 @@ const mesh_crypto_funcs_t g_wifi_default_mesh_crypto_funcs = {
|
||||
const wpa_crypto_funcs_t g_wifi_default_wpa_crypto_funcs = {
|
||||
.size = sizeof(wpa_crypto_funcs_t),
|
||||
.version = ESP_WIFI_CRYPTO_VERSION,
|
||||
.aes_wrap = (esp_aes_wrap_t)aes_wrap,
|
||||
.aes_unwrap = (esp_aes_unwrap_t)aes_unwrap,
|
||||
.hmac_sha256_vector = (esp_hmac_sha256_vector_t)hmac_sha256_vector,
|
||||
.sha256_prf = (esp_sha256_prf_t)sha256_prf,
|
||||
.hmac_md5 = (esp_hmac_md5_t)hmac_md5,
|
||||
.hamc_md5_vector = (esp_hmac_md5_vector_t)hmac_md5_vector,
|
||||
.hmac_sha1 = (esp_hmac_sha1_t)hmac_sha1,
|
||||
.hmac_sha1_vector = (esp_hmac_sha1_vector_t)hmac_sha1_vector,
|
||||
.sha1_prf = (esp_sha1_prf_t)sha1_prf,
|
||||
.sha1_vector = (esp_sha1_vector_t)sha1_vector,
|
||||
.pbkdf2_sha1 = (esp_pbkdf2_sha1_t)pbkdf2_sha1,
|
||||
.rc4_skip = (esp_rc4_skip_t)rc4_skip,
|
||||
.md5_vector = (esp_md5_vector_t)md5_vector,
|
||||
.aes_encrypt = (esp_aes_encrypt_t)aes_encrypt,
|
||||
.aes_encrypt_init = (esp_aes_encrypt_init_t)aes_encrypt_init,
|
||||
.aes_encrypt_deinit = (esp_aes_encrypt_deinit_t)aes_encrypt_deinit,
|
||||
.aes_decrypt = (esp_aes_decrypt_t)aes_decrypt,
|
||||
.aes_decrypt_init = (esp_aes_decrypt_init_t)aes_decrypt_init,
|
||||
.aes_decrypt_deinit = (esp_aes_decrypt_deinit_t)aes_decrypt_deinit
|
||||
.aes_wrap = (esp_aes_wrap_t)wpa_aes_wrap,
|
||||
.aes_unwrap = (esp_aes_unwrap_t)wpa_aes_unwrap,
|
||||
.hmac_sha256_vector = (esp_hmac_sha256_vector_t)wpa_hmac_sha256_vector,
|
||||
.sha256_prf = (esp_sha256_prf_t)wpa_sha256_prf,
|
||||
.hmac_md5 = (esp_hmac_md5_t)wpa_hmac_md5,
|
||||
.hamc_md5_vector = (esp_hmac_md5_vector_t)wpa_hmac_md5_vector,
|
||||
.hmac_sha1 = (esp_hmac_sha1_t)wpa_hmac_sha1,
|
||||
.hmac_sha1_vector = (esp_hmac_sha1_vector_t)wpa_hmac_sha1_vector,
|
||||
.sha1_prf = (esp_sha1_prf_t)wpa_sha1_prf,
|
||||
.sha1_vector = (esp_sha1_vector_t)wpa_sha1_vector,
|
||||
.pbkdf2_sha1 = (esp_pbkdf2_sha1_t)wpa_pbkdf2_sha1,
|
||||
.rc4_skip = (esp_rc4_skip_t)wpa_rc4_skip,
|
||||
.md5_vector = (esp_md5_vector_t)wpa_md5_vector,
|
||||
.aes_encrypt = (esp_aes_encrypt_t)wpa_aes_encrypt,
|
||||
.aes_encrypt_init = (esp_aes_encrypt_init_t)wpa_aes_encrypt_init,
|
||||
.aes_encrypt_deinit = (esp_aes_encrypt_deinit_t)wpa_aes_encrypt_deinit,
|
||||
.aes_decrypt = (esp_aes_decrypt_t)wpa_aes_decrypt,
|
||||
.aes_decrypt_init = (esp_aes_decrypt_init_t)wpa_aes_decrypt_init,
|
||||
.aes_decrypt_deinit = (esp_aes_decrypt_deinit_t)wpa_aes_decrypt_deinit
|
||||
};
|
||||
#if 0 /* WPS not supported at the moment */
|
||||
const wps_crypto_funcs_t g_wifi_default_wps_crypto_funcs = {
|
||||
@ -218,7 +218,7 @@ const wpa2_crypto_funcs_t g_wifi_default_wpa2_crypto_funcs = {
|
||||
#endif
|
||||
|
||||
const mesh_crypto_funcs_t g_wifi_default_mesh_crypto_funcs = {
|
||||
.aes_128_encrypt = (esp_aes_128_encrypt_t)aes_128_cbc_encrypt,
|
||||
.aes_128_decrypt = (esp_aes_128_decrypt_t)aes_128_cbc_decrypt,
|
||||
.aes_128_encrypt = (esp_aes_128_encrypt_t)wpa_aes_128_cbc_encrypt,
|
||||
.aes_128_decrypt = (esp_aes_128_decrypt_t)wpa_aes_128_cbc_decrypt,
|
||||
};
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user