Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
9792eb1d
Commit
9792eb1d
authored
Dec 28, 2010
by
Krzysztof Hałasa
Committed by
Jason Cooper
Nov 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IXP4xx crypto: MOD_AES{128,192,256} already include key size.
Signed-off-by:
Krzysztof Hałasa
<
khc@pm.waw.pl
>
parent
4d18dea5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/crypto/ixp4xx_crypto.c
drivers/crypto/ixp4xx_crypto.c
+6
-6
No files found.
drivers/crypto/ixp4xx_crypto.c
View file @
9792eb1d
...
...
@@ -750,9 +750,9 @@ static int setup_cipher(struct crypto_tfm *tfm, int encrypt,
}
if
(
cipher_cfg
&
MOD_AES
)
{
switch
(
key_len
)
{
case
16
:
keylen_cfg
=
MOD_AES128
|
KEYLEN_
128
;
break
;
case
24
:
keylen_cfg
=
MOD_AES192
|
KEYLEN_
192
;
break
;
case
32
:
keylen_cfg
=
MOD_AES256
|
KEYLEN_
256
;
break
;
case
16
:
keylen_cfg
=
MOD_AES
128
;
break
;
case
24
:
keylen_cfg
=
MOD_AES
192
;
break
;
case
32
:
keylen_cfg
=
MOD_AES
256
;
break
;
default:
*
flags
|=
CRYPTO_TFM_RES_BAD_KEY_LEN
;
return
-
EINVAL
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment