]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_cryptkit/lib/NSMD5Hash.h
Security-58286.31.2.tar.gz
[apple/security.git] / OSX / libsecurity_cryptkit / lib / NSMD5Hash.h
1 /* Copyright (c) 1998,2011,2014 Apple Inc. All Rights Reserved.
2 *
3 * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT
4 * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE
5 * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE, INC. AND THE
6 * ORIGINAL LICENSEE THAT OBTAINED THESE MATERIALS FROM APPLE,
7 * INC. ANY USE OF THESE MATERIALS NOT PERMITTED BY SUCH AGREEMENT WILL
8 * EXPOSE YOU TO LIABILITY.
9 ***************************************************************************
10 *
11 * NSMD5Hash.h
12 *
13 * Revision History
14 * ----------------
15 * 28 Mar 97 at Apple
16 * Created.
17 */
18
19 #import <Foundation/Foundation.h>
20 #import <CryptKit/NSCryptors.h>
21
22 @interface NSMD5Hash : NSObject <NSDataDigester>
23
24 {
25 void *_priv;
26 }
27
28 + digester; // provides a concrete digester
29 - init; // reusable
30 - (void)digestData:(NSData *)data;
31 - (NSData *)messageDigest; // provide digest; re-init
32 - (NSData *)digestData:(NSData *)data withSalt:(NSData *)salt;
33
34 @end