On Thu, Nov 06, 2014 at 07:43:23PM -0800, Tadeusz Struk wrote: > > Yes, I know that PF_ALG wasn't designed to expose hardware specific > implementation, but the problem is that currently there is no interface > that allows using HW acceleration for algorithms such as RSA, DSA, or > Diffie-Hellman. > Using PF_ALG works perfectly for this purpose. I can get around 130K RSA > decrypt operations per second with 1024 bits modulus. This also scales > very well for more accelerators. > PF_ALG meant to be crypto interface for user space and this is what I'm > using it for here :) Is there any way I can make it (more) acceptable? I see. What we need to do is first fold the current asymmetric crypto code under crypto/asymmetric into the crypto API properly and then export that through algif. You can then simply implement a hardware driver for such algorithms as you currently do for other crypto API algorithms. I'll try to work on that. Cheers, -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html