rpm
5.4.15
|
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 unsigned char | nibble (char c) |
Convert hex to binary nibble. More... | |
static int | rpmbcSetRSA (DIGEST_CTX ctx, pgpDig dig, pgpDigParams sigp) |
static int | rpmbcSetDSA (DIGEST_CTX ctx, pgpDig dig, pgpDigParams sigp) |
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 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 49 of file rpmbc.c.
Referenced by rpmbcMpiItem().
#define _spewMPN | ( | _N, | |
_MPN | |||
) |
Definition at line 54 of file rpmbc.c.
Referenced by rpmbcMpiItem().
#define SPEW | ( | _t, | |
_rc, | |||
_dig | |||
) |
Definition at line 25 of file rpmbc.c.
Referenced by rpmbcExportPubkey(), rpmbcExportSignature(), rpmbcGenerate(), rpmbcSetDSA(), rpmbcSetECDSA(), rpmbcSetELG(), rpmbcSetRSA(), rpmbcSign(), and rpmbcVerify().
|
static |
Convert hex to binary nibble.
c | hex character |
Definition at line 37 of file rpmbc.c.
Referenced by rpmbcExportPubkey(), and rpmbcSetRSA().
|
static |
Definition at line 343 of file rpmbc.c.
References PGPHASHALGO_MD5.
|
static |
Definition at line 353 of file rpmbc.c.
References PGPHASHALGO_MD5.
|
static |
|
static |
|
static |
int rpmbcExportPubkey | ( | pgpDig | dig | ) |
Definition at line 710 of file rpmbc.c.
References i, nibble(), ns, pgpGetPubkey(), PGPPUBKEYALGO_DSA, PGPPUBKEYALGO_ECDSA, PGPPUBKEYALGO_RSA, pgpPubkeyFingerprint(), PGPTAG_PUBLIC_KEY, SPEW, time, and xmalloc.
Referenced by pgpExportPubkey().
int rpmbcExportSignature | ( | pgpDig | dig, |
DIGEST_CTX | ctx | ||
) |
Definition at line 818 of file rpmbc.c.
References pgpGetPubkey(), pgpGetSignature(), pgpImplSetDSA(), pgpImplSetECDSA(), pgpImplSetRSA(), pgpImplSign(), PGPPUBKEYALGO_DSA, PGPPUBKEYALGO_ECDSA, PGPPUBKEYALGO_RSA, PGPSIGTYPE_BINARY, PGPSUBTYPE_EXPORTABLE_CERT, PGPSUBTYPE_ISSUER_KEYID, PGPSUBTYPE_REVOCABLE, PGPSUBTYPE_SIG_CREATE_TIME, PGPSUBTYPE_SIG_EXPIRE_TIME, PGPTAG_SIGNATURE, rpmDigestUpdate(), SPEW, time, and xmalloc.
Referenced by pgpExportSignature().
|
static |
Definition at line 679 of file rpmbc.c.
References _free(), and rpmbcClean().
|
static |
Definition at line 469 of file rpmbc.c.
References pgpGetPubkey(), pgpGetSignature(), PGPHASHALGO_MD5, PGPHASHALGO_SHA224, PGPHASHALGO_SHA256, PGPHASHALGO_SHA384, PGPHASHALGO_SHA512, PGPHASHALGO_TIGER192, PGPPUBKEYALGO_DSA, PGPPUBKEYALGO_ECDSA, PGPPUBKEYALGO_ELGAMAL, PGPPUBKEYALGO_RSA, and SPEW.
|
static |
|
static |
Definition at line 542 of file rpmbc.c.
References _free(), _pgp_debug, _pgp_print, _spewMPB, _spewMPN, pgpHexStr(), pgpMpiBits(), pgpMpiLen(), and xstrdup().
|
static |
Definition at line 166 of file rpmbc.c.
References _free(), pgpGetPubkey(), pgpHashAlgo2Name(), pgpPubkeyAlgo2Name(), PGPPUBKEYALGO_DSA, rpmDigestAlgo(), rpmDigestFinal(), and SPEW.
|
static |
Definition at line 303 of file rpmbc.c.
References pgpGetPubkey(), pgpHashAlgo2Name(), pgpPubkeyAlgo2Name(), PGPPUBKEYALGO_ECDSA, rpmDigestAlgo(), rpmDigestFinal(), and SPEW.
|
static |
Definition at line 198 of file rpmbc.c.
References _free(), pgpGetPubkey(), pgpHashAlgo2Name(), pgpPubkeyAlgo2Name(), PGPPUBKEYALGO_ELGAMAL, rpmDigestAlgo(), rpmDigestFinal(), and SPEW.
|
static |
Definition at line 99 of file rpmbc.c.
References _free(), nibble(), pgpGetPubkey(), pgpHashAlgo2Name(), pgpPubkeyAlgo2Name(), PGPPUBKEYALGO_RSA, prefix, rpmDigestAlgo(), rpmDigestASN1(), rpmDigestFinal(), SPEW, and xmalloc.
|
static |
Definition at line 407 of file rpmbc.c.
References pgpGetPubkey(), PGPPUBKEYALGO_DSA, PGPPUBKEYALGO_ECDSA, PGPPUBKEYALGO_ELGAMAL, PGPPUBKEYALGO_RSA, and SPEW.
|
static |
Definition at line 372 of file rpmbc.c.
References pgpGetPubkey(), PGPPUBKEYALGO_DSA, PGPPUBKEYALGO_ECDSA, PGPPUBKEYALGO_ELGAMAL, PGPPUBKEYALGO_RSA, and SPEW.
int _pgp_debug |
Definition at line 42 of file rpmpgp.c.
Referenced by rpmbcMpiItem().
int _pgp_print |
Definition at line 45 of file rpmpgp.c.
Referenced by rpmbcMpiItem().
struct pgpImplVecs_s rpmbcImplVecs |
Definition at line 695 of file rpmbc.c.
Referenced by pgpExportPubkey(), pgpExportSignature(), and rpmioAllArgCallback().