FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Code to compute a three part checksum: SHA1.MD5.Size. More...
#include <gcrypt.h>
#include "checksum.h"
Go to the source code of this file.
Functions | |
CksumFile * | SumOpenFile (char *Fname) |
Open and mmap a file. More... | |
void | SumCloseFile (CksumFile *CF) |
Close a file that was opened with SumOpenFile() More... | |
int | CountDigits (uint64_t Num) |
Count how many digits are in a number. More... | |
Cksum * | SumComputeFile (FILE *Fin) |
Compute the checksum, allocate and return a string containing the sum value. More... | |
Cksum * | SumComputeBuff (CksumFile *CF) |
Compute the checksum, allocate and return a Cksum containing the sum value. More... | |
char * | SumToString (Cksum *Sum) |
Return string representing a Cksum. NOTE: The calling function must free() the string! More... | |
int | calc_sha256sum (char *filename, char *dst) |
Code to compute a three part checksum: SHA1.MD5.Size.
Definition in file checksum.c.
int CountDigits | ( | uint64_t | Num | ) |
Count how many digits are in a number.
Num | Number |
Definition at line 97 of file checksum.c.
void SumCloseFile | ( | CksumFile * | CF | ) |
Close a file that was opened with SumOpenFile()
CF | CksumFile ptr |
Definition at line 83 of file checksum.c.
Compute the checksum, allocate and return a Cksum containing the sum value.
CF | CksumFile ptr |
Definition at line 182 of file checksum.c.
Cksum* SumComputeFile | ( | FILE * | Fin | ) |
Compute the checksum, allocate and return a string containing the sum value.
Fin | Open file descriptor |
Definition at line 115 of file checksum.c.
CksumFile* SumOpenFile | ( | char * | Fname | ) |
Open and mmap a file.
Fname | File pathname |
Definition at line 26 of file checksum.c.
char* SumToString | ( | Cksum * | Sum | ) |
Return string representing a Cksum. NOTE: The calling function must free() the string!
Sum | Cksum ptr |
Definition at line 237 of file checksum.c.