1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- .TH "Md5Sum" 3 "Tue Aug 9 2022" "openPilotLog" \" -*- nroff -*-
- .ad l
- .nh
- .SH NAME
- Md5Sum \- The \fBMd5Sum\fP class is responsible for calculating cryptographic hashes of files (used to verify downloads)
- .SH SYNOPSIS
- .br
- .PP
- .PP
- \fC#include <md5sum\&.h>\fP
- .SS "Public Member Functions"
- .in +1c
- .ti -1c
- .RI "\fBMd5Sum\fP (QFileInfo &file_info)"
- .br
- .RI "AHash - calculates the MD5-checksum for the input file specified in the constructor and saves the result in the checksum member variable\&. "
- .ti -1c
- .RI "const QString \fBhashToHex\fP () const"
- .br
- .RI "hashString returns a hex representation of the hash "
- .ti -1c
- .RI "bool \fBcompare\fP (QFileInfo &md5_file) const"
- .br
- .RI "compare reads the pre-calculated md5-sum from a checkfile and compares the hashes\&. "
- .in -1c
- .SS "Public Attributes"
- .in +1c
- .ti -1c
- .RI "QByteArray \fBchecksum\fP"
- .br
- .in -1c
- .SH "Detailed Description"
- .PP
- The \fBMd5Sum\fP class is responsible for calculating cryptographic hashes of files (used to verify downloads)
- .SH "Member Function Documentation"
- .PP
- .SS "bool Md5Sum::compare (QFileInfo & md5_file) const"
- .PP
- compare reads the pre-calculated md5-sum from a checkfile and compares the hashes\&.
- .PP
- \fBParameters\fP
- .RS 4
- \fImd5_file\fP - the checkfile containing the md5 checksum in hex format
- .RE
- .PP
- \fBReturns\fP
- .RS 4
- true if hashes match
- .RE
- .PP
- .SH "Author"
- .PP
- Generated automatically by Doxygen for openPilotLog from the source code\&.
|