Added comments.
FossilOrigin-Name: 63db9e0973255068703930ea26785ae0bcd6f4e103a66d5b0233e11ae117b008
This commit is contained in:
parent
75e73fe2f8
commit
3915bf5787
@ -6,10 +6,17 @@
|
|||||||
|
|
||||||
#include "capwap_crypto.h"
|
#include "capwap_crypto.h"
|
||||||
|
|
||||||
|
|
||||||
#define BLOCK_SIZE 4096
|
#define BLOCK_SIZE 4096
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Calculate MD5 checksum for an opened file.
|
||||||
|
* @param digest destination buffer for calculated
|
||||||
|
* checksum (16 bytes, for a predifned constant use #CW_MD5_DIGEST_SIZE)
|
||||||
|
* @param infile filehanle
|
||||||
|
*
|
||||||
|
* Remember to set the file pointer to the beginning of the file, before
|
||||||
|
* calling this function. Therefor use fseek(file,0,SEEK_SET).
|
||||||
|
*/
|
||||||
int cw_fgetmd5sum(uint8_t *digest, FILE *infile)
|
int cw_fgetmd5sum(uint8_t *digest, FILE *infile)
|
||||||
{
|
{
|
||||||
struct md5_ctx ctx;
|
struct md5_ctx ctx;
|
||||||
|
Loading…
Reference in New Issue
Block a user