Pgplib
Author: c | 2025-04-24
PGPLib pgp = new PGPLib(); pgp.IntegrityCheckOn = true; This language is not supported or no code example is available. VB. C. F. C. JScript. Copy. Dim pgp As New PGPLib()
PGPLib/LICENSE at master heyjamesknight/PGPLib - GitHub
2.32.0next prev parent reply other threads:[~2022-01-11 18:04 UTC|newest]Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top2022-01-11 18:03 [PATCH 00/14] KEYS: Add support for PGP keys and signatures Roberto Sassu2022-01-11 18:03 ` [PATCH 01/14] mpi: Introduce mpi_key_length() Roberto Sassu2022-01-11 18:03 ` [PATCH 02/14] rsa: add parser of raw format Roberto Sassu2022-01-11 18:03 ` [PATCH 03/14] PGPLIB: PGP definitions (RFC 4880) Roberto Sassu2022-01-11 18:03 ` Roberto Sassu [this message]2022-01-11 18:03 ` [PATCH 05/14] PGPLIB: Signature parser Roberto Sassu2022-01-11 18:03 ` [PATCH 06/14] KEYS: PGP data parser Roberto Sassu2022-01-11 18:03 ` [PATCH 07/14] KEYS: Provide PGP key description autogeneration Roberto Sassu2022-01-11 18:03 ` [PATCH 08/14] KEYS: PGP-based public key signature verification Roberto Sassu2022-01-11 18:03 ` [PATCH 09/14] KEYS: Retry asym key search with partial ID in restrict_link_by_signature() Roberto Sassu2022-01-11 18:03 ` [PATCH 10/14] KEYS: Calculate key digest and get signature of the key Roberto Sassu2022-01-11 18:03 ` [PATCH 11/14] verification: introduce verify_pgp_signature() Roberto Sassu2022-01-11 18:03 ` [PATCH 12/14] PGP: Provide a key type for testing PGP signatures Roberto Sassu2022-01-11 18:03 ` [PATCH 13/14] KEYS: Provide a function to load keys from a PGP keyring blob Roberto Sassu2022-01-11 18:03 ` [PATCH 14/14] KEYS: Introduce load_pgp_public_keyring() Roberto Sassu2022-01-11 20:33 ` [PATCH 00/14] KEYS: Add support for PGP keys and signatures Maciej S. Szmigiero2022-01-12 9:16 ` Roberto Sassu2022-01-12 20:15 ` Maciej S. Szmigiero2022-01-13 9:11 ` Roberto Sassu2022-01-17 14:34 ` Jason A. Donenfeld2022-01-17 15:02 ` James Bottomley2022-01-18 20:50 ` Antony Vennard2022-01-18 23:03 ` Eric Biggers2022-01-19 13:25 ` Roberto Sassu2022-01-21 16:50 ` Roberto Sassu2022-01-23 21:00 ` Antony. PGPLib pgp = new PGPLib(); pgp.IntegrityCheckOn = true; This language is not supported or no code example is available. VB. C. F. C. JScript. Copy. Dim pgp As New PGPLib() PGPlib 2FA. Contribute to PGPlib-PHP/2FA-FOR-SMF development by creating an account on GitHub. Debug(this PGPLib, string, string) (Defined by SmartcardExtensions). DecryptFile(this PGPLib, string, SmartcardKeyStore, string) Decrypts a PGP encrypted file using Private key located inKeyStore. (Defined by SmartcardExtensions). DecryptStream(this PGPLib, Stream, SmartcardKeyStore, Stream) Debug(this PGPLib, string, string) (Defined by SmartcardExtensions). DecryptFile(this PGPLib, string, SmartcardKeyStore, string) Decrypts a PGP encrypted file using Private key located inKeyStore. (Defined by SmartcardExtensions). DecryptStream(this PGPLib, Stream, SmartcardKeyStore, Stream) Packagespackage events Event handlers for library actions. package exceptions Detailed PGP Exceptions. package inspect OpenPGP inspection API (Advanced) package net Network clients for accessing OpenPGP Key servers. package storage Classesinterface CompressionAlgorithm Interface that lists the supported compression algorithms for OpenPGP encryption. More... interface ContentDataType Interface that lists the supported content type settings for OpenPGP archives. More... interface CypherAlgorithm Interface that lists the supported symmetric encryption algorithms used in the library. More... interface EcCurve Lists the OpenPGP Elliptic Curve Cryptography (ECC) supported named curves defined in RFC 6637. More... interface HashAlgorithm Interface that lists the supported hashing algorithms used in the library. More... interface KeyAlgorithm Interface that lists the supported asymmetric algorithms for OpenPGP keys. More... class KeyPairInformation Represents an OpenPGP key pair. More... class KeyStore Represents an OpenPGP Key Store. More... class PGPException Exception indicating that an OpenPGP encryption error has occurred. More... class PGPFileInformation Reserved for future releases. More... class PGPKeyPair Represents an OpenPGP key loaded from a key file. More... class PGPLib OpenPGP Library for Java. More... class RevocationLib OpenPGP Key Revocation Library for Java. More... interface SecureRandomSource A plugable interface for customizing the Random data source of the Library Example: More... enum SignatureCheckResult Represents the result of an OpenPGP signature check. More... interface TrustLevel Holds common trust values. More...Comments
2.32.0next prev parent reply other threads:[~2022-01-11 18:04 UTC|newest]Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top2022-01-11 18:03 [PATCH 00/14] KEYS: Add support for PGP keys and signatures Roberto Sassu2022-01-11 18:03 ` [PATCH 01/14] mpi: Introduce mpi_key_length() Roberto Sassu2022-01-11 18:03 ` [PATCH 02/14] rsa: add parser of raw format Roberto Sassu2022-01-11 18:03 ` [PATCH 03/14] PGPLIB: PGP definitions (RFC 4880) Roberto Sassu2022-01-11 18:03 ` Roberto Sassu [this message]2022-01-11 18:03 ` [PATCH 05/14] PGPLIB: Signature parser Roberto Sassu2022-01-11 18:03 ` [PATCH 06/14] KEYS: PGP data parser Roberto Sassu2022-01-11 18:03 ` [PATCH 07/14] KEYS: Provide PGP key description autogeneration Roberto Sassu2022-01-11 18:03 ` [PATCH 08/14] KEYS: PGP-based public key signature verification Roberto Sassu2022-01-11 18:03 ` [PATCH 09/14] KEYS: Retry asym key search with partial ID in restrict_link_by_signature() Roberto Sassu2022-01-11 18:03 ` [PATCH 10/14] KEYS: Calculate key digest and get signature of the key Roberto Sassu2022-01-11 18:03 ` [PATCH 11/14] verification: introduce verify_pgp_signature() Roberto Sassu2022-01-11 18:03 ` [PATCH 12/14] PGP: Provide a key type for testing PGP signatures Roberto Sassu2022-01-11 18:03 ` [PATCH 13/14] KEYS: Provide a function to load keys from a PGP keyring blob Roberto Sassu2022-01-11 18:03 ` [PATCH 14/14] KEYS: Introduce load_pgp_public_keyring() Roberto Sassu2022-01-11 20:33 ` [PATCH 00/14] KEYS: Add support for PGP keys and signatures Maciej S. Szmigiero2022-01-12 9:16 ` Roberto Sassu2022-01-12 20:15 ` Maciej S. Szmigiero2022-01-13 9:11 ` Roberto Sassu2022-01-17 14:34 ` Jason A. Donenfeld2022-01-17 15:02 ` James Bottomley2022-01-18 20:50 ` Antony Vennard2022-01-18 23:03 ` Eric Biggers2022-01-19 13:25 ` Roberto Sassu2022-01-21 16:50 ` Roberto Sassu2022-01-23 21:00 ` Antony
2025-04-08Packagespackage events Event handlers for library actions. package exceptions Detailed PGP Exceptions. package inspect OpenPGP inspection API (Advanced) package net Network clients for accessing OpenPGP Key servers. package storage Classesinterface CompressionAlgorithm Interface that lists the supported compression algorithms for OpenPGP encryption. More... interface ContentDataType Interface that lists the supported content type settings for OpenPGP archives. More... interface CypherAlgorithm Interface that lists the supported symmetric encryption algorithms used in the library. More... interface EcCurve Lists the OpenPGP Elliptic Curve Cryptography (ECC) supported named curves defined in RFC 6637. More... interface HashAlgorithm Interface that lists the supported hashing algorithms used in the library. More... interface KeyAlgorithm Interface that lists the supported asymmetric algorithms for OpenPGP keys. More... class KeyPairInformation Represents an OpenPGP key pair. More... class KeyStore Represents an OpenPGP Key Store. More... class PGPException Exception indicating that an OpenPGP encryption error has occurred. More... class PGPFileInformation Reserved for future releases. More... class PGPKeyPair Represents an OpenPGP key loaded from a key file. More... class PGPLib OpenPGP Library for Java. More... class RevocationLib OpenPGP Key Revocation Library for Java. More... interface SecureRandomSource A plugable interface for customizing the Random data source of the Library Example: More... enum SignatureCheckResult Represents the result of an OpenPGP signature check. More... interface TrustLevel Holds common trust values. More...
2025-04-23From: Roberto Sassu To: , , , Cc: keyrings@vger.kernel.org>, linux-crypto@vger.kernel.org>, linux-integrity@vger.kernel.org>, linux-fscrypt@vger.kernel.org>, linux-kernel@vger.kernel.org>, , , Roberto Sassu Subject: [PATCH 04/14] PGPLIB: Basic packet parserDate: Tue, 11 Jan 2022 19:03:08 +0100 [thread overview]Message-ID: (raw)In-Reply-To: 20220111180318.591029-1-roberto.sassu@huawei.com>From: David Howells Provide a simple parser that extracts the packets from a PGP packet bloband passes the desirous ones to the given processor function: struct pgp_parse_context { u64 types_of_interest; int (*process_packet)(struct pgp_parse_context *context, enum pgp_packet_tag type, u8 headerlen, const u8 *data, size_t datalen); }; int pgp_parse_packets(const u8 *data, size_t datalen, struct pgp_parse_context *ctx);This is configured on with CONFIG_PGP_LIBRARY.Signed-off-by: David Howells Co-developed-by: Roberto Sassu Signed-off-by: Roberto Sassu --- crypto/asymmetric_keys/Kconfig | 6 + crypto/asymmetric_keys/Makefile | 5 + crypto/asymmetric_keys/pgp_library.c | 272 +++++++++++++++++++++++++++ crypto/asymmetric_keys/pgplib.h | 33 ++++ 4 files changed, 316 insertions(+) create mode 100644 crypto/asymmetric_keys/pgp_library.c create mode 100644 crypto/asymmetric_keys/pgplib.hdiff --git a/crypto/asymmetric_keys/Kconfig b/crypto/asymmetric_keys/Kconfigindex 1f1f004dc757..0678ede9d17e 100644--- a/crypto/asymmetric_keys/Kconfig+++ b/crypto/asymmetric_keys/Kconfig@@ -96,4 +96,10 @@ config SIGNED_PE_FILE_VERIFICATION This option provides support for verifying the signature(s) on a signed PE binary. +config PGP_LIBRARY+ tristate "PGP parsing library"+ help+ This option enables a library that provides a number of simple+ utility functions for parsing PGP (RFC 4880) packet-based messages.+ endif # ASYMMETRIC_KEY_TYPEdiff --git a/crypto/asymmetric_keys/Makefile b/crypto/asymmetric_keys/Makefileindex 28b91adba2ae..55a67ebfe8e1 100644--- a/crypto/asymmetric_keys/Makefile+++ b/crypto/asymmetric_keys/Makefile@@ -86,3 +86,8 @@ tpm_key_parser-y := \ $(obj)/tpm_parser.o: $(obj)/tpm.asn1.h $(obj)/tpm.asn1.o: $(obj)/tpm.asn1.c $(obj)/tpm.asn1.h++#+# PGP handling+#+obj-$(CONFIG_PGP_LIBRARY) += pgp_library.odiff --git a/crypto/asymmetric_keys/pgp_library.c b/crypto/asymmetric_keys/pgp_library.cnew file mode 100644index 000000000000..d2c3149983d5--- /dev/null+++ b/crypto/asymmetric_keys/pgp_library.c@@ -0,0 +1,272 @@+// SPDX-License-Identifier: GPL-2.0+/* PGP packet parser (RFC 4880)+ *+ * Copyright (C) 2011 Red Hat, Inc. All Rights Reserved.+ * Written by David Howells (dhowells@redhat.com)+ */++#define pr_fmt(fmt) "PGPL: "fmt+#include +#include +#include ++#include
2025-04-09