public inbox for linux-crypto@vger.kernel.org
 help / color / mirror / Atom feed
* ELIBBAD vs. ENOENT for ciphers not allowed by FIPS
@ 2021-12-22 19:11 Petr Vorel
  2021-12-22 22:08 ` Herbert Xu
  0 siblings, 1 reply; 9+ messages in thread
From: Petr Vorel @ 2021-12-22 19:11 UTC (permalink / raw)
  To: Herbert Xu; +Cc: linux-crypto, Eric Biggers

Hi Herbert,

do I understand the crypto code correctly, that although crypto/testmgr.c in
alg_test() returns -EINVAL for non-fips allowed algorithms (that means
failing crypto API test) the API in crypto_alg_lookup() returns -ELIBBAD for
failed test?

Why ELIBBAD and not ENOENT like for missing ciphers? To distinguish between
missing cipher and disabled one due fips?

Kind regards,
Petr

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-12-27  5:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-22 19:11 ELIBBAD vs. ENOENT for ciphers not allowed by FIPS Petr Vorel
2021-12-22 22:08 ` Herbert Xu
2021-12-22 22:25   ` Eric Biggers
2021-12-22 22:31     ` Herbert Xu
2021-12-22 22:45       ` Eric Biggers
2021-12-23  8:21         ` Petr Vorel
2021-12-23 15:08           ` Eric Biggers
2021-12-27  5:52             ` Herbert Xu
2021-12-27  5:51         ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox