Thread (27 messages) 27 messages, 3 authors, 2017-06-13

[Linux-ima-devel] [PATCH 0/7] IMA: new parser for ima_restore_measurement_list()

flat view

From: Ken Goldman <hidden>
Date: 2017-05-17 16:28:39
Also in: lkml

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.

--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help