ObjFW  Artifact [4951f2110c]

Artifact 4951f2110c11b25589fe0996eda35006ef529e868388e923ca34cda5e58cdf5a:

  • File src/OFHashes.h — part of check-in [165c2c0b9d] at 2008-10-26 17:48:05 on branch trunk — OFMD5Hash improvements. (user: js size: 545)

/*
 * Copyright (c) 2008
 *   Jonathan Schleifer <js@webkeks.org>
 *
 * All rights reserved.
 *
 * This file is part of libobjfw. It may be distributed under the terms of the
 * Q Public License 1.0, which can be found in the file LICENSE included in
 * the packaging of this file.
 */

#import <stdint.h>

#import "OFObject.h"

@interface OFMD5Hash: OFObject
{
	uint32_t buf[4];
	uint32_t bits[2];
	uint8_t	 in[64];

	BOOL	 calculated;
}

- init;
- (void)updateWithBuffer: (const uint8_t*)buf
		  ofSize: (size_t)size;
- (uint8_t*)digest;
@end