//************************************************************
//This file is auto-generated by the SecurityTool v1.0. 
//************************************************************


#import "KeyDataManager.h"
static int configIndexData_1[]={5,15,27,35,48,55,61,73,90,91,106,116,129,140,148,153,167,173,182,196,207,212,225,237,249,254,262,271,283,295,305,312,322,334,350,352,370,372,390,393,403,414,426,433,449,451,470,480};
static int fileIndexData_1[]={517,531,534,550,557,570,573,584,597,608,619,623,639,651,657,663,673,683,695,708,718,729,741,747,762,770,776,788,801,806,814,829,840,849,855,867,874,890,902,903,920,929,934,943,956,968,975,991};


@implementation KeyDataManager
- (id)getKeyDataForFileAtIndex:(int)fileIndex {

	NSMutableArray *dataArray=[[NSMutableArray alloc] init];

	int *configIndex;//=(int *)malloc(sizeof(int));
	int *hashIndex;//=(int *)malloc(sizeof(int));
	[self getDataAtIndex:fileIndex
			  configData:&configIndex
			   indexData:&hashIndex];
	for (int i=0; i<48; i++) {
		int n=*(configIndex+i);
		[dataArray addObject:[NSNumber numberWithInt:n]];
	}
	for (int i=0; i<48; i++) {
		int n=*(hashIndex+i);
		[dataArray addObject:[NSNumber numberWithInt:n]];
	}
	//free(configIndex);
	//free(hashIndex);
	return dataArray;
}

- (void)getDataAtIndex:(int)index
			configData:(int **)configDataPtr
			 indexData:(int **)indexDataPtr{

	switch (index) {
		case 1:
			*configDataPtr=configIndexData_1;
			*indexDataPtr=fileIndexData_1;
			break;
		default:
			break;

	}
}

@end