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

Subversion Repositories hight

[/] [hight/] [trunk/] [sw/] [main.c] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 truemind
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  Main source file for HIGHT Integer Model                    ////
4
////                                                              ////
5
////  This file is part of the HIGHT Crypto Core project          ////
6
////  http://github.com/OpenSoCPlus/hight_crypto_core             ////
7
////  http://www.opencores.org/project,hight                      ////
8
////                                                              ////
9
////  Description                                                 ////
10
////  __description__                                             ////
11
////                                                              ////
12
////  Author(s):                                                  ////
13
////      - JoonSoo Ha, json.ha@gmail.com                         ////
14
////      - Younjoo Kim, younjookim.kr@gmail.com                  ////
15
////                                                              ////
16
//////////////////////////////////////////////////////////////////////
17
////                                                              ////
18
//// Copyright (C) 2015 Authors, OpenSoCPlus and OPENCORES.ORG    ////
19
////                                                              ////
20
//// This source file may be used and distributed without         ////
21
//// restriction provided that this copyright statement is not    ////
22
//// removed from the file and that any derivative work contains  ////
23
//// the original copyright notice and the associated disclaimer. ////
24
////                                                              ////
25
//// This source file is free software; you can redistribute it   ////
26
//// and/or modify it under the terms of the GNU Lesser General   ////
27
//// Public License as published by the Free Software Foundation; ////
28
//// either version 2.1 of the License, or (at your option) any   ////
29
//// later version.                                               ////
30
////                                                              ////
31
//// This source is distributed in the hope that it will be       ////
32
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
33
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
34
//// PURPOSE.  See the GNU Lesser General Public License for more ////
35
//// details.                                                     ////
36
////                                                              ////
37
//// You should have received a copy of the GNU Lesser General    ////
38
//// Public License along with this source; if not, download it   ////
39
//// from http://www.opencores.org/lgpl.shtml                     ////
40
////                                                              ////
41
//////////////////////////////////////////////////////////////////////
42
 
43
#include <stdlib.h>
44
#include "hight.h"
45
#include "hight_unit_test.h"
46
#include "hight_test.h"
47
 
48
HIGHT_DATA *p_hight_data;
49
 
50
 
51
/* =====================================
52
 
53
    main()
54
 
55
=======================================*/
56
int main (int argc, char *argv[])
57
{
58
        p_hight_data = (HIGHT_DATA *)malloc(sizeof(HIGHT_DATA)*1);
59
 
60
        // DeltaGenTest
61
        //DeltaGenTest();
62
 
63
        // SubKeyGenTest
64
        //SubKeyGenTest();
65
 
66
        // WhiteningKeyGenTest
67
        //WhiteningKeyGenTest();
68
 
69
        // InitialWhiteningFunctionTest
70
        //InitialWhiteningFunctionTest();
71
 
72
        // FinalWhiteningFunctionTest
73
        //FinalWhiteningFunctionTest();
74
 
75
        // InterRoundFunctionTest 
76
        //InterRoundFunctionTest();
77
 
78
        // FinalRoundFunctionTest 
79
        //FinalRoundFunctionTest();     
80
 
81
        //HightEncryptionTest
82
        //HightEncryptionTest();
83
 
84
        //HightDecryptionTest
85
        //HightDecryptionTest();
86
 
87
        HightTopTest("v1", ENC, 0, "", p_hight_data);
88
        HightTopTest("v1", DEC, 0, "", p_hight_data);
89
 
90
        HightTopTest("v2", ENC, 0, "", p_hight_data);
91
        HightTopTest("v2", DEC, 0, "", p_hight_data);
92
 
93
        HightTopTest("v3", ENC, 0, "", p_hight_data);
94
        HightTopTest("v3", DEC, 0, "", p_hight_data);
95
 
96
        HightTopTest("v4", ENC, 0, "", p_hight_data);
97
        HightTopTest("v4", DEC, 0, "", p_hight_data);
98
 
99
        free(p_hight_data);
100
 
101
        return 0;
102
}
103
 
104
 

powered by: WebSVN 2.1.0

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