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
nexedi
linux
Commits
946dca8f
Commit
946dca8f
authored
Dec 07, 2018
by
Herbert Xu
Browse files
Options
Browse Files
Download
Plain Diff
Merge
git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Merge crypto tree to pick up crypto stats API revert.
parents
7a027b57
e61efff4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
crypto/cbc.c
crypto/cbc.c
+4
-2
crypto/cfb.c
crypto/cfb.c
+4
-2
crypto/pcbc.c
crypto/pcbc.c
+4
-2
No files found.
crypto/cbc.c
View file @
946dca8f
...
...
@@ -140,9 +140,8 @@ static int crypto_cbc_create(struct crypto_template *tmpl, struct rtattr **tb)
spawn
=
skcipher_instance_ctx
(
inst
);
err
=
crypto_init_spawn
(
spawn
,
alg
,
skcipher_crypto_instance
(
inst
),
CRYPTO_ALG_TYPE_MASK
);
crypto_mod_put
(
alg
);
if
(
err
)
goto
err_
free_inst
;
goto
err_
put_alg
;
err
=
crypto_inst_setname
(
skcipher_crypto_instance
(
inst
),
"cbc"
,
alg
);
if
(
err
)
...
...
@@ -174,12 +173,15 @@ static int crypto_cbc_create(struct crypto_template *tmpl, struct rtattr **tb)
err
=
skcipher_register_instance
(
tmpl
,
inst
);
if
(
err
)
goto
err_drop_spawn
;
crypto_mod_put
(
alg
);
out:
return
err
;
err_drop_spawn:
crypto_drop_spawn
(
spawn
);
err_put_alg:
crypto_mod_put
(
alg
);
err_free_inst:
kfree
(
inst
);
goto
out
;
...
...
crypto/cfb.c
View file @
946dca8f
...
...
@@ -286,9 +286,8 @@ static int crypto_cfb_create(struct crypto_template *tmpl, struct rtattr **tb)
spawn
=
skcipher_instance_ctx
(
inst
);
err
=
crypto_init_spawn
(
spawn
,
alg
,
skcipher_crypto_instance
(
inst
),
CRYPTO_ALG_TYPE_MASK
);
crypto_mod_put
(
alg
);
if
(
err
)
goto
err_
free_inst
;
goto
err_
put_alg
;
err
=
crypto_inst_setname
(
skcipher_crypto_instance
(
inst
),
"cfb"
,
alg
);
if
(
err
)
...
...
@@ -317,12 +316,15 @@ static int crypto_cfb_create(struct crypto_template *tmpl, struct rtattr **tb)
err
=
skcipher_register_instance
(
tmpl
,
inst
);
if
(
err
)
goto
err_drop_spawn
;
crypto_mod_put
(
alg
);
out:
return
err
;
err_drop_spawn:
crypto_drop_spawn
(
spawn
);
err_put_alg:
crypto_mod_put
(
alg
);
err_free_inst:
kfree
(
inst
);
goto
out
;
...
...
crypto/pcbc.c
View file @
946dca8f
...
...
@@ -244,9 +244,8 @@ static int crypto_pcbc_create(struct crypto_template *tmpl, struct rtattr **tb)
spawn
=
skcipher_instance_ctx
(
inst
);
err
=
crypto_init_spawn
(
spawn
,
alg
,
skcipher_crypto_instance
(
inst
),
CRYPTO_ALG_TYPE_MASK
);
crypto_mod_put
(
alg
);
if
(
err
)
goto
err_
free_inst
;
goto
err_
put_alg
;
err
=
crypto_inst_setname
(
skcipher_crypto_instance
(
inst
),
"pcbc"
,
alg
);
if
(
err
)
...
...
@@ -275,12 +274,15 @@ static int crypto_pcbc_create(struct crypto_template *tmpl, struct rtattr **tb)
err
=
skcipher_register_instance
(
tmpl
,
inst
);
if
(
err
)
goto
err_drop_spawn
;
crypto_mod_put
(
alg
);
out:
return
err
;
err_drop_spawn:
crypto_drop_spawn
(
spawn
);
err_put_alg:
crypto_mod_put
(
alg
);
err_free_inst:
kfree
(
inst
);
goto
out
;
...
...
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