/usr/include/GNUstep/Frameworks/Pantomime.framework/Versions/1.2/CWMD5.h is in libpantomime1.2-dev 1.2.2+dfsg1-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | /*
** CWMD5.h
**
** Copyright (c) 2002-2006
**
** Author: Ludovic Marcotte <ludovic@Sophos.ca>
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License as published by the Free Software Foundation; either
** version 2.1 of the License, or (at your option) any later version.
**
** This library is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
** Lesser General Public License for more details.
**
** You should have received a copy of the GNU Lesser General Public
** License along with this library; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _Pantomime_H_CWMD5
#define _Pantomime_H_CWMD5
#import <Foundation/NSData.h>
#import <Foundation/NSObject.h>
#import <Foundation/NSString.h>
/*!
@class CWMD5
@abstract MD5 Message-Digest algorithm implementation.
@discussion This class provides an easy interface to the MD5 Message-Digest algorithm.
This algorithm is described in RFC 1321. It also supports the HMAC
keyed-hashing for message authentication (described in RFC 2104). HMAC
is used in the CRAM-MD5 SASL authentication mechanim.
*/
@interface CWMD5 : NSObject
{
@private
NSData *_data;
BOOL _has_computed_digest;
unsigned char _digest[16];
}
/*!
@method initWithData:
@discussion This is the designated initializer for the CWMD5 class.
@param theData The data to use for the MD5 operation.
@result An instance of CWMD5, nil on failure.
*/
- (id) initWithData: (NSData *) theData;
/*!
@method computeDigest
@discussion This method is used to compute the MD5 digest
for the instance's data.
*/
- (void) computeDigest;
/*!
@method digest
@discussion This method is used to obtain the computed digest,
from the instance's data.
@result The digest, as a NSData instance.
*/
- (NSData *) digest;
/*!
@method digestAsString
@discussion See -digest.
@result Returns the digest as a NSString instance.
*/
- (NSString *) digestAsString;
/*!
@method hmacAsStringUsingPassword:
@discussion Computes the HMAC using <i>thePassword</i> and returns it.
@param thePassword The password to use when computing the HMAC.
@result The computed HMAC, as a NSString instance.
*/
- (NSString *) hmacAsStringUsingPassword: (NSString *) thePassword;
@end
#endif // _Pantomime_H_CWMD5
|