yabo国际娱乐对话半导体客户支持-加密 https://support.dialog-semiconductor.com/resource-keywords/crypto 无法使用AES硬件加密块 https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-42-%E2%80%93-software/unable-use-aes-hardware-encryption < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >嗨< / p > < p >我想对一些使用AES硬件加密用户数据,基于BLE app barebone

我已经通过论坛的其余文档,但它没有帮助。

我的代码如下:

struct gapm_use_enc_block_cmd *enccmd = KE_MSG_ALLOC(gapm_use_enc_block_cmd, TASK_GAPM, TASK_APP,gapm_use_enc_block_cmd); < br / > enccmd→操作= GAPM_USE_ENC_BLOCK; < br / > uint8_t关键[16]= {0 x00 0 x01 0 x02, 0 x03, 0 x04 0 x05 0 x06 0 x07, 0 (0 x09 0 x0a 0 x0b 0 x0c 0 x0d 0 x0e 0 x0f}; < br / > uint8_t pt [16] = {0 x00 (x11) 0 0将0 x33, 0 x44 0 x55 0 x66 0 x77 0 x88 0 x99 0 xaa 0 xbb 0 xcc, 0 xdd 0 xee, 0 xff}; < br / > memcpy (enccmd→operand_1,钥匙,16);< br / >memcpy (enccmd→operand_2、pt、16);< br / > ke_msg_send (enccmd); < / p > < p >这是底部的user_app_init (); < / p > < p >, < / p > < p >我添加user_catch_rest_hndl < / p > < p >案例GAPM_USE_ENC_BLOCK_IND: < br / > {< br / > struct GAPM_USE_ENC_BLOCK_IND const * msg_param = (struct GAPM_USE_ENC_BLOCK_IND const *)(参数),< br / > uint8_t密文[16],< br/ > memcpy(密文,msg_param→结果,16);< br / >如果(密文[0]= = 0 x01) {< br / >密文[0]+ +;< br / >} < / p > < p >如果(密文[0]= = 0 x01) {< br / >——密文[0];< br / >} < br / >} < br / >打破;< / p > < p >添加断点,但似乎从未的消息。你能帮我找出我失踪/做错了什么? < / p > < p >谢谢< / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords /加密”typeof = " skos:概念”属性= " rdfs: label skos: prefLabel”数据类型= " " >加密< / > < / div > < div class = " field-item古怪”> < a href = " / resource-keywords / aes”“=“skos:概念”属性=“rdfs: label skos: prefLabel”数据类型= " " > aes < / > < / div > < / div > < / div > < div class =”字段field-name-field-device field-type-taxonomy-term-reference field-label-above”> < div

Device: < div class="field-item ">
2016年11月17日星期四07:49:42 +0000 ankitdaf 4937年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-42-%E2%80%93-software/unable-use-aes-hardware-encryption#comments