12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ #include "sdkconfig.h"
16
+
15
17
#include "crypto/common.h"
16
18
#include "crypto/aes_wrap.h"
17
19
#include "crypto/sha256.h"
@@ -137,44 +139,4 @@ const wps_crypto_funcs_t g_wifi_default_wps_crypto_funcs = {
137
139
.wps_is_selected_pbc_registrar = (esp_wps_is_selected_pbc_registrar_t )wps_is_selected_pbc_registrar ,
138
140
.eap_msg_alloc = (esp_eap_msg_alloc_t )eap_msg_alloc
139
141
};
140
- #endif
141
- /*
142
- * What should notice is that the cyrpto hash type function and crypto cipher type function can not register
143
- * as different, i.e, if you use fast_crypto_hash_init, you should use fast_crypto_hash_update and
144
- * fast_crypto_hash_finish for finish hash calculate, rather than call crypto_hash_update and
145
- * crypto_hash_finish, so do crypto_cipher.
146
- */
147
- #if 0
148
- const wpa2_crypto_funcs_t g_wifi_default_wpa2_crypto_funcs = {
149
- .size = sizeof (wpa2_crypto_funcs_t ),
150
- .version = ESP_WIFI_CRYPTO_VERSION ,
151
- .crypto_hash_init = (esp_crypto_hash_init_t )fast_crypto_hash_init ,
152
- .crypto_hash_update = (esp_crypto_hash_update_t )fast_crypto_hash_update ,
153
- .crypto_hash_finish = (esp_crypto_hash_finish_t )fast_crypto_hash_finish ,
154
- .crypto_cipher_init = (esp_crypto_cipher_init_t )fast_crypto_cipher_init ,
155
- .crypto_cipher_encrypt = (esp_crypto_cipher_encrypt_t )fast_crypto_cipher_encrypt ,
156
- .crypto_cipher_decrypt = (esp_crypto_cipher_decrypt_t )fast_crypto_cipher_decrypt ,
157
- .crypto_cipher_deinit = (esp_crypto_cipher_deinit_t )fast_crypto_cipher_deinit ,
158
- .crypto_mod_exp = (esp_crypto_mod_exp_t )crypto_mod_exp ,
159
- .sha256_vector = (esp_sha256_vector_t )fast_sha256_vector ,
160
- .tls_init = (esp_tls_init_t )tls_init ,
161
- .tls_deinit = (esp_tls_deinit_t )tls_deinit ,
162
- .eap_peer_blob_init = (esp_eap_peer_blob_init_t )eap_peer_blob_init ,
163
- .eap_peer_blob_deinit = (esp_eap_peer_blob_deinit_t )eap_peer_blob_deinit ,
164
- .eap_peer_config_init = (esp_eap_peer_config_init_t )eap_peer_config_init ,
165
- .eap_peer_config_deinit = (esp_eap_peer_config_deinit_t )eap_peer_config_deinit ,
166
- .eap_peer_register_methods = (esp_eap_peer_register_methods_t )eap_peer_register_methods ,
167
- .eap_peer_unregister_methods = (esp_eap_peer_unregister_methods_t )eap_peer_unregister_methods ,
168
- .eap_deinit_prev_method = (esp_eap_deinit_prev_method_t )eap_deinit_prev_method ,
169
- .eap_peer_get_eap_method = (esp_eap_peer_get_eap_method_t )eap_peer_get_eap_method ,
170
- .eap_sm_abort = (esp_eap_sm_abort_t )eap_sm_abort ,
171
- .eap_sm_build_nak = (esp_eap_sm_build_nak_t )eap_sm_build_nak ,
172
- .eap_sm_build_identity_resp = (esp_eap_sm_build_identity_resp_t )eap_sm_build_identity_resp ,
173
- .eap_msg_alloc = (esp_eap_msg_alloc_t )eap_msg_alloc
174
- };
175
-
176
- const mesh_crypto_funcs_t g_wifi_default_mesh_crypto_funcs = {
177
- .aes_128_encrypt = (esp_aes_128_encrypt_t )fast_aes_128_cbc_encrypt ,
178
- .aes_128_decrypt = (esp_aes_128_decrypt_t )fast_aes_128_cbc_decrypt ,
179
- };
180
142
#endif
0 commit comments