rpm 4.19.92
The RPM Package Manager
|
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <rpm/rpmtypes.h>
#include <rpm/rpmstring.h>
#include <rpm/rpmcrypto.h>
Go to the source code of this file.
Macros | |
#define | PGP_KEYID_LEN 8 |
#define | PGPARMOR_ERROR PGPARMOR_ERR_NO_BEGIN_PGP |
Typedefs | |
typedef struct pgpDigParams_s * | pgpDigParams |
typedef uint8_t | pgpKeyID_t[PGP_KEYID_LEN] |
typedef enum pgpTag_e | pgpTag |
typedef enum pgpSigType_e | pgpSigType |
typedef enum pgpPubkeyAlgo_e | pgpPubkeyAlgo |
typedef enum pgpSymkeyAlgo_e | pgpSymkeyAlgo |
typedef enum pgpCompressAlgo_e | pgpCompressAlgo |
typedef enum pgpHashAlgo_e | pgpHashAlgo |
typedef enum pgpCurveId_e | pgpCurveId |
typedef enum pgpSubType_e | pgpSubType |
typedef enum pgpArmor_e | pgpArmor |
typedef enum pgpArmorKey_e | pgpArmorKey |
typedef enum pgpValType_e | pgpValType |
Functions | |
const char * | pgpValString (pgpValType type, uint8_t val) |
int | pgpPubkeyFingerprint (const uint8_t *pkt, size_t pktlen, uint8_t **fp, size_t *fplen) |
int | pgpPubkeyKeyID (const uint8_t *pkt, size_t pktlen, pgpKeyID_t keyid) |
int | pgpPrtParams (const uint8_t *pkts, size_t pktlen, unsigned int pkttype, pgpDigParams *ret) |
int | pgpPrtParams2 (const uint8_t *pkts, size_t pktlen, unsigned int pkttype, pgpDigParams *ret, char **lints) |
int | pgpPrtParamsSubkeys (const uint8_t *pkts, size_t pktlen, pgpDigParams mainkey, pgpDigParams **subkeys, int *subkeysCount) |
pgpArmor | pgpReadPkts (const char *fn, uint8_t **pkt, size_t *pktlen) |
pgpArmor | pgpParsePkts (const char *armor, uint8_t **pkt, size_t *pktlen) |
int | pgpPubKeyCertLen (const uint8_t *pkts, size_t pktslen, size_t *certlen) |
rpmRC | pgpPubKeyLint (const uint8_t *pkts, size_t pktslen, char **explanation) |
char * | pgpArmorWrap (int atype, const unsigned char *s, size_t ns) |
int | pgpDigParamsCmp (pgpDigParams p1, pgpDigParams p2) |
unsigned int | pgpDigParamsAlgo (pgpDigParams digp, unsigned int algotype) |
const uint8_t * | pgpDigParamsSignID (pgpDigParams digp) |
const char * | pgpDigParamsUserID (pgpDigParams digp) |
int | pgpDigParamsVersion (pgpDigParams digp) |
uint32_t | pgpDigParamsCreationTime (pgpDigParams digp) |
pgpDigParams | pgpDigParamsFree (pgpDigParams digp) |
rpmRC | pgpVerifySignature (pgpDigParams key, pgpDigParams sig, DIGEST_CTX hashctx) |
rpmRC | pgpVerifySignature2 (pgpDigParams key, pgpDigParams sig, DIGEST_CTX hashctx, char **lints) |
int | pgpSignatureType (pgpDigParams sig) |
char * | pgpIdentItem (pgpDigParams digp) |
OpenPGP constants and structures from RFC-2440.
Text from RFC-2440 in comments is Copyright (C) The Internet Society (1998). All Rights Reserved.
EdDSA algorithm identifier value taken from https://datatracker.ietf.org/doc/draft-ietf-openpgp-rfc4880bis/ This value is used in gnupg since version 2.1.0