|
@@ -53,10 +53,10 @@ static int sha256_export(struct shash_desc *desc, void *out)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static int sha256_import(struct shash_desc *desc, const u8 *in)
|
|
|
+static int sha256_import(struct shash_desc *desc, const void *in)
|
|
|
{
|
|
|
struct s390_sha_ctx *sctx = shash_desc_ctx(desc);
|
|
|
- struct sha256_state *ictx = in;
|
|
|
+ const struct sha256_state *ictx = in;
|
|
|
|
|
|
sctx->count = ictx->count;
|
|
|
memcpy(sctx->state, ictx->state, sizeof(ictx->state));
|