OpenCores
URL https://opencores.org/ocsvn/hight/hight/trunk

Subversion Repositories hight

[/] [hight/] [trunk/] [sw/] [main.c] - Rev 2

Compare with Previous | Blame | View Log

//////////////////////////////////////////////////////////////////////
////                                                              ////
////  Main source file for HIGHT Integer Model                    ////
////                                                              ////
////  This file is part of the HIGHT Crypto Core project          ////
////  http://github.com/OpenSoCPlus/hight_crypto_core             ////
////  http://www.opencores.org/project,hight                      ////
////                                                              ////
////  Description                                                 ////
////  __description__                                             ////
////                                                              ////
////  Author(s):                                                  ////
////      - JoonSoo Ha, json.ha@gmail.com                         ////
////      - Younjoo Kim, younjookim.kr@gmail.com                  ////
////                                                              ////
//////////////////////////////////////////////////////////////////////
////                                                              ////
//// Copyright (C) 2015 Authors, OpenSoCPlus and OPENCORES.ORG    ////
////                                                              ////
//// This source file may be used and distributed without         ////
//// restriction provided that this copyright statement is not    ////
//// removed from the file and that any derivative work contains  ////
//// the original copyright notice and the associated disclaimer. ////
////                                                              ////
//// This source file 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 source 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 source; if not, download it   ////
//// from http://www.opencores.org/lgpl.shtml                     ////
////                                                              ////
//////////////////////////////////////////////////////////////////////
 
#include <stdlib.h>
#include "hight.h"
#include "hight_unit_test.h"
#include "hight_test.h"
 
HIGHT_DATA *p_hight_data;
 
 
/* =====================================
 
    main()
 
=======================================*/
int main (int argc, char *argv[])
{
	p_hight_data = (HIGHT_DATA *)malloc(sizeof(HIGHT_DATA)*1);
 
	// DeltaGenTest
	//DeltaGenTest();
 
	// SubKeyGenTest
	//SubKeyGenTest();
 
	// WhiteningKeyGenTest
	//WhiteningKeyGenTest();
 
	// InitialWhiteningFunctionTest
	//InitialWhiteningFunctionTest();
 
	// FinalWhiteningFunctionTest
	//FinalWhiteningFunctionTest();
 
	// InterRoundFunctionTest 
	//InterRoundFunctionTest();
 
	// FinalRoundFunctionTest 
	//FinalRoundFunctionTest();	
 
	//HightEncryptionTest
	//HightEncryptionTest();
 
	//HightDecryptionTest
	//HightDecryptionTest();
 
	HightTopTest("v1", ENC, 0, "", p_hight_data);
	HightTopTest("v1", DEC, 0, "", p_hight_data);
 
	HightTopTest("v2", ENC, 0, "", p_hight_data);
	HightTopTest("v2", DEC, 0, "", p_hight_data);
 
	HightTopTest("v3", ENC, 0, "", p_hight_data);
	HightTopTest("v3", DEC, 0, "", p_hight_data);
 
	HightTopTest("v4", ENC, 0, "", p_hight_data);
	HightTopTest("v4", DEC, 0, "", p_hight_data);
 
	free(p_hight_data);
 
	return 0;
}
 
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.