]>
git.saurik.com Git - apple/security.git/blob - AppleCSP/MiscCSPAlgs/SHA1_MD5_Object.h
2 * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
20 * SHA1_MD5_Object.h - SHA1, MD5 digest objects
22 * Created 2/19/2001 by dmitch.
25 #ifndef _SHA1_MD5_OBJECT_H_
26 #define _SHA1_MD5_OBJECT_H_
28 #include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>
29 #include <Security/digestobject.h>
30 #include <MiscCSPAlgs/MD5.h>
31 #include <MiscCSPAlgs/SHA1_priv.h>
33 class SHA1Object
: public DigestObject
37 virtual ~SHA1Object() { };
38 virtual void digestInit();
39 virtual void digestUpdate(
42 virtual void digestFinal(
44 virtual DigestObject
*digestClone() const;
45 virtual size_t digestSizeInBytes() const;
48 UInt8 mBuffer
[SHS_BLOCKSIZE
];
53 class MD5Object
: public DigestObject
57 virtual ~MD5Object() { }
58 virtual void digestInit();
59 virtual void digestUpdate(
62 virtual void digestFinal(
64 virtual DigestObject
*digestClone() const;
65 virtual size_t digestSizeInBytes() const;
70 #endif /* _SHA1_MD5_OBJECT_H_ */