2016-03-25 08:49:57

by Jeffrey Walton

[permalink] [raw]
Subject: Userland crypto api test cases and test programs?

Hi Everyone,

I've been doing some testing of OpenSSL's upcoming 1.1.0. OpenSSL
includes an Engine wrapper for the userland crypto exposed through the
kernel's AF_ALG socket domain.

The upcoming code experiences somewhat unexplained failures on
occasion. I think its partly related to the asynchronous ciphers. For
example, trying to set the key for a skcipher results in EBUSY (device
or resource busy).

I'd like to examine the kernel's test cases and test programs to see
how things are intended to be operated. However, searching the
archives is not turning up much for past messages about it. For
example, 0 hits for "asynchronous socket tests"
(https://www.mail-archive.com/search?q=asynchronous+socket+tests&l=linux-crypto%40vger.kernel.org).

Where can I find the kernel's test cases and test programs used for
userland crypto api?

Thanks you in advance.


2016-03-25 11:54:01

by Stephan Müller

[permalink] [raw]
Subject: Re: Userland crypto api test cases and test programs?

Am Freitag, 25. M?rz 2016, 04:49:55 schrieb Jeffrey Walton:

Hi Jeffrey,

> Hi Everyone,
>
> I've been doing some testing of OpenSSL's upcoming 1.1.0. OpenSSL
> includes an Engine wrapper for the userland crypto exposed through the
> kernel's AF_ALG socket domain.
>
> The upcoming code experiences somewhat unexplained failures on
> occasion. I think its partly related to the asynchronous ciphers. For
> example, trying to set the key for a skcipher results in EBUSY (device
> or resource busy).
>
> I'd like to examine the kernel's test cases and test programs to see
> how things are intended to be operated. However, searching the
> archives is not turning up much for past messages about it. For
> example, 0 hits for "asynchronous socket tests"
> (https://www.mail-archive.com/search?q=asynchronous+socket+tests&l=linux-cry
> pto%40vger.kernel.org).
>
> Where can I find the kernel's test cases and test programs used for
> userland crypto api?

See https://github.com/tstruk/afalg_async_test
>
> Thanks you in advance.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html


Ciao
Stephan