rpm
5.4.10
|
Go to the source code of this file.
Macros | |
#define | _RPMBC_INTERNAL |
#define | _RPMPGP_INTERNAL |
#define | SPEW(_t, _rc, _dig) |
#define | _spewMPB(_N, _MPB) |
#define | _spewMPN(_N, _MPN) |
Functions | |
static const char * | _pgpHashAlgo2Name (uint32_t algo) |
static const char * | _pgpPubkeyAlgo2Name (uint32_t algo) |
static unsigned char | nibble (char c) |
Convert hex to binary nibble. More... | |
static int | rpmbcSetRSA (DIGEST_CTX ctx, pgpDig dig, pgpDigParams sigp) |
static int | rpmbcVerifyRSA (pgpDig dig) |
static int | rpmbcSignRSA (pgpDig dig) |
static int | rpmbcGenerateRSA (pgpDig dig) |
static int | rpmbcSetDSA (DIGEST_CTX ctx, pgpDig dig, pgpDigParams sigp) |
static int | rpmbcVerifyDSA (pgpDig dig) |
static int | rpmbcSignDSA (pgpDig dig) |
static int | rpmbcGenerateDSA (pgpDig dig) |
static int | rpmbcSetELG (DIGEST_CTX ctx, pgpDig dig, pgpDigParams sigp) |
static int | rpmbcSetECDSA (DIGEST_CTX ctx, pgpDig dig, pgpDigParams sigp) |
static int | rpmbcErrChk (pgpDig dig, const char *msg, int rc, unsigned expected) |
static int | rpmbcAvailableCipher (pgpDig dig, int algo) |
static int | rpmbcAvailableDigest (pgpDig dig, int algo) |
static int | rpmbcAvailablePubkey (pgpDig dig, int algo) |
static int | rpmbcVerify (pgpDig dig) |
static int | rpmbcSign (pgpDig dig) |
static int | rpmbcGenerate (pgpDig dig) |
static char * | pgpMpiHex (const rpmuint8_t *p) |
static int | pgpMpiSet (const char *pre, unsigned int lbits, void *dest, const rpmuint8_t *p, const rpmuint8_t *pend) |
static int | rpmbcMpiItem (const char *pre, pgpDig dig, int itemno, const rpmuint8_t *p, const rpmuint8_t *pend) |
static void | rpmbcClean (void *impl) |
static void * | rpmbcFree (void *impl) |
static void * | rpmbcInit (void) |
int | rpmbcExportPubkey (pgpDig dig) |
int | rpmbcExportSignature (pgpDig dig, DIGEST_CTX ctx) |
Variables | |
int | _pgp_debug |
int | _pgp_print |
static int | _rpmbc_debug |
struct pgpImplVecs_s | rpmbcImplVecs |
#define _spewMPB | ( | _N, | |
_MPB | |||
) |
Definition at line 59 of file rpmbc.c.
Referenced by rpmbcMpiItem().
#define _spewMPN | ( | _N, | |
_MPN | |||
) |
Definition at line 64 of file rpmbc.c.
Referenced by rpmbcMpiItem().
#define SPEW | ( | _t, | |
_rc, | |||
_dig | |||
) |
Definition at line 25 of file rpmbc.c.
Referenced by rpmbcGenerate(), rpmbcGenerateDSA(), rpmbcGenerateRSA(), rpmbcSetDSA(), rpmbcSetECDSA(), rpmbcSetELG(), rpmbcSetRSA(), rpmbcSign(), rpmbcSignDSA(), rpmbcSignRSA(), rpmbcVerify(), rpmbcVerifyDSA(), and rpmbcVerifyRSA().
|
static |
Definition at line 31 of file rpmbc.c.
References pgpHashTbl, and pgpValStr().
Referenced by rpmbcGenerate(), rpmbcSetDSA(), rpmbcSetECDSA(), rpmbcSetELG(), rpmbcSetRSA(), rpmbcSign(), and rpmbcVerify().
|
static |
Definition at line 36 of file rpmbc.c.
References pgpPubkeyTbl, and pgpValStr().
Referenced by rpmbcGenerate(), rpmbcSetDSA(), rpmbcSetECDSA(), rpmbcSetELG(), rpmbcSetRSA(), rpmbcSign(), and rpmbcVerify().
|
static |
Convert hex to binary nibble.
c | hex character |
Definition at line 47 of file rpmbc.c.
Referenced by rpmbcSetRSA().
|
static |
Definition at line 681 of file rpmbc.c.
References pgpHexCvt(), pgpMpiLen(), and xmalloc.
Referenced by pgpMpiSet(), and rpmbcMpiItem().
|
static |
Definition at line 694 of file rpmbc.c.
References _free(), _pgp_debug, pgpMpiBits(), pgpMpiHex(), and xmalloc.
Referenced by rpmbcMpiItem().
|
static |
Definition at line 559 of file rpmbc.c.
References PGPHASHALGO_MD5.
|
static |
Definition at line 569 of file rpmbc.c.
References PGPHASHALGO_MD5.
|
static |
|
static |
|
static |
int rpmbcExportPubkey | ( | pgpDig | dig | ) |
Definition at line 864 of file rpmbc.c.
References pgpGetPubkey(), pgpPubkeyFingerprint(), PGPTAG_PUBLIC_KEY, and xmalloc.
Referenced by pgpDigNew().
int rpmbcExportSignature | ( | pgpDig | dig, |
DIGEST_CTX | ctx | ||
) |
Definition at line 923 of file rpmbc.c.
References pgpGetPubkey(), pgpGetSignature(), pgpImplSetDSA(), pgpImplSign(), PGPSIGTYPE_BINARY, PGPSUBTYPE_EXPORTABLE_CERT, PGPSUBTYPE_ISSUER_KEYID, PGPSUBTYPE_REVOCABLE, PGPSUBTYPE_SIG_CREATE_TIME, PGPSUBTYPE_SIG_EXPIRE_TIME, PGPTAG_SIGNATURE, rpmDigestUpdate(), and xmalloc.
Referenced by writeRPM().
|
static |
Definition at line 834 of file rpmbc.c.
References _free(), and rpmbcClean().
|
static |
Definition at line 648 of file rpmbc.c.
References _pgpHashAlgo2Name(), _pgpPubkeyAlgo2Name(), pgpGetPubkey(), pgpGetSignature(), PGPPUBKEYALGO_DSA, PGPPUBKEYALGO_ECDSA, PGPPUBKEYALGO_ELGAMAL, PGPPUBKEYALGO_RSA, rpmbcGenerateDSA(), rpmbcGenerateRSA(), and SPEW.
|
static |
|
static |
|
static |
|
static |
Definition at line 733 of file rpmbc.c.
References _free(), _pgp_debug, _pgp_print, _spewMPB, _spewMPN, pgpMpiHex(), and pgpMpiSet().
|
static |
Definition at line 248 of file rpmbc.c.
References _free(), _pgpHashAlgo2Name(), _pgpPubkeyAlgo2Name(), pgpGetPubkey(), rpmDigestAlgo(), rpmDigestFinal(), and SPEW.
|
static |
Definition at line 482 of file rpmbc.c.
References _pgpHashAlgo2Name(), _pgpPubkeyAlgo2Name(), pgpGetPubkey(), rpmDigestAlgo(), rpmDigestFinal(), and SPEW.
|
static |
Definition at line 342 of file rpmbc.c.
References _pgpHashAlgo2Name(), _pgpPubkeyAlgo2Name(), pgpGetPubkey(), rpmDigestAlgo(), rpmDigestFinal(), and SPEW.
|
static |
Definition at line 109 of file rpmbc.c.
References _free(), _pgpHashAlgo2Name(), _pgpPubkeyAlgo2Name(), nibble(), pgpGetPubkey(), prefix, rpmDigestAlgo(), rpmDigestASN1(), rpmDigestFinal(), SPEW, stpcpy(), and xmalloc.
|
static |
Definition at line 618 of file rpmbc.c.
References _pgpHashAlgo2Name(), _pgpPubkeyAlgo2Name(), pgpGetPubkey(), pgpGetSignature(), PGPPUBKEYALGO_DSA, PGPPUBKEYALGO_ECDSA, PGPPUBKEYALGO_ELGAMAL, PGPPUBKEYALGO_RSA, rpmbcSignDSA(), rpmbcSignRSA(), and SPEW.
|
static |
|
static |
|
static |
Definition at line 588 of file rpmbc.c.
References _pgpHashAlgo2Name(), _pgpPubkeyAlgo2Name(), pgpGetPubkey(), pgpGetSignature(), PGPPUBKEYALGO_DSA, PGPPUBKEYALGO_ECDSA, PGPPUBKEYALGO_ELGAMAL, PGPPUBKEYALGO_RSA, rpmbcVerifyDSA(), rpmbcVerifyRSA(), and SPEW.
|
static |
|
static |
int _pgp_debug |
Definition at line 29 of file rpmpgp.c.
Referenced by pgpMpiSet(), and rpmbcMpiItem().
int _pgp_print |
Definition at line 32 of file rpmpgp.c.
Referenced by rpmbcMpiItem().
struct pgpImplVecs_s rpmbcImplVecs |
Definition at line 850 of file rpmbc.c.
Referenced by pgpDigNew(), and rpmioAllArgCallback().