X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b1ab9ed8d0e0f1c3b66d7daa8fd5564444c56195..e3d3b979fd185d8303f28a937baa53a187fb8c7d:/libsecurity_ssl/lib/sslDigests.h diff --git a/libsecurity_ssl/lib/sslDigests.h b/libsecurity_ssl/lib/sslDigests.h index e3c7a1ed..e2994951 100644 --- a/libsecurity_ssl/lib/sslDigests.h +++ b/libsecurity_ssl/lib/sslDigests.h @@ -28,42 +28,24 @@ #ifndef _SSL_DIGESTS_H_ #define _SSL_DIGESTS_H_ 1 -#include "cryptType.h" +#include +#include "sslMemory.h" +#include "tls_digest.h" #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, - SSLBuffer *newState, - SSLContext *ctx); + SSLBuffer *newState); extern OSStatus ReadyHash( - const HashReference *ref, - SSLBuffer *state, - SSLContext *ctx); + const HashReference *ref, + SSLBuffer *state); extern OSStatus CloseHash( - const HashReference *ref, - SSLBuffer *state, - SSLContext *ctx); + const HashReference *ref, + SSLBuffer *state); #ifdef __cplusplus }