Re: [PATCH v3 2/2] KEYS: asymmetric: Copy sig and digest in public_key_verify_signature()

From: Eric Biggers
Date: Wed Dec 21 2022 - 15:51:11 EST


On Wed, Dec 21, 2022 at 11:37:10AM +0100, Roberto Sassu wrote:
> + sg_init_table(&src_sg, 1);
> + sg_set_buf(&src_sg, buf, sig->s_size + sig->digest_size);

The above two function calls should be replaced with sg_init_one().

- Eric