hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/s390/crypto/sha256_s390.c
....@@ -17,7 +17,7 @@
1717
1818 #include "sha.h"
1919
20
-static int sha256_init(struct shash_desc *desc)
20
+static int s390_sha256_init(struct shash_desc *desc)
2121 {
2222 struct s390_sha_ctx *sctx = shash_desc_ctx(desc);
2323
....@@ -60,7 +60,7 @@
6060
6161 static struct shash_alg sha256_alg = {
6262 .digestsize = SHA256_DIGEST_SIZE,
63
- .init = sha256_init,
63
+ .init = s390_sha256_init,
6464 .update = s390_sha_update,
6565 .final = s390_sha_final,
6666 .export = sha256_export,
....@@ -76,7 +76,7 @@
7676 }
7777 };
7878
79
-static int sha224_init(struct shash_desc *desc)
79
+static int s390_sha224_init(struct shash_desc *desc)
8080 {
8181 struct s390_sha_ctx *sctx = shash_desc_ctx(desc);
8282
....@@ -96,7 +96,7 @@
9696
9797 static struct shash_alg sha224_alg = {
9898 .digestsize = SHA224_DIGEST_SIZE,
99
- .init = sha224_init,
99
+ .init = s390_sha224_init,
100100 .update = s390_sha_update,
101101 .final = s390_sha_final,
102102 .export = sha256_export,
....@@ -117,7 +117,7 @@
117117 int ret;
118118
119119 if (!cpacf_query_func(CPACF_KIMD, CPACF_KIMD_SHA_256))
120
- return -EOPNOTSUPP;
120
+ return -ENODEV;
121121 ret = crypto_register_shash(&sha256_alg);
122122 if (ret < 0)
123123 goto out;