Re: how to verify which crypto driver is loaded by crypto_alloc_shash when more than one available for the algorithm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 20 Jun 2024 at 00:03, Steve French <smfrench@xxxxxxxxx> wrote:
>
> Was trying to see which driver was loaded by:
>
>    crypto_alloc_shash(hmac(md5), ...);
>
> and it was confusing because it looked like there were at least five
> drivers that export that cra_name (most presumably hardware specific),
> so was wondering what is the "default" that would be chosen and how to
> tell which of the five ended up being used.
>

You could check the cra_driver_name of the shash's underlying crypto_alg

crypto_alloc_shash(hmac(md5), ...)->base.alg->cra_driver_name




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux