15#import <Foundation/Foundation.h>
17NS_ASSUME_NONNULL_BEGIN
80 unsigned int cbLength,
81 const unsigned char *pbExpectedDigest);
NS_ASSUME_NONNULL_BEGIN NSString * CreateMd5HexStringFromCString(const char *lpcszInput)
Hashes a NUL-terminated C string and returns the digest as a hexadecimal string.
Definition Md5Utilities.m:21
NSString * CreateSha256HexStringFromData(NSData *data, bool uppercase)
Hashes an NSData with SHA-256 and returns the digest as a hexadecimal string.
Definition Md5Utilities.m:85
NSData * CreateMd5DataFromCString(const char *lpcszInput)
Hashes a NUL-terminated C string and returns the raw 16-byte digest as data.
Definition Md5Utilities.m:39
bool VerifyMd5Digest(const void *pvData, unsigned int cbLength, const unsigned char *pbExpectedDigest)
Hashes an explicit-length buffer with MD5 and compares it against an expected digest.
Definition Md5Utilities.m:51
NSString * CreateMD5HexString(const void *pvData, unsigned int cbLength)
Hashes an explicit-length buffer and returns the digest as a hexadecimal string.
Definition Md5Utilities.m:67