[PATCH] lib/crypto: blake2s: fix a CFI failure

Miles Chen miles.chen at mediatek.com
Wed Jan 19 01:16:23 PST 2022


>typedef void (*blake2s_compress_t)(struct blake2s_state *state,
>				   const u8 *block, size_t nblocks, u32 inc);
>
>should become
>
>typedef void (*blake2s_compress_t)(struct blake2s_state *state,
>				   const u8 *block, size_t nblocks, const u32 inc);
>
>Does making that change fix things for you?
>
>Thanks,
>Jason

Thanks for your fast response.
It does not work. I tried this before reverting the commit 6048fdcc5f26.

Miles



More information about the Linux-mediatek mailing list