Thread (3 messages) 3 messages, 2 authors, 2015-08-19

Re: cbc(aes-aesni) a givcipher?

From: Stephan Mueller <hidden>
Date: 2015-08-19 10:31:17

Am Mittwoch, 19. August 2015, 12:11:03 schrieb Stephan Mueller:

Hi,
Hi Herbert,

with the latest cryptodev-2.6 tree I find the following:

name         : cbc(aes)
driver       : cbc(aes-aesni)
module       : kernel
priority     : 300
refcnt       : 1
selftest     : passed
internal     : no
type         : givcipher
async        : no
blocksize    : 16
min keysize  : 16
max keysize  : 32
ivsize       : 16
geniv        : eseqiv

name         : cbc(aes)
driver       : cbc(aes-aesni)
module       : cbc
priority     : 300
refcnt       : 1
selftest     : passed
internal     : no
type         : blkcipher
blocksize    : 16
min keysize  : 16
max keysize  : 32
ivsize       : 16
geniv        : <default>


Note the type of the ciphers. With this, an allocation of cbc(aes-aesni)
does not work (ENOENT).
 
Just a followup: I think I see how I triggered it; I used cbc(aes-aesni) with 
crypto_alloc_aead due to an accident.

But that makes me think: would that be an issue for the AF_ALG interface? I.e. 
I try to use the algif_aead interface but provide cbc(aes-aesni) as a cipher 
name?
Any ideas?

-- 
Ciao
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