Re: [fsverity-utils PATCH v2 2/4] lib/compute_digest: add default hash_algorithm and block_size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "ebiggers@xxxxxxxxxx" <ebiggers@xxxxxxxxxx>, "linux-fscrypt@xxxxxxxxxxxxxxx" <linux-fscrypt@xxxxxxxxxxxxxxx>
- Subject: Re: [fsverity-utils PATCH v2 2/4] lib/compute_digest: add default hash_algorithm and block_size
- From: Luca Boccassi <Luca.Boccassi@xxxxxxxxxxxxx>
- Date: Tue, 17 Nov 2020 10:01:05 +0000
- Accept-language: en-GB, en-US
- In-reply-to: <20201116205628.262173-3-ebiggers@kernel.org>
- References: <20201116205628.262173-1-ebiggers@kernel.org> <20201116205628.262173-3-ebiggers@kernel.org>
- Thread-index: AQHWvMiQYImZUwaXPUOLAp5jJroRgg==
- Thread-topic: [fsverity-utils PATCH v2 2/4] lib/compute_digest: add default hash_algorithm and block_size
- User-agent: Evolution 3.30.5-1.1
On Mon, 2020-11-16 at 12:56 -0800, Eric Biggers wrote:
> From: Eric Biggers <ebiggers@xxxxxxxxxx>
>
> If hash_algorithm is left 0, default it to FS_VERITY_HASH_ALG_SHA256;
> and if block_size is left 0, default it to 4096 bytes.
>
> While it's nice to be explicit, having defaults makes things easier for
> library users.
>
> Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx>
> ---
> include/libfsverity.h | 47 ++++++++++++++++++++++++++--------
> lib/compute_digest.c | 27 +++++++++++--------
> lib/lib_private.h | 6 +++++
> programs/cmd_digest.c | 8 +-----
> programs/cmd_sign.c | 9 +------
> programs/test_compute_digest.c | 18 ++++++++-----
> 6 files changed, 71 insertions(+), 44 deletions(-)
Acked-by: Luca Boccassi <luca.boccassi@xxxxxxxxxxxxx>
--
Kind regards,
Luca Boccassi
Attachment:
signature.asc
Description: This is a digitally signed message part
[Index of Archives]
[linux Cryptography]
[Asterisk App Development]
[PJ SIP]
[Gnu Gatekeeper]
[IETF Sipping]
[Info Cyrus]
[ALSA User]
[Fedora Linux Users]
[Linux SCTP]
[DCCP]
[Gimp]
[Yosemite News]
[Deep Creek Hot Springs]
[Yosemite Campsites]
[ISDN Cause Codes]