mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-02-19 00:39:46 +00:00
Rename HexParam_t -> data_t for consistent coding style
This commit is contained in:
committed by
Mohammad Azim Khan
parent
62a5d7d65a
commit
5fcca46a3a
@@ -8,15 +8,15 @@
|
||||
*/
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void des_check_weak( HexParam_t * key, int ret )
|
||||
void des_check_weak( data_t * key, int ret )
|
||||
{
|
||||
TEST_ASSERT( mbedtls_des_key_check_weak( key->x ) == ret );
|
||||
}
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void des_encrypt_ecb( HexParam_t * key_str, HexParam_t * src_str,
|
||||
HexParam_t * hex_dst_string )
|
||||
void des_encrypt_ecb( data_t * key_str, data_t * src_str,
|
||||
data_t * hex_dst_string )
|
||||
{
|
||||
unsigned char output[100];
|
||||
mbedtls_des_context ctx;
|
||||
@@ -36,8 +36,8 @@ exit:
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void des_decrypt_ecb( HexParam_t * key_str, HexParam_t * src_str,
|
||||
HexParam_t * hex_dst_string )
|
||||
void des_decrypt_ecb( data_t * key_str, data_t * src_str,
|
||||
data_t * hex_dst_string )
|
||||
{
|
||||
unsigned char output[100];
|
||||
mbedtls_des_context ctx;
|
||||
@@ -57,8 +57,8 @@ exit:
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE depends_on:MBEDTLS_CIPHER_MODE_CBC */
|
||||
void des_encrypt_cbc( HexParam_t * key_str, HexParam_t * iv_str,
|
||||
HexParam_t * src_str, HexParam_t * hex_dst_string,
|
||||
void des_encrypt_cbc( data_t * key_str, data_t * iv_str,
|
||||
data_t * src_str, data_t * hex_dst_string,
|
||||
int cbc_result )
|
||||
{
|
||||
unsigned char output[100];
|
||||
@@ -82,8 +82,8 @@ exit:
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE depends_on:MBEDTLS_CIPHER_MODE_CBC */
|
||||
void des_decrypt_cbc( HexParam_t * key_str, HexParam_t * iv_str,
|
||||
HexParam_t * src_str, HexParam_t * hex_dst_string,
|
||||
void des_decrypt_cbc( data_t * key_str, data_t * iv_str,
|
||||
data_t * src_str, data_t * hex_dst_string,
|
||||
int cbc_result )
|
||||
{
|
||||
unsigned char output[100];
|
||||
@@ -107,8 +107,8 @@ exit:
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void des3_encrypt_ecb( int key_count, HexParam_t * key_str,
|
||||
HexParam_t * src_str, HexParam_t * hex_dst_string )
|
||||
void des3_encrypt_ecb( int key_count, data_t * key_str,
|
||||
data_t * src_str, data_t * hex_dst_string )
|
||||
{
|
||||
unsigned char output[100];
|
||||
mbedtls_des3_context ctx;
|
||||
@@ -134,8 +134,8 @@ exit:
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void des3_decrypt_ecb( int key_count, HexParam_t * key_str,
|
||||
HexParam_t * src_str, HexParam_t * hex_dst_string )
|
||||
void des3_decrypt_ecb( int key_count, data_t * key_str,
|
||||
data_t * src_str, data_t * hex_dst_string )
|
||||
{
|
||||
unsigned char output[100];
|
||||
mbedtls_des3_context ctx;
|
||||
@@ -161,9 +161,9 @@ exit:
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE depends_on:MBEDTLS_CIPHER_MODE_CBC */
|
||||
void des3_encrypt_cbc( int key_count, HexParam_t * key_str,
|
||||
HexParam_t * iv_str, HexParam_t * src_str,
|
||||
HexParam_t * hex_dst_string, int cbc_result )
|
||||
void des3_encrypt_cbc( int key_count, data_t * key_str,
|
||||
data_t * iv_str, data_t * src_str,
|
||||
data_t * hex_dst_string, int cbc_result )
|
||||
{
|
||||
unsigned char output[100];
|
||||
mbedtls_des3_context ctx;
|
||||
@@ -193,9 +193,9 @@ exit:
|
||||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE depends_on:MBEDTLS_CIPHER_MODE_CBC */
|
||||
void des3_decrypt_cbc( int key_count, HexParam_t * key_str,
|
||||
HexParam_t * iv_str, HexParam_t * src_str,
|
||||
HexParam_t * hex_dst_string, int cbc_result )
|
||||
void des3_decrypt_cbc( int key_count, data_t * key_str,
|
||||
data_t * iv_str, data_t * src_str,
|
||||
data_t * hex_dst_string, int cbc_result )
|
||||
{
|
||||
unsigned char output[100];
|
||||
mbedtls_des3_context ctx;
|
||||
|
||||
Reference in New Issue
Block a user