16 #include <crypto/sha.h>
17 #include <linux/errno.h>
19 #include <linux/kernel.h>
20 #include <linux/module.h>
29 *(
__u64 *)&ctx->
state[0] = 0x6a09e667f3bcc908ULL;
30 *(
__u64 *)&ctx->
state[2] = 0xbb67ae8584caa73bULL;
31 *(
__u64 *)&ctx->
state[4] = 0x3c6ef372fe94f82bULL;
32 *(
__u64 *)&ctx->
state[6] = 0xa54ff53a5f1d36f1ULL;
33 *(
__u64 *)&ctx->
state[8] = 0x510e527fade682d1ULL;
34 *(
__u64 *)&ctx->
state[10] = 0x9b05688c2b3e6c1fULL;
35 *(
__u64 *)&ctx->
state[12] = 0x1f83d9abfb41bd6bULL;
36 *(
__u64 *)&ctx->
state[14] = 0x5be0cd19137e2179ULL;
75 .export = sha512_export,
76 .import = sha512_import,
81 .cra_driver_name=
"sha512-s390",
91 static int sha384_init(
struct shash_desc *desc)
95 *(
__u64 *)&ctx->
state[0] = 0xcbbb9d5dc1059ed8ULL;
96 *(
__u64 *)&ctx->
state[2] = 0x629a292a367cd507ULL;
97 *(
__u64 *)&ctx->
state[4] = 0x9159015a3070dd17ULL;
98 *(
__u64 *)&ctx->
state[6] = 0x152fecd8f70e5939ULL;
99 *(
__u64 *)&ctx->
state[8] = 0x67332667ffc00b31ULL;
100 *(
__u64 *)&ctx->
state[10] = 0x8eb44a8768581511ULL;
101 *(
__u64 *)&ctx->
state[12] = 0xdb0c2e0d64f98fa7ULL;
102 *(
__u64 *)&ctx->
state[14] = 0x47b5481dbefa4fa4ULL;
114 .export = sha512_export,
115 .import = sha512_import,
119 .cra_name =
"sha384",
120 .cra_driver_name=
"sha384-s390",
145 static void __exit fini(
void)