#include "system.h"
#include "rpmio_internal.h"
#include "debug.h"
Go to the source code of this file.
Data Structures | |
struct | DIGEST_CTX_s |
MD5/SHA1 digest private data. More... | |
Defines | |
#define | DPRINTF(_a) |
Functions | |
DIGEST_CTX | rpmDigestDup (DIGEST_CTX octx) |
Duplicate a digest context. | |
static HASH_HashType | getHashType (pgpHashAlgo hashalgo) |
size_t | rpmDigestLength (pgpHashAlgo hashalgo) |
Obtain digest length in bytes. | |
DIGEST_CTX | rpmDigestInit (pgpHashAlgo hashalgo, rpmDigestFlags flags) |
Initialize digest. | |
int | rpmDigestUpdate (DIGEST_CTX ctx, const void *data, size_t len) |
Update context with next plain text buffer. | |
int | rpmDigestFinal (DIGEST_CTX ctx, void **datap, size_t *lenp, int asAscii) |
Return digest and destroy context. |
Definition in file digest.c.
#define DPRINTF | ( | _a | ) |
Definition at line 12 of file digest.c.
Referenced by rpmDigestFinal(), rpmDigestInit(), and rpmDigestUpdate().
static HASH_HashType getHashType | ( | pgpHashAlgo | hashalgo | ) | [static] |
Definition at line 41 of file digest.c.
References PGPHASHALGO_HAVAL_5_160, PGPHASHALGO_MD2, PGPHASHALGO_MD5, PGPHASHALGO_RIPEMD160, PGPHASHALGO_SHA1, PGPHASHALGO_SHA256, PGPHASHALGO_SHA384, PGPHASHALGO_SHA512, and PGPHASHALGO_TIGER192.
Referenced by rpmDigestInit(), and rpmDigestLength().