Go to the documentation of this file.
16 #include <rpm/rpmtypes.h>
17 #include <rpm/rpmstring.h>
898 #define PGPARMOR_ERROR PGPARMOR_ERR_NO_BEGIN_PGP
956 unsigned int pgpGrab(
const uint8_t *s,
size_t nbytes)
959 size_t nb = (nbytes <=
sizeof(i) ? nbytes :
sizeof(i));
971 char *
pgpHexStr(
const uint8_t *p,
size_t plen);
982 uint8_t **fp,
size_t *fplen);
1001 int pgpPrtParams(
const uint8_t *pkts,
size_t pktlen,
unsigned int pkttype,
1024 int pgpPrtPkts(
const uint8_t *pkts,
size_t pktlen,
pgpDig dig,
int printing);
1056 int pgpPubKeyCertLen(
const uint8_t *pkts,
size_t pktslen,
size_t *certlen);
1065 char *
pgpArmorWrap(
int atype,
const unsigned char * s,
size_t ns);
1202 size_t * lenp,
int asAscii);
1259 void ** datap,
size_t * lenp,
int asAscii);
int pgpPrtParams(const uint8_t *pkts, size_t pktlen, unsigned int pkttype, pgpDigParams *ret)
rpmRC pgpVerifySig(pgpDig dig, DIGEST_CTX hashctx)
@ PGPSIGTYPE_POSITIVE_CERT
enum pgpCompressAlgo_e pgpCompressAlgo
@ PGPSUBTYPE_SIGNER_USERID
size_t rpmDigestLength(int hashalgo)
@ PGPTAG_ONEPASS_SIGNATURE
int rpmDigestFinal(DIGEST_CTX ctx, void **datap, size_t *lenp, int asAscii)
@ PGPSUBTYPE_INTERNAL_102
@ PGPSUBTYPE_PREFER_SYMKEY
enum pgpSubType_e pgpSubType
union pgpPktKey_u pgpPktKey
@ PGPPUBKEYALGO_ELGAMAL_ENCRYPT
unsigned int pgpDigParamsAlgo(pgpDigParams digp, unsigned int algotype)
int rpmDigestBundleAddID(rpmDigestBundle bundle, int algo, int id, rpmDigestFlags flags)
struct pgpPktSigV3_s * pgpPktSigV3
int pgpPubkeyFingerprint(const uint8_t *pkt, size_t pktlen, uint8_t **fp, size_t *fplen)
@ PGPSYMKEYALGO_PLAINTEXT
@ PGPSUBTYPE_PREFER_KEYSERVER
@ PGPSUBTYPE_INTERNAL_110
int pgpPubKeyCertLen(const uint8_t *pkts, size_t pktslen, size_t *certlen)
@ PGPHASHALGO_HAVAL_5_160
enum pgpArmorKey_e pgpArmorKey
@ PGPSIGTYPE_GENERIC_CERT
@ PGPSUBTYPE_INTERNAL_107
@ PGPSUBTYPE_SIG_EXPIRE_TIME
pgpArmor pgpParsePkts(const char *armor, uint8_t **pkt, size_t *pktlen)
pgpDigParams pgpDigGetParams(pgpDig dig, unsigned int pkttype)
struct pgpPktKeyV3_s * pgpPktKeyV3
int rpmDigestBundleAdd(rpmDigestBundle bundle, int algo, rpmDigestFlags flags)
void pgpCleanDig(pgpDig dig)
int pgpPrtPkts(const uint8_t *pkts, size_t pktlen, pgpDig dig, int printing)
char * pgpHexStr(const uint8_t *p, size_t plen)
@ PGPSYMKEYALGO_TRIPLE_DES
struct pgpPktCdata_s pgpPktCdata
@ PGPPUBKEYALGO_RSA_ENCRYPT
@ PGPSUBTYPE_PRIMARY_USERID
int pgpDigParamsCmp(pgpDigParams p1, pgpDigParams p2)
pgpArmor pgpReadPkts(const char *fn, uint8_t **pkt, size_t *pktlen)
rpmDigestBundle rpmDigestBundleFree(rpmDigestBundle bundle)
@ PGPSUBTYPE_SIG_CREATE_TIME
@ PGPARMOR_ERR_BODY_DECODE
const char * pgpValString(pgpValType type, uint8_t val)
@ PGPSUBTYPE_EMBEDDED_SIG
@ PGPSUBTYPE_INTERNAL_100
DIGEST_CTX rpmDigestBundleDupCtx(rpmDigestBundle bundle, int id)
struct pgpPktUid_s pgpPktUid
@ PGPSUBTYPE_INTERNAL_108
@ PGPSUBTYPE_INTERNAL_103
@ PGPARMOR_ERR_NO_END_PGP
struct rpmDigestBundle_s * rpmDigestBundle
struct pgpPktTrust_s pgpPktTrust
char * pgpIdentItem(pgpDigParams digp)
@ PGPSUBTYPE_INTERNAL_106
int pgpPubkeyKeyID(const uint8_t *pkt, size_t pktlen, pgpKeyID_t keyid)
@ PGPSUBTYPE_ISSUER_KEYID
rpmDigestBundle rpmDigestBundleNew(void)
@ PGPARMOR_SIGNED_MESSAGE
@ PGPARMOR_ERR_UNKNOWN_PREAMBLE_TAG
struct pgpPktKeyV4_s * pgpPktKeyV4
@ PGPSIGTYPE_PERSONA_CERT
struct pgpPktEdata_s pgpPktEdata
enum pgpValType_e pgpValType
char * pgpArmorWrap(int atype, const unsigned char *s, size_t ns)
@ PGPSUBTYPE_INTERNAL_104
@ PGPSUBTYPE_INTERNAL_105
DIGEST_CTX rpmDigestInit(int hashalgo, rpmDigestFlags flags)
@ PGPSIGTYPE_SUBKEY_BINDING
@ PGPSIGTYPE_SUBKEY_REVOKE
@ PGPTAG_SYMMETRIC_SESSION_KEY
enum pgpHashAlgo_e pgpHashAlgo
enum pgpSymkeyAlgo_e pgpSymkeyAlgo
enum pgpSigType_e pgpSigType
pgpDig pgpFreeDig(pgpDig dig)
rpmRC pgpVerifySignature(pgpDigParams key, pgpDigParams sig, DIGEST_CTX hashctx)
pgpDigParams pgpDigParamsFree(pgpDigParams digp)
@ PGPSUBTYPE_KEY_EXPIRE_TIME
int rpmDigestBundleUpdate(rpmDigestBundle bundle, const void *data, size_t len)
@ PGPTAG_PUBLIC_SESSION_KEY
struct pgpPktSymkey_s pgpPktSymkey
5.3.
int rpmDigestBundleFinal(rpmDigestBundle bundle, int id, void **datap, size_t *lenp, int asAscii)
static unsigned int pgpGrab(const uint8_t *s, size_t nbytes)
struct pgpPktLdata_s pgpPktLdata
struct pgpDigParams_s * pgpDigParams
union pgpPktSig_u * pgpPktSig
@ PGPSUBTYPE_INTERNAL_101
@ PGPARMOR_ERR_CRC_DECODE
@ PGPSYMKEYALGO_NOENCRYPT
@ PGPARMOR_ERR_UNKNOWN_ARMOR_TYPE
@ PGPSUBTYPE_PREFER_COMPRESS
struct pgpPktSigV4_s * pgpPktSigV4
@ PGPSUBTYPE_KEYSERVER_PREFERS
@ PGPSUBTYPE_REVOKE_REASON
struct DIGEST_CTX_s * DIGEST_CTX
int pgpPrtParamsSubkeys(const uint8_t *pkts, size_t pktlen, pgpDigParams mainkey, pgpDigParams **subkeys, int *subkeysCount)
enum pgpPubkeyAlgo_e pgpPubkeyAlgo
int rpmDigestUpdate(DIGEST_CTX ctx, const void *data, size_t len)
struct pgpPktOnepass_s * pgpPktOnepass
DIGEST_CTX rpmDigestDup(DIGEST_CTX octx)
@ PGPARMOR_ERR_NO_BEGIN_PGP
@ PGPSUBTYPE_INTERNAL_109
@ PGPSUBTYPE_EXPORTABLE_CERT
struct pgpPktPubkey_s pgpPktPubkey