<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/test/dm/hash.c, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/test/dm/hash.c?h=main</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/test/dm/hash.c?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-08-20T18:15:24Z</updated>
<entry>
<title>test: dm: hash: check digest size before memset</title>
<updated>2026-08-20T18:15:24Z</updated>
<author>
<name>James Hilliard</name>
<email>james.hilliard1@gmail.com</email>
</author>
<published>2026-08-11T05:17:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6073c36b2c8d39afe3ecc789b281667a3ddebc70'/>
<id>urn:sha1:6073c36b2c8d39afe3ecc789b281667a3ddebc70</id>
<content type='text'>
hash_algo_digest_size() returns -EINVAL for an invalid algorithm. The
test success provider passes that result directly to memset(), where it
is converted to a large size_t.

Return the error before touching the output buffer, and exercise the
invalid-algorithm path in the provider-selection test. This addresses
Coverity CIDs 652907 and 652908.

Fixes: 94b349bd902d ("crypto: hash: use DM providers from hash command")
Signed-off-by: James Hilliard &lt;james.hilliard1@gmail.com&gt;
</content>
</entry>
<entry>
<title>crypto: hash: use DM providers from hash command</title>
<updated>2026-07-29T20:53:46Z</updated>
<author>
<name>James Hilliard</name>
<email>james.hilliard1@gmail.com</email>
</author>
<published>2026-07-21T03:11:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=94b349bd902d9e38e1846c157fadd9054c34680a'/>
<id>urn:sha1:94b349bd902d9e38e1846c157fadd9054c34680a</id>
<content type='text'>
The hash command currently always uses the software implementation for
the selected algorithm, even when driver-model hash providers are
available.

Add a hash_digest_wd_lookup() helper which probes UCLASS_HASH devices in
order and uses the first provider supporting the requested algorithm.
Continue past unavailable providers and unsupported operations, but
propagate a hard digest failure once a provider accepts the operation.
Remember probe failures so they are not silently hidden by software
fallback when no later provider succeeds.

Use the helper from the hash command and retain its software fallback
when no usable provider is present. Add sandbox tests covering provider
fallback and hard-error propagation.

Signed-off-by: James Hilliard &lt;james.hilliard1@gmail.com&gt;
</content>
</entry>
</feed>
