|
libalpm
Arch Linux Package Manager Library
|
#include <string.h>

Go to the source code of this file.
Data Structures | |
| struct | sha2_context |
| SHA-256 context structure. More... | |
Functions | |
| void | sha2 (const unsigned char *input, size_t ilen, unsigned char output[32], int is224) |
| Output = SHA-256( input buffer ) | |
| int | sha2_file (const char *path, unsigned char output[32], int is224) |
| Output = SHA-256( file contents ) | |
| void sha2 | ( | const unsigned char * | input, |
| size_t | ilen, | ||
| unsigned char | output[32], | ||
| int | is224 | ||
| ) |
| int sha2_file | ( | const char * | path, |
| unsigned char | output[32], | ||
| int | is224 | ||
| ) |
Output = SHA-256( file contents )
| path | input file name |
| output | SHA-224/256 checksum result |
| is224 | 0 = use SHA256, 1 = use SHA224 |
Definition at line 343 of file sha2.c.
Referenced by alpm_compute_sha256sum().

1.7.6.1