linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* akcipher API: plans
@ 2015-08-26  8:38 Stephan Mueller
  2015-08-26 13:51 ` Herbert Xu
  0 siblings, 1 reply; 3+ messages in thread
From: Stephan Mueller @ 2015-08-26  8:38 UTC (permalink / raw)
  To: Tadeusz Struk, Herbert Xu
  Cc: linux-crypto, Marcel Holtmann, Horia Geantă

Hi Herbert, Tadeusz,

in various emails, I think I have seen several concerns or change requests 
regarding the akcipher API. As all of those apply to the AF_ALG interface for 
akcipher too (which I try to get straight), I would like to ask for potential 
plans of the discussed areas if there are any. If there is no plan, may I ask 
for a discussion on what would be the best way forward.

Also, considering the conversion of the module signing code to use akcipher, I 
feel, we should get the API sorted out to avoid much transition work in 
"users" of the API as well as cipher implementations.

For the following areas, I saw discussions (if I have overlooked an item, 
please add it):

- Type of input data: currently, the akcipher API uses linear buffers. The 
question was raised to convert it to scatter lists. Linear buffers were seen 
as appropriate as the data to be operated on is usually quite small. However, 
some hardware seems to support scatter lists (CAAM was mentioned). 

- Split of setkey into public/private setkey function. The current 
implementation provides ASN.1 structure that allows setting all three 
components forming a public and private key. However, considering the next 
bullet, a split int pub/priv key may need to be considered.

- Structure of keys: The current ASN.1 structure is used solely in the kernel. 
Thus, DER keys generated in user space (like by OpenSSL) can only be loaded 
after a conversion. To support such DER keys out of the box, I think only the 
ASN.1 definition must be changed. In addition, the setkey function must be 
split as the ASN.1 structures of a DER pub and private key are completely 
different.

Ciao
Stephan

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

end of thread, other threads:[~2015-08-26 19:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-26  8:38 akcipher API: plans Stephan Mueller
2015-08-26 13:51 ` Herbert Xu
2015-08-26 19:39   ` Tadeusz Struk

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).