<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/lib/sm3.c, branch v2026.07</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/lib/sm3.c?h=v2026.07</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/lib/sm3.c?h=v2026.07'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-02-11T09:13:47Z</updated>
<entry>
<title>lib: sm3: fix coverity error</title>
<updated>2026-02-11T09:13:47Z</updated>
<author>
<name>Heiko Schocher</name>
<email>hs@nabladev.com</email>
</author>
<published>2026-01-23T02:25:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=546687c8dc249447215d091165ed9e820a3f395e'/>
<id>urn:sha1:546687c8dc249447215d091165ed9e820a3f395e</id>
<content type='text'>
Coverity scan reported:

CID 449815:         Memory - illegal accesses  (OVERRUN)
Overrunning array of 64 bytes at byte offset 64 by dereferencing pointer
"sctx-&gt;buffer + partial". [Note: The source code implementation of the
function has been overridden by a builtin model.]

In line: 252
   memset(sctx-&gt;buffer + partial, 0, SM3_BLOCK_SIZE - partial);

The respective line should be:

memset(sctx-&gt;buffer + partial, 0, SM3_BLOCK_SIZE - partial - 1);

as partial gets incremented by one before.

Signed-off-by: Heiko Schocher &lt;hs@nabladev.com&gt;
Acked-by: Ilias Apalodimas &lt;ilias.apalodimas@linaro.org&gt;
Signed-off-by: Ilias Apalodimas &lt;ilias.apalodimas@linaro.org&gt;
</content>
</entry>
<entry>
<title>lib: sm3: implement U-Boot parts</title>
<updated>2025-12-04T15:38:58Z</updated>
<author>
<name>Heiko Schocher</name>
<email>hs@nabladev.com</email>
</author>
<published>2025-11-18T04:30:39Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c4ab316269debc321907acc4f8f02dfe5653aeaf'/>
<id>urn:sha1:c4ab316269debc321907acc4f8f02dfe5653aeaf</id>
<content type='text'>
add the U-Boot specific parts for the SM3 hash
implementation:

Signed-off-by: Heiko Schocher &lt;hs@nabladev.com&gt;
</content>
</entry>
<entry>
<title>lib: import sm3 256 hash parts from linux</title>
<updated>2025-12-04T15:38:58Z</updated>
<author>
<name>Heiko Schocher</name>
<email>hs@nabladev.com</email>
</author>
<published>2025-11-18T04:30:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=41c0131b950a16747929ab310588cf5db8e38123'/>
<id>urn:sha1:41c0131b950a16747929ab310588cf5db8e38123</id>
<content type='text'>
Implement SM3_256 Hash algorithm, based on
linux commit f83a4f2a4d8c: ("Merge tag 'erofs-for-6.17-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs")

Therefore add the needed parts from linux.

Signed-off-by: Heiko Schocher &lt;hs@nabladev.com&gt;
Acked-by: Ilias Apalodimas &lt;ilias.apalodimas@linaro.org&gt;
</content>
</entry>
</feed>
