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) |
void | rpmFreeSignature (Header h) |
Enumerations | |
enum | pgpVersion_e { PGP_NOTDETECTED = -1, PGP_UNKNOWN = 0, PGP_2 = 2, PGP_5 = 5 } |
Functions | |
Header | rpmNewSignature (void) |
int | rpmReadSignature (FD_t fd, Header *headerp, short sigType) |
int | rpmWriteSignature (FD_t fd, Header header) |
int | rpmAddSignature (Header header, 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.
Definition at line 86 of file signature.h. |
|
Tags found in signature header from package.
|
|
Generate a signature of data in file, insert in header. Definition at line 392 of file signature.c. |
|
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 222 of file signature.c. |
|
Read a pass phrase from the user. Definition at line 744 of file signature.c. Referenced by main(). |
|
Return type of signature in effect for building. Definition at line 35 of file signature.c. |
|
Return new, empty (signature) header instance.
Definition at line 216 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 128 of file signature.c. Referenced by readPackageHeaders(), rpmCheckSig(), and rpmReSign(). |
|
Verify a signature from a package.
Definition at line 791 of file signature.c. Referenced by rpmCheckSig(). |
|
Write signature header.
Definition at line 195 of file signature.c. |