hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/s390/crypto/sha1_s390.c
....@@ -27,7 +27,7 @@
2727
2828 #include "sha.h"
2929
30
-static int sha1_init(struct shash_desc *desc)
30
+static int s390_sha1_init(struct shash_desc *desc)
3131 {
3232 struct s390_sha_ctx *sctx = shash_desc_ctx(desc);
3333
....@@ -42,7 +42,7 @@
4242 return 0;
4343 }
4444
45
-static int sha1_export(struct shash_desc *desc, void *out)
45
+static int s390_sha1_export(struct shash_desc *desc, void *out)
4646 {
4747 struct s390_sha_ctx *sctx = shash_desc_ctx(desc);
4848 struct sha1_state *octx = out;
....@@ -53,7 +53,7 @@
5353 return 0;
5454 }
5555
56
-static int sha1_import(struct shash_desc *desc, const void *in)
56
+static int s390_sha1_import(struct shash_desc *desc, const void *in)
5757 {
5858 struct s390_sha_ctx *sctx = shash_desc_ctx(desc);
5959 const struct sha1_state *ictx = in;
....@@ -67,11 +67,11 @@
6767
6868 static struct shash_alg alg = {
6969 .digestsize = SHA1_DIGEST_SIZE,
70
- .init = sha1_init,
70
+ .init = s390_sha1_init,
7171 .update = s390_sha_update,
7272 .final = s390_sha_final,
73
- .export = sha1_export,
74
- .import = sha1_import,
73
+ .export = s390_sha1_export,
74
+ .import = s390_sha1_import,
7575 .descsize = sizeof(struct s390_sha_ctx),
7676 .statesize = sizeof(struct sha1_state),
7777 .base = {
....@@ -86,7 +86,7 @@
8686 static int __init sha1_s390_init(void)
8787 {
8888 if (!cpacf_query_func(CPACF_KIMD, CPACF_KIMD_SHA_1))
89
- return -EOPNOTSUPP;
89
+ return -ENODEV;
9090 return crypto_register_shash(&alg);
9191 }
9292