//
//  crc.h
//  DownloadUpLoad
//
//  Created by 豆豆 on 14/11/18.
//  Copyright (c) 2014年 豆豆. All rights reserved.
//

#import <Foundation/Foundation.h>
#define DEFAULT_POLYNOMIAL 0xEDB88320L
#define DEFAULT_SEED       0xFFFFFFFFL

@interface NSData (CRC)

-(uint32_t) crc32;
-(uint32_t) crc32WithSeed:(uint32_t)seed;
-(uint32_t) crc32UsingPolynomial:(uint32_t)poly;
-(uint32_t) crc32WithSeed:(uint32_t)seed usingPolynomial:(uint32_t)poly;

@end