# Re: \[PATCH 2/6\] fs-verity: don't pass whole descriptor to fsverity\_verify\_signature()

- From: Amy Parker \<hidden\>
- Date: 2021-01-28 03:25:13 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2021/01/198692
- Thread: https://ratatoskr.run/linux-fscrypt/2021/01/197428/t.md

```text
On Fri, Jan 15, 2021 at 10:22 AM Eric Biggers [ref] wrote:
>
> From: Eric Biggers <redacted>
>
> Now that fsverity_get_descriptor() validates the sig_size field,
> fsverity_verify_signature() doesn't need to do it.
>
> Just change the prototype of fsverity_verify_signature() to take the
> signature directly rather than take a fsverity_descriptor.
>
> Signed-off-by: Eric Biggers <redacted>

Reviewed-by: Amy Parker <redacted>
```
