JubeatPlus 3.9.11
Loading...
Searching...
No Matches
Md5Utilities.h
Go to the documentation of this file.
1
12
13#include <stdbool.h>
14
15#import <Foundation/Foundation.h>
16
17NS_ASSUME_NONNULL_BEGIN
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
33NSString *CreateMd5HexStringFromCString(const char *lpcszInput);
34
46NSData *CreateMd5DataFromCString(const char *lpcszInput);
47
60NSString *CreateMD5HexString(const void *pvData, unsigned int cbLength);
61
79bool VerifyMd5Digest(const void *pvData,
80 unsigned int cbLength,
81 const unsigned char *pbExpectedDigest);
82
98NSString *CreateSha256HexStringFromData(NSData *data, bool uppercase);
99
100#ifdef __cplusplus
101}
102#endif
103
104NS_ASSUME_NONNULL_END
105
106// code: language=Objective-C
107// kate: hl Objective-C;
108// vim: set ft=objc :
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