On Mon, 2024-08-19 at 07:36 -0700, Jeff Johnson wrote: > 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 (dhowe...@redhat.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()
Thanks! Will add it. Roberto