From 6c04e3ee6a5542db56c232771c94e49af2a56db3 Mon Sep 17 00:00:00 2001 From: Tian Hao Date: Sat, 8 Jul 2017 21:47:01 +0800 Subject: [PATCH] component/bt : comment out set_key_dec for res cfb128(software crypt) --- examples/bluetooth/blufi/main/blufi_security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bluetooth/blufi/main/blufi_security.c b/examples/bluetooth/blufi/main/blufi_security.c index 1005c94c1..01582315b 100644 --- a/examples/bluetooth/blufi/main/blufi_security.c +++ b/examples/bluetooth/blufi/main/blufi_security.c @@ -121,7 +121,7 @@ void blufi_dh_negotiate_data_handler(uint8_t *data, int len, uint8_t **output_da mbedtls_md5(blufi_sec->share_key, blufi_sec->share_len, blufi_sec->psk); mbedtls_aes_setkey_enc(&blufi_sec->aes, blufi_sec->psk, 128); - mbedtls_aes_setkey_dec(&blufi_sec->aes, blufi_sec->psk, 128); + //mbedtls_aes_setkey_dec(&blufi_sec->aes, blufi_sec->psk, 128); /* alloc output data */ *output_data = &blufi_sec->self_public_key[0];