My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
crypto_tests.h
Go to the documentation of this file.
1 /*
2  * OpenVirtualization:
3  * For additional details and support contact developer@sierraware.com.
4  * Additional documentation can be found at www.openvirtualization.org
5  *
6  * Copyright (C) 2010-2014 SierraWare
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  *
22  */
23 /*
24  * Header for Crypto tests implementation
25  */
26 
27 #ifndef CRYPTO_TESTS_H
28 #define CRYPTO_TESTS_H
29 
30 #include "sw_types.h"
31 #include "otz_id.h"
32 
44 int test_md5_api(u8 *input_buf,u32 input_len,u8* output_buf,
45  u32 *output_len,u32 svc_cmd_id);
46 
60 int test_hmac_api(u8 *input_buf,u32 input_len,u8 *key_buf, u32 key_len,
61  u8* output_buf,u32 *output_len,u32 svc_cmd_id);
62 
76 int compare_hmac_values(u8 *input_buf,u32 input_len,u8 *key_buf, u32 key_len,
77  u8* output_buf,u32 *output_len,u32 svc_cmd_id);
78 
95 int test_cipher_api(u8 *input_buf,u32 input_len,u8 *init_vector,
96  u32 init_vector_len,u8 *key_buf, u32 key_len,
97  u8* output_buf,u32 *output_len,
98  u32 svc_cmd_id,u32 cipher_choice);
99 
111 int test_digest_api(u8 *input_buf,u32 input_len,u8* output_buf,
112  u32 *output_len,u32 svc_cmd_id);
113 
114 
115 #endif
int test_cipher_api(u8 *input_buf, u32 input_len, u8 *init_vector, u32 init_vector_len, u8 *key_buf, u32 key_len, u8 *output_buf, u32 *output_len, u32 svc_cmd_id, u32 cipher_choice)
int test_digest_api(u8 *input_buf, u32 input_len, u8 *output_buf, u32 *output_len, u32 svc_cmd_id)
int test_md5_api(u8 *input_buf, u32 input_len, u8 *output_buf, u32 *output_len, u32 svc_cmd_id)
int compare_hmac_values(u8 *input_buf, u32 input_len, u8 *key_buf, u32 key_len, u8 *output_buf, u32 *output_len, u32 svc_cmd_id)
int test_hmac_api(u8 *input_buf, u32 input_len, u8 *key_buf, u32 key_len, u8 *output_buf, u32 *output_len, u32 svc_cmd_id)