Files | |
file | base64.c |
file | digest.c |
file | md5.c |
This code implements the MD5 message-digest algorithm. | |
file | md5sum.c |
Generate/check MD5 Message Digests. | |
file | rpmlib.h |
file | signature.c |
file | signature.h |
Generate and verify signatures. | |
RPMK | |
enum | rpmtagSignature { RPMSIGTAG_SIZE = 1000, RPMSIGTAG_LEMD5_1 = 1001, RPMSIGTAG_PGP = 1002, RPMSIGTAG_LEMD5_2 = 1003, RPMSIGTAG_MD5 = 1004, RPMSIGTAG_GPG = 1005, RPMSIGTAG_PGP5 = 1006, RPMTAG_PK_BASE = 512, RPMTAG_PK_RSA_ES = RPMTAG_PK_BASE+1, RPMTAG_PK_RSA_E = RPMTAG_PK_BASE+2, RPMTAG_PK_RSA_S = RPMTAG_PK_BASE+3, RPMTAG_PK_ELGAMAL_E = RPMTAG_PK_BASE+16, RPMTAG_PK_DSA = RPMTAG_PK_BASE+17, RPMTAG_PK_ELLIPTIC = RPMTAG_PK_BASE+18, RPMTAG_PK_ECDSA = RPMTAG_PK_BASE+19, RPMTAG_PK_ELGAMAL_ES = RPMTAG_PK_BASE+20, RPMTAG_PK_DH = RPMTAG_PK_BASE+21, RPMTAG_HASH_BASE = 512+64, RPMTAG_HASH_MD5 = RPMTAG_HASH_BASE+1, RPMTAG_HASH_SHA1 = RPMTAG_HASH_BASE+2, RPMTAG_HASH_RIPEMD160 = RPMTAG_HASH_BASE+3, RPMTAG_HASH_MD2 = RPMTAG_HASH_BASE+5, RPMTAG_HASH_TIGER192 = RPMTAG_HASH_BASE+6, RPMTAG_HASH_HAVAL_5_160 = RPMTAG_HASH_BASE+7 } |
rpmVerifySignatureReturn | rpmVerifySignature (const char *file, int_32 sigTag, const void *sig, int count, char *result) |
Header | rpmFreeSignature (Header h) |
Typedefs | |
typedef enum sigType_e | sigType |
typedef enum pgpVersion_e | pgpVersion |
Enumerations | |
enum | sigType_e { RPMSIGTYPE_NONE = 0, RPMSIGTYPE_PGP262_1024 = 1, RPMSIGTYPE_BAD = 2, RPMSIGTYPE_MD5 = 3, RPMSIGTYPE_MD5_PGP = 4, RPMSIGTYPE_HEADERSIG = 5, RPMSIGTYPE_DISABLE = 6 } |
enum | pgpVersion_e { PGP_NOTDETECTED = -1, PGP_UNKNOWN = 0, PGP_2 = 2, PGP_5 = 5 } |
Functions | |
Header | rpmNewSignature (void) |
rpmRC | rpmReadSignature (FD_t fd, Header *headerp, sigType sig_type) |
int | rpmWriteSignature (FD_t fd, Header h) |
int | rpmAddSignature (Header h, const char *file, int_32 sigTag, const char *passPhrase) |
int | rpmLookupSignatureType (int action) |
char* | rpmGetPassPhrase (const char *prompt, const int sigTag) |
const char* | rpmDetectPGPVersion (pgpVersion *pgpVer) |
|
Identify PGP versions.
|
|
Signature types stored in rpm lead. |
|
Identify PGP versions.
Definition at line 30 of file signature.h. |
|
Tags found in signature header from package.
|
|
Signature types stored in rpm lead.
Definition at line 14 of file signature.h. |
|
Generate a signature of data in file, insert in header. Definition at line 419 of file signature.c. Referenced by rpmReSign(), and writeRPM().
|
|
Return path to pgp executable of given type, or NULL when not found. Definition at line 73 of file signature.c. Referenced by checkPassPhrase(), main(), makePGPSignature(), and verifyPGPSignature().
|
|
Destroy signature header from package.
Definition at line 239 of file signature.c. |
|
Read a pass phrase from the user. Definition at line 811 of file signature.c. Referenced by main().
|
|
Return type of signature in effect for building. Definition at line 36 of file signature.c. Referenced by main(), rpmReSign(), and writeRPM().
|
|
Return new, empty (signature) header instance.
Definition at line 233 of file signature.c. |
|
Read (and verify header+archive size) signature header. If an old-style signature is found, we emulate a new style one.
Definition at line 144 of file signature.c. Referenced by main(), readPackageHeaders(), rpmCheckSig(), and rpmReSign().
|
|
Verify a signature from a package.
Definition at line 858 of file signature.c. |
|
Write signature header.
Definition at line 213 of file signature.c. Referenced by main(), psmStage(), rpmReSign(), and writeRPM().
|