]> git.saurik.com Git - apple/security.git/blobdiff - AppleCSP/PBKDF2/HMACSHA1.h
Security-163.tar.gz
[apple/security.git] / AppleCSP / PBKDF2 / HMACSHA1.h
index af143b92857ca4f09e22ab830ac9e7520ad1f1bb..bf2da80881a910d5db566153092b078bacfaee21 100644 (file)
 
 #include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>
 #include <Security/cssmtype.h>
+#include <MiscCSPAlgs/MD5.h>
+#include <MiscCSPAlgs/SHA1.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#define kHMACSHA1DigestSize  20
-#define kHMACMD5DigestSize      16
-
-/* XXX These should really be in SHA1.h */
-#define kSHA1DigestSize        20
-#define kSHA1BlockSize         64
+#define kHMACSHA1DigestSize    SHA1_DIGEST_SIZE
+#define kHMACMD5DigestSize             MD5_DIGEST_SIZE
 
 /* This function create an HMACSHA1 digest of kHMACSHA1DigestSizestSize bytes
  * and outputs it to resultPtr.  See RFC 2104 for details.  */