GCM: cra_name == cra_driver_name
Hi Herbert,
with the current cryptodev tree, when I call a compound AEAD cipher with cra_driver_name for the first time, this cra_driver_name gets registered also as cra_name. Note, using other compound ciphers (like HMAC or symmetric ciphers), I do not see that error.
With that registering, I am not able to resolve the cipher with usual common cra_name.
Note, when I initialized an AEAD cipher with a cra_name, then all works as it used to be.
For example:
name : seqiv(rfc4106(gcm_base(ctr(aes-generic),ghash-generic)))
driver : seqiv(rfc4106(gcm_base(ctr(aes-generic),ghash-generic)))
module : seqiv
priority : 100
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 1
ivsize : 8
maxauthsize : 16
geniv : <none>
name : rfc4106(gcm_base(ctr(aes-generic),ghash-generic))
driver : rfc4106(gcm_base(ctr(aes-generic),ghash-generic))
module : gcm
priority : 100
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 1
ivsize : 8
maxauthsize : 16
geniv : <none>
name : ccm_base(ctr(aes-generic),aes-generic)
driver : ccm_base(ctr(aes-generic),aes-generic)
module : ccm
priority : 100
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 1
ivsize : 16
maxauthsize : 16
geniv : <none>
name : gcm_base(ctr(aes-generic),ghash-generic)
driver : gcm_base(ctr(aes-generic),ghash-generic)
module : gcm
priority : 100
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 1
ivsize : 12
maxauthsize : 16
geniv : <none>
name : seqiv(rfc4106(gcm_base(ctr(aes-aesni),ghash-clmulni)))
driver : seqiv(rfc4106(gcm_base(ctr(aes-aesni),ghash-clmulni)))
module : seqiv
priority : 350
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 1
ivsize : 8
maxauthsize : 16
geniv : <none>
name : rfc4106(gcm_base(ctr(aes-aesni),ghash-clmulni))
driver : rfc4106(gcm_base(ctr(aes-aesni),ghash-clmulni))
module : gcm
priority : 350
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 1
ivsize : 8
maxauthsize : 16
geniv : <none>
name : gcm_base(ctr(aes-aesni),ghash-clmulni)
driver : gcm_base(ctr(aes-aesni),ghash-clmulni)
module : gcm
priority : 350
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 1
ivsize : 12
maxauthsize : 16
geniv : <none>
name : ccm_base(ctr-aes-aesni,aes-aesni)
driver : ccm_base(ctr-aes-aesni,aes-aesni)
module : ccm
priority : 350
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 1
ivsize : 16
maxauthsize : 16
geniv : <none>
name : gcm_base(ctr-aes-aesni,ghash-clmulni)
driver : gcm_base(ctr-aes-aesni,ghash-clmulni)
module : gcm
priority : 400
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 1
ivsize : 12
maxauthsize : 16
geniv : <none>
Ciao
Stephan
Herbert Xu
maintainerQuoted 7 lines · Stephan Mueller
Hi Herbert,
with the current cryptodev tree, when I call a compound AEAD cipher with
cra_driver_namefor the first time, thiscra_driver_namegets registered also ascra_name. Note, using other compound ciphers (like HMAC or symmetric ciphers), I do not see that error.
Quoted 5 lines
With that registering, I am not able to resolve the cipher with usual common
cra_name.Note, when I initialized an AEAD cipher with a
cra_name, then all works as it used to be.
Is this a new problem? I thought it always worked like this.
I was going to fix it to generate a proper cra_name after I'm done with the skcipher conversion.
Cheers,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Am Dienstag, 26. Januar 2016, 19:13:52 schrieb Herbert Xu:
Hi Herbert,
Quoted 8 lines · Stephan Mueller
Quoted 7 lines
Hi Herbert,
with the current cryptodev tree, when I call a compound AEAD cipher with
cra_driver_namefor the first time, thiscra_driver_namegets registered also ascra_name. Note, using other compound ciphers (like HMAC or symmetric ciphers), I do not see that error.
Quoted 8 lines
Quoted 6 lines
With that registering, I am not able to resolve the cipher with usual common
cra_name.Note, when I initialized an AEAD cipher with a
cra_name, then all works as it used to be.Is this a new problem? I thought it always worked like this.
At least I have seen that now for the first time. But maybe I have not tested this order of invocation before.
Quoted 3 lines
I was going to fix it to generate a proper
cra_nameafter I'm done with the skcipher conversion.
Ok, thanks.
Quoted 2 lines
Cheers,
Ciao
Stephan