Re: [PATCH v2 06/14] KEYS: PGP data parser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 (dhowells@xxxxxxxxxx)
> > + */
> > +
> > +#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






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux Kernel]     [Linux Kernel Hardening]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux