#include "pool.h"
Go to the source code of this file.
Functions | |
void * | sat_chksum_create (Id type) |
void * | sat_chksum_create_from_bin (Id type, const unsigned char *buf) |
void | sat_chksum_add (void *handle, const void *data, int len) |
Id | sat_chksum_get_type (void *handle) |
int | sat_chksum_isfinished (void *handle) |
const unsigned char * | sat_chksum_get (void *handle, int *lenp) |
void * | sat_chksum_free (void *handle, unsigned char *cp) |
const char * | sat_chksum_type2str (Id type) |
Id | sat_chksum_str2type (const char *str) |
static int | sat_chksum_len (Id type) |
void* sat_chksum_create | ( | Id | type | ) |
Definition at line 27 of file chksum.c.
References ctxhandle::c, ctxhandle::md5, sat_calloc(), sat_MD5_Init(), sat_SHA1_Init(), sat_SHA256_Init(), ctxhandle::sha1, ctxhandle::sha256, and ctxhandle::type.
void* sat_chksum_create_from_bin | ( | Id | type, | |
const unsigned char * | buf | |||
) |
Definition at line 51 of file chksum.c.
References ctxhandle::done, ctxhandle::result, sat_calloc(), sat_chksum_len(), and ctxhandle::type.
void sat_chksum_add | ( | void * | handle, | |
const void * | data, | |||
int | len | |||
) |
Definition at line 65 of file chksum.c.
References ctxhandle::c, ctxhandle::done, ctxhandle::md5, sat_MD5_Update(), sat_SHA1_Update(), sat_SHA256_Update(), ctxhandle::sha1, ctxhandle::sha256, and ctxhandle::type.
Id sat_chksum_get_type | ( | void * | handle | ) |
int sat_chksum_isfinished | ( | void * | handle | ) |
const unsigned char* sat_chksum_get | ( | void * | handle, | |
int * | lenp | |||
) |
Definition at line 87 of file chksum.c.
References ctxhandle::c, ctxhandle::done, ctxhandle::md5, ctxhandle::result, sat_chksum_len(), sat_MD5_Final(), sat_SHA1_Final(), sat_SHA256_Final(), ctxhandle::sha1, ctxhandle::sha256, and ctxhandle::type.
Referenced by sat_chksum_free().
void* sat_chksum_free | ( | void * | handle, | |
unsigned char * | cp | |||
) |
static int sat_chksum_len | ( | Id | type | ) | [inline, static] |
Definition at line 13 of file chksum.h.
Referenced by repo_lookup_checksum(), repodata_chk2str(), repodata_set_bin_checksum(), repodata_set_checksum(), sat_chksum_create_from_bin(), sat_chksum_get(), and solvable_lookup_checksum().