]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_ssl/lib/sslDigests.h
Security-55471.14.8.tar.gz
[apple/security.git] / libsecurity_ssl / lib / sslDigests.h
index e3c7a1edcf0c15690debca574b314e6ca833ace0..e2994951f9f08e2c30a12799a0995bbb900a8d85 100644 (file)
 #ifndef        _SSL_DIGESTS_H_
 #define _SSL_DIGESTS_H_        1
 
 #ifndef        _SSL_DIGESTS_H_
 #define _SSL_DIGESTS_H_        1
 
-#include "cryptType.h"
+#include <MacTypes.h>
+#include "sslMemory.h"
+#include "tls_digest.h"
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-/*
- * These numbers show up all over the place...might as well hard code 'em once.
- */
-#define SSL_MD5_DIGEST_LEN      16
-#define SSL_SHA1_DIGEST_LEN     20
-#define SSL_SHA256_DIGEST_LEN  32
-#define SSL_SHA384_DIGEST_LEN  48
-#define SSL_MAX_DIGEST_LEN      48 /* >= SSL_MD5_DIGEST_LEN + SSL_SHA1_DIGEST_LEN */
-
-extern const UInt8 SSLMACPad1[], SSLMACPad2[];
-
-extern const HashReference SSLHashNull;
-extern const HashReference SSLHashMD5;
-extern const HashReference SSLHashSHA1;
-extern const HashReference SSLHashSHA256;
-extern const HashReference SSLHashSHA384;
-
 extern OSStatus CloneHashState(
        const HashReference *ref,
        const SSLBuffer *state,
 extern OSStatus CloneHashState(
        const HashReference *ref,
        const SSLBuffer *state,
-       SSLBuffer *newState,
-       SSLContext *ctx);
+       SSLBuffer *newState);
 extern OSStatus ReadyHash(
 extern OSStatus ReadyHash(
-       const HashReference *ref,
-       SSLBuffer *state,
-       SSLContext *ctx);
+       const HashReference *ref, 
+       SSLBuffer *state);
 extern OSStatus CloseHash(
 extern OSStatus CloseHash(
-       const HashReference *ref,
-       SSLBuffer *state,
-       SSLContext *ctx);
+       const HashReference *ref, 
+       SSLBuffer *state);
 
 #ifdef __cplusplus
 }
 
 #ifdef __cplusplus
 }