Thread (4 messages) 4 messages, 2 authors, 2015-07-10

akcipher: continuous memory for input/output

From: Stephan Mueller <hidden>
Date: 2015-07-08 15:27:21

Hi Herbert, Tadeusz,

I looked a bit further into the akcipher code to see how we can add an AF_ALG 
there.

What currently wonders me is the akcipher_request_set_crypt function: the 
memory for input/output buffers is *no* scatter list but a plain buffer. I 
think I can understand that for raw RSA operations as the input/output is not 
overly large.

But according to Tadeusz it may be viable to register hybrid asym ciphers with 
the akcipher API. If there is a full blown hybrid asym cipher we have to 
handle potentially large chunks of data. I am now wondering whether a flat 
buffer still makes sense or whether the akcipher should be converted to 
scatter lists as all the other cipher types.

If it shall stay as is, how would we be handling larger buffers?

Thanks
Stephan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help