* How to detect availability of asynchronous ciphers at runtime?
@ 2016-03-26 18:06 Jeffrey Walton
2016-03-26 18:09 ` Vladimir Zapolskiy
0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Walton @ 2016-03-26 18:06 UTC (permalink / raw)
To: linux-crypto
Hi Everyone,
Please forgive my ignorance here... I'm trying to detect the
availability of asynchronous ciphers support at runtime. The back
story is there's some feature tests going on based on hard coded
kernel version numbers (namely, 4.1). I feel like there's probably a
better way to go about it.
It seems like 'socket(AF_ALG, ...)' is not enough since that only
detects availability of userland crypto support.
How do I detect the availability of asynchronous ciphers at runtime?
Thank you in advance.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to detect availability of asynchronous ciphers at runtime?
2016-03-26 18:06 How to detect availability of asynchronous ciphers at runtime? Jeffrey Walton
@ 2016-03-26 18:09 ` Vladimir Zapolskiy
0 siblings, 0 replies; 2+ messages in thread
From: Vladimir Zapolskiy @ 2016-03-26 18:09 UTC (permalink / raw)
To: noloader, linux-crypto
On 26.03.2016 20:06, Jeffrey Walton wrote:
> Hi Everyone,
>
> Please forgive my ignorance here... I'm trying to detect the
> availability of asynchronous ciphers support at runtime. The back
> story is there's some feature tests going on based on hard coded
> kernel version numbers (namely, 4.1). I feel like there's probably a
> better way to go about it.
>
> It seems like 'socket(AF_ALG, ...)' is not enough since that only
> detects availability of userland crypto support.
>
> How do I detect the availability of asynchronous ciphers at runtime?
>
> Thank you in advance.
Try this method:
# cat /proc/crypto | egrep '^(name|driver|async|$)'
--
With best wishes,
Vladimir
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-26 18:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-26 18:06 How to detect availability of asynchronous ciphers at runtime? Jeffrey Walton
2016-03-26 18:09 ` Vladimir Zapolskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).