<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[数据长度较大时，RSA验签失败]]></title><description><![CDATA[<p dir="auto">使用YTM32B1HA01的SDK包中的MBEDTLS进行RSA4096+SHA256签名验签，已经验证了0x1000字节的数据可以正常验签通过，CRYPTO_ENGINE_BUF_SIZE配置为20480；<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/189/791a3322-2a51-4f16-834b-7dd6fea5faee.png" alt="115ab909-7ca6-4b72-b15d-38a3ae906be4-image.png" class=" img-fluid img-markdown" /><br />
验证正式APP程序时，验签失败，返回值是-141，PSA_ERROR_INSUFFICIENT_MEMORY（运行时内存不足）<br />
<img src="https://yt-static-main.oss-cn-shanghai.aliyuncs.com/nodebb/189/070fc4c6-567f-4eb7-9bfd-dbb807fc29c9.jpg" alt="2acccdc3-cb0b-4234-a706-8045f999bf85-img_v3_0215r_7fe2c7ec-9d9f-4de6-939b-6b958a05e45g.jpg" class=" img-fluid img-markdown" /><br />
因为数据长度较大，将近400K的数据，如果增大宏CRYPTO_ENGINE_BUF_SIZE来匹配数据量，会编译错误，没有这么多flash空间可用。有什么办法可以支持400K数据签名验签吗？感谢</p>
]]></description><link>https://forum.ytmicro.com/topic/2267/数据长度较大时-rsa验签失败</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 22:53:16 GMT</lastBuildDate><atom:link href="https://forum.ytmicro.com/topic/2267.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Sep 2026 10:01:19 GMT</pubDate><ttl>60</ttl></channel></rss>