file_cmds-264.1.1.tar.gz
[apple/file_cmds.git] / mtree / commoncrypto.h
1 #include <CommonCrypto/CommonDigestSPI.h>
2
3 #define kNone "none"
4
5 extern const int kSHA256NullTerminatedBuffLen;
6
7 #define MD5File(f, b) Digest_File(kCCDigestMD5, f, b)
8 #define SHA1_File(f, b) Digest_File(kCCDigestSHA1, f, b)
9 #define RIPEMD160_File(f, b) Digest_File(kCCDigestRMD160, f, b)
10 #define SHA256_File(f, b) Digest_File(kCCDigestSHA256, f, b)
11
12 char *Digest_File(CCDigestAlg algorithm, const char *filename, char *buf);
13
14 char *SHA256_Path_XATTRs(char *path, char *buf);
15 char *SHA256_Path_ACL(char *path, char *buf);