[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <4b536b04-0e61-aea4-fc27-8dd12f2e3a1b@linux.vnet.ibm.com>
Date: Wed, 17 May 2017 12:28:35 -0400
From: Ken Goldman <kgold@...ux.vnet.ibm.com>
To: linux-ima-devel@...ts.sourceforge.net
Cc: linux-security-module@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [Linux-ima-devel] [PATCH 0/7] IMA: new parser for
ima_restore_measurement_list()
On 5/17/2017 3:25 AM, Roberto Sassu wrote:
>
> The format of digestN is: <algo name>:\0<digest value>, the same used
> for the file digest.
Since the format is changing from the SHA-1 log format anyway ...
How do people feel about the colon and null terminated string format for
algorithm identifiers?
The TCG standard enumerations are uint16_t, and there is a registry of
hash algorithms.
As a consuming parser, it feels nice to know it's always 2 bytes and not
have to worry about a missing colon or a missing nul terminator risking
a buffer overflow.
Powered by blists - more mailing lists