projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68e8bb0
)
sunrpc: use sg_init_one() in krb5_rc4_setup_enc/seq_key()
author
Fabian Frederick
<fabf@skynet.be>
Tue, 16 Jun 2015 19:57:52 +0000
(21:57 +0200)
committer
J. Bruce Fields
<bfields@redhat.com>
Mon, 22 Jun 2015 18:15:06 +0000
(14:15 -0400)
Don't opencode sg_init_one()
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/gss_krb5_crypto.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sunrpc/auth_gss/gss_krb5_crypto.c
b/net/sunrpc/auth_gss/gss_krb5_crypto.c
index b5408e8a37f2baddf9979bdac2882d8eb5f8c27f..fee3c15a4b5293bb33a24beb76ea7a904f6a7aab 100644
(file)
--- a/
net/sunrpc/auth_gss/gss_krb5_crypto.c
+++ b/
net/sunrpc/auth_gss/gss_krb5_crypto.c
@@
-881,9
+881,7
@@
krb5_rc4_setup_seq_key(struct krb5_ctx *kctx, struct crypto_blkcipher *cipher,
if (err)
goto out_err;
- sg_init_table(sg, 1);
- sg_set_buf(sg, &zeroconstant, 4);
-
+ sg_init_one(sg, &zeroconstant, 4);
err = crypto_hash_digest(&desc, sg, 4, Kseq);
if (err)
goto out_err;
@@
-951,9
+949,7
@@
krb5_rc4_setup_enc_key(struct krb5_ctx *kctx, struct crypto_blkcipher *cipher,
if (err)
goto out_err;
- sg_init_table(sg, 1);
- sg_set_buf(sg, zeroconstant, 4);
-
+ sg_init_one(sg, zeroconstant, 4);
err = crypto_hash_digest(&desc, sg, 4, Kcrypt);
if (err)
goto out_err;