[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <45accf08-bb98-4199-b0a0-a314f3d0574b@quicinc.com>
Date: Mon, 19 Aug 2024 07:36:39 -0700
From: Jeff Johnson <quic_jjohnson@...cinc.com>
To: Roberto Sassu <roberto.sassu@...weicloud.com>, <dhowells@...hat.com>,
<dwmw2@...radead.org>, <herbert@...dor.apana.org.au>,
<davem@...emloft.net>
CC: <linux-kernel@...r.kernel.org>, <keyrings@...r.kernel.org>,
<linux-crypto@...r.kernel.org>, <zohar@...ux.ibm.com>,
<linux-integrity@...r.kernel.org>,
Roberto Sassu <roberto.sassu@...wei.com>
Subject: Re: [PATCH v2 06/14] KEYS: PGP data parser
On 8/18/24 09:57, Roberto Sassu wrote:
...
> diff --git a/crypto/asymmetric_keys/pgp_public_key.c b/crypto/asymmetric_keys/pgp_public_key.c
> new file mode 100644
> index 000000000000..cb399f5cdd3e
> --- /dev/null
> +++ b/crypto/asymmetric_keys/pgp_public_key.c
> @@ -0,0 +1,366 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/* Instantiate a public key crypto key from PGP format data [RFC 4880]
> + *
> + * Copyright (C) 2011 Red Hat, Inc. All Rights Reserved.
> + * Written by David Howells (dhowells@...hat.com)
> + */
> +
> +#define pr_fmt(fmt) "PGP: "fmt
> +#include <linux/module.h>
> +#include <linux/kernel.h>
> +#include <linux/slab.h>
> +#include <linux/mpi.h>
> +#include <keys/asymmetric-subtype.h>
> +#include <keys/asymmetric-parser.h>
> +#include <crypto/hash.h>
> +#include <crypto/public_key.h>
> +
> +#include "pgp_parser.h"
> +
> +#define MAX_MPI 5
> +#define KEYCTL_SUPPORTS_ENCDEC \
> + (KEYCTL_SUPPORTS_ENCRYPT | KEYCTL_SUPPORTS_DECRYPT)
> +#define KEYCTL_SUPPORTS_SIGVER (KEYCTL_SUPPORTS_SIGN | KEYCTL_SUPPORTS_VERIFY)
> +
> +MODULE_LICENSE("GPL");
Missing MODULE_DESCRIPTION()
Powered by blists - more mailing lists