|
BFLibC 0.1
C Library
|
#include "checksum.h"#include "log.h"#include <stdlib.h>#include "free.h"#include <string.h>#include <stdio.h>#include <openssl/md5.h>#include <openssl/sha.h>
Functions | |
| size_t | BFChecksumGetDigestStringLength (BFChecksumTools *tools) |
| void | BFChecksumDestroy (BFChecksumTools *tools) |
| int | BFChecksumGetDigestString (BFChecksumTools *tools, char *dig) |
| int | BFChecksumCreate (BFChecksumTools *tools, BFChecksumType type) |
| int | BFChecksumUpdate (BFChecksumTools *tools, const void *data, size_t size) |
| int | BFChecksumFinal (BFChecksumTools *tools) |
| int BFChecksumCreate | ( | BFChecksumTools * | tools, |
| BFChecksumType | type ) |
Inits checksum context
| void BFChecksumDestroy | ( | BFChecksumTools * | tools | ) |
Cleans up memory for tools
Caller doesn't own members but still owns tools struct
| int BFChecksumFinal | ( | BFChecksumTools * | tools | ) |
finalizes context
| int BFChecksumGetDigestString | ( | BFChecksumTools * | tools, |
| char * | dig ) |
dig: must have length BFChecksumTools.digestLength + 1
| size_t BFChecksumGetDigestStringLength | ( | BFChecksumTools * | tools | ) |
author: Brando date: 6/2/23
| int BFChecksumUpdate | ( | BFChecksumTools * | tools, |
| const void * | data, | ||
| size_t | size ) |
updates context