All of lore.kernel.org
 help / color / mirror / Atom feed
* Asymmetric cryptography HW offloading
@ 2013-09-23 12:31 Horia Geantă
  2013-09-23 13:28 ` Nikos Mavrogiannopoulos
  0 siblings, 1 reply; 4+ messages in thread
From: Horia Geantă @ 2013-09-23 12:31 UTC (permalink / raw)
  To: Herbert Xu, David Howells, James Morris -
  Cc: linux-crypto@vger.kernel.org, Kim Phillips

Hi,

CAAM crypto engine (drivers/crypto/caam/*) is capable of asymmetric 
operations, like: modular exponentiation, RSA 
sign/verify/encrypt/decrypt, (EC)DSA sign etc.
I would appreciate some design guidelines on how to harness these 
capabilities, for crypto engines in general.

1. In-kernel interface for asymmetric crypto
Should crypto/asymmetric_keys/* be used, i.e. appended with modular 
exponentiation, other asymmetric operations? I am asking since this 
seems to be closer to key management than to asymmetric crypto...
If so, should an algorithm priority be defined, similar to Crypto API 
interface for symmetric algos (so that for e.g. a HW implementation of 
RSA verify would be preferred over a SW implementation)? Currently 
interface does not allow for two or more implementers of the same 
algo/operation.

Currently, SW implementation of modular exponentiation - mpi_powm() - is 
used by crypto/asymmetric_keys/rsa.c and lib/digsig.c. AFAICT, its users 
could benefit from a HW-accelerated version.

2. User space interface
Should AF_ALG be expanded to provide access to this new asymmetric cypto 
API?
The API would allow user space applications to offload PKC operations in HW.
Possible use: offloading compute-intensive parts of TLS handshake, IKE.

Thanks,
Horia

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

end of thread, other threads:[~2013-09-29 17:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-23 12:31 Asymmetric cryptography HW offloading Horia Geantă
2013-09-23 13:28 ` Nikos Mavrogiannopoulos
2013-09-27 10:58   ` Horia Geantă
2013-09-29 17:50     ` Nikos Mavrogiannopoulos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.