完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我的设计使用外部ECC设备从Atmel的atecc508a / atecc608a。
该装置可以安全地存储私钥内部且无法恢复,因此所有ECC功能是由芯片处理。 我要用这mbedtls和wiced_tls。 我不懂如何设置客户端certififcate在wiced_tls没有私人密钥。底层调用mbedtls看起来需要私钥以及。 我有一个轻微的想法如何添加备用功能mbedtls为ECDH /签名功能。 有人做过这件事吗?有什么想法吗? 以上来自于百度翻译 以下为原文 My design uses an external ECC device from Atmel, the ATECC508A/ATECC608A. The device securely stores the private key internally and cannot be retrieved, so all ECC functions is handled by the chip. I need to use this with mbedTLS and wiced_tls. I do no understand how to set a client certififcate in wiced_tls without the private key. The underlying calls into mbedTLS looks like it requires the private key as well. I have a slight idea of how to add alternate functions to mbedTLS for ECDH / ECDSA functions. Has anyone done this? Any ideas? |
|
相关推荐
3个回答
|
|
请看这篇文章HTTPS://TLS.MBOD.Org/DealsCs/GANICIC/MBODSTLS-Puff-For外部密钥和CLST-片上的帮助。基本上,您需要覆盖使用您的芯片执行的功能的私钥的ECDH/ECDSA功能。
以上来自于百度翻译 以下为原文 Please see if this post https://tls.mbed.org/discussions/generic/mbedtls-support-for-external-keys-and-certs-on-chip helps. Basically you would need to override the ECDH/ECDSA functions that use private key with the functions performed by your chip. |
|
|
|
asd013 发表于 2018-8-20 07:50 谢谢!我遇到的信息和我工作的变化。的wiced_tls_init_identity功能怎么样,这需要一个私钥和客户端证书作为参数?看起来这最终得到一个mbedtls那里的信息存储在一个链表。有什么问题,只是通过设备证书而留下的私人密钥无效?我需要为我的MQTT服务器通信设置客户端证书(要求客户端身份验证)。 以上来自于百度翻译 以下为原文 Thanks! I did come across that information and I am working towards those changes. What about the wiced_tls_init_identity function, which takes a private key and client cert as parameters? It looks like this eventually gets to a mbedTLS where the info is stored in a linked list. Is there any issue with just passing the device cert while leaving the private key NULL? I will need to set a client certificate for communicating with my MQTT server (Requires client authentication). |
|
|
|
cmh23 发表于 2018-8-20 08:05 我加了四种函数来重写默认行为:ecdsa_sign,ecdsa_verify,ecdh_compute_shared,和ecp_gen_public。 使用mbedtls_mpi_read_binary或mbedtls_mpi_write_binary到mbedtls MPI结构和atecc508二进制数组之间的转换。 对于wiced_tls_init_identity,我不得不将“假”PEM的私钥,否则设备证书不写入内部数据结构和mbedtls未配置ECC。 以上来自于百度翻译 以下为原文 I added four alternative functions to override the default behavior: ecdsa_sign, ecdsa_verify, ecdh_compute_shared, and ecp_gen_public. Use mbedtls_mpi_read_binary or mbedtls_mpi_write_binary to convert between mbedTLS mpi structures and the ATECC508 binary arrays. For wiced_tls_init_identity, I had to load a "fake" pem private key, otherwise the device certificate is not written to the internal data structure and mbedTLS is not configured for ECC. |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2069 浏览 1 评论
1824 浏览 1 评论
3633 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1509 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
507浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
357浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
854浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 07:46 , Processed in 1.103810 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号