1 #include "SecDigestTransform.h"
6 const CFStringRef kSecDigestMD2
= CFSTR("MD2 Digest"),
7 kSecDigestMD4
= CFSTR("MD4 Digest"),
8 kSecDigestMD5
= CFSTR("MD5 Digest"),
9 kSecDigestSHA1
= CFSTR("SHA1 Digest"),
10 kSecDigestSHA2
= CFSTR("SHA2 Digest Family"),
11 kSecDigestHMACMD5
= CFSTR("HMAC-MD5"),
12 kSecDigestHMACSHA1
= CFSTR("HMAC-SHA1"),
13 kSecDigestHMACSHA2
= CFSTR("HMAC-SHA2 Digest Family");
15 const CFStringRef kSecDigestTypeAttribute
= CFSTR("Digest Type"),
16 kSecDigestLengthAttribute
= CFSTR("Digest Length"),
17 kSecDigestHMACKeyAttribute
= CFSTR("HMAC Key");
19 SecTransformRef
SecDigestTransformCreate(CFTypeRef digestType
,
24 SecTransformRef tr
= DigestTransform::Make();
25 DigestTransform
* dt
= (DigestTransform
*) CoreFoundationHolder::ObjectFromCFType(tr
);
27 CFErrorRef result
= dt
->Setup(digestType
, digestLength
);
46 CFTypeID
SecDigestTransformGetTypeID()
48 return DigestTransform::GetCFTypeID();