Re: [PATCH v3 00/14] KEYS: Add support for PGP keys and signatures

2024-09-12 Thread Herbert Xu
Roberto Sassu wrote: > > For the envisioned use cases, PGP operations cannot be done in user space, > since the consumers are in the kernel itself (Integrity Digest Cache and > IMA). Also they cannot be done in a trusted initial ram disk, since PGP > operations can occur also while the system is r

Re: [PATCH v3 05/14] PGPLIB: Signature parser

2024-09-12 Thread Jarkko Sakkinen
On Wed Sep 11, 2024 at 3:29 PM EEST, Roberto Sassu wrote: > From: David Howells > > Provide some PGP signature parsing helpers: > > (1) A function to parse V4 signature subpackets and pass the desired ones > to a processor function: > > int pgp_parse_sig_subpkts(const u8 *data, size_t

Re: [PATCH v3 04/14] PGPLIB: Basic packet parser

2024-09-12 Thread Jarkko Sakkinen
On Wed Sep 11, 2024 at 3:29 PM EEST, Roberto Sassu wrote: > From: David Howells > > Provide a simple parser that extracts the packets from a PGP packet blob > and passes the desirous ones to the given processor function: > > struct pgp_parse_context { > u64 types_of_interest; >

Re: [PATCH v3 03/14] PGPLIB: PGP definitions (RFC 9580)

2024-09-12 Thread Jarkko Sakkinen
On Wed Sep 11, 2024 at 3:29 PM EEST, Roberto Sassu wrote: > From: David Howells > > Provide some useful PGP definitions from RFC 9580. These describe details > of public key crypto as used by crypto keys for things like signature > verification. > > Signed-off-by: David Howells > Co-developed-by

Re: [PATCH v3 02/14] rsa: add parser of raw format

2024-09-12 Thread Jarkko Sakkinen
On Wed Sep 11, 2024 at 3:28 PM EEST, Roberto Sassu wrote: > From: Roberto Sassu > > Parse the RSA key with RAW format if the ASN.1 parser returns an error, to > avoid passing somehow the key format as parameter. > > Signed-off-by: Roberto Sassu > Signed-off-by: David Howells > --- > crypto/rsa.

Re: [PATCH v3 01/14] mpi: Introduce mpi_key_length()

2024-09-12 Thread Jarkko Sakkinen
On Wed Sep 11, 2024 at 3:28 PM EEST, Roberto Sassu wrote: > From: Roberto Sassu > > Introduce the new function to get the number of bits and bytes from an MPI. > > Signed-off-by: Roberto Sassu > Signed-off-by: David Howells > --- > include/linux/mpi.h | 2 ++ > lib/crypto/mpi/mpicoder.c