.. | .. |
---|
27 | 27 | |
---|
28 | 28 | #include "sha.h" |
---|
29 | 29 | |
---|
30 | | -static int sha1_init(struct shash_desc *desc) |
---|
| 30 | +static int s390_sha1_init(struct shash_desc *desc) |
---|
31 | 31 | { |
---|
32 | 32 | struct s390_sha_ctx *sctx = shash_desc_ctx(desc); |
---|
33 | 33 | |
---|
.. | .. |
---|
42 | 42 | return 0; |
---|
43 | 43 | } |
---|
44 | 44 | |
---|
45 | | -static int sha1_export(struct shash_desc *desc, void *out) |
---|
| 45 | +static int s390_sha1_export(struct shash_desc *desc, void *out) |
---|
46 | 46 | { |
---|
47 | 47 | struct s390_sha_ctx *sctx = shash_desc_ctx(desc); |
---|
48 | 48 | struct sha1_state *octx = out; |
---|
.. | .. |
---|
53 | 53 | return 0; |
---|
54 | 54 | } |
---|
55 | 55 | |
---|
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) |
---|
57 | 57 | { |
---|
58 | 58 | struct s390_sha_ctx *sctx = shash_desc_ctx(desc); |
---|
59 | 59 | const struct sha1_state *ictx = in; |
---|
.. | .. |
---|
67 | 67 | |
---|
68 | 68 | static struct shash_alg alg = { |
---|
69 | 69 | .digestsize = SHA1_DIGEST_SIZE, |
---|
70 | | - .init = sha1_init, |
---|
| 70 | + .init = s390_sha1_init, |
---|
71 | 71 | .update = s390_sha_update, |
---|
72 | 72 | .final = s390_sha_final, |
---|
73 | | - .export = sha1_export, |
---|
74 | | - .import = sha1_import, |
---|
| 73 | + .export = s390_sha1_export, |
---|
| 74 | + .import = s390_sha1_import, |
---|
75 | 75 | .descsize = sizeof(struct s390_sha_ctx), |
---|
76 | 76 | .statesize = sizeof(struct sha1_state), |
---|
77 | 77 | .base = { |
---|
.. | .. |
---|
86 | 86 | static int __init sha1_s390_init(void) |
---|
87 | 87 | { |
---|
88 | 88 | if (!cpacf_query_func(CPACF_KIMD, CPACF_KIMD_SHA_1)) |
---|
89 | | - return -EOPNOTSUPP; |
---|
| 89 | + return -ENODEV; |
---|
90 | 90 | return crypto_register_shash(&alg); |
---|
91 | 91 | } |
---|
92 | 92 | |
---|