mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-02 04:35:43 +01:00
Intermediate hexify out change
This commit is contained in:
parent
9079170f6e
commit
f1aaec9888
39 changed files with 780 additions and 1563 deletions
|
|
@ -8,8 +8,8 @@
|
|||
*/
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void mbedtls_base64_encode( char *src_string, char *dst_string, int dst_buf_size,
|
||||
int result )
|
||||
void mbedtls_base64_encode( char * src_string, char * dst_string,
|
||||
int dst_buf_size, int result )
|
||||
{
|
||||
unsigned char src_str[1000];
|
||||
unsigned char dst_str[1000];
|
||||
|
|
@ -28,7 +28,7 @@ void mbedtls_base64_encode( char *src_string, char *dst_string, int dst_buf_size
|
|||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void mbedtls_base64_decode( char *src_string, char *dst_string, int result )
|
||||
void mbedtls_base64_decode( char * src_string, char * dst_string, int result )
|
||||
{
|
||||
unsigned char src_str[1000];
|
||||
unsigned char dst_str[1000];
|
||||
|
|
@ -49,7 +49,7 @@ void mbedtls_base64_decode( char *src_string, char *dst_string, int result )
|
|||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void base64_encode_hex( char *src_hex, char *dst, int dst_buf_size,
|
||||
void base64_encode_hex( char * src_hex, char * dst, int dst_buf_size,
|
||||
int result )
|
||||
{
|
||||
unsigned char *src = NULL, *res = NULL;
|
||||
|
|
@ -72,7 +72,7 @@ exit:
|
|||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void base64_decode_hex( char *src, char *dst_hex, int dst_buf_size,
|
||||
void base64_decode_hex( char * src, char * dst_hex, int dst_buf_size,
|
||||
int result )
|
||||
{
|
||||
unsigned char *dst = NULL, *res = NULL;
|
||||
|
|
@ -96,7 +96,7 @@ exit:
|
|||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE */
|
||||
void base64_decode_hex_src( char *src_hex, char *dst_ref, int result )
|
||||
void base64_decode_hex_src( char * src_hex, char * dst_ref, int result )
|
||||
{
|
||||
unsigned char dst[1000] = { 0 };
|
||||
unsigned char *src;
|
||||
|
|
@ -117,7 +117,7 @@ exit:
|
|||
/* END_CASE */
|
||||
|
||||
/* BEGIN_CASE depends_on:MBEDTLS_SELF_TEST */
|
||||
void base64_selftest()
|
||||
void base64_selftest( )
|
||||
{
|
||||
TEST_ASSERT( mbedtls_base64_self_test( 1 ) == 0 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue