mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-08 06:26:28 +00:00
- Updated for migration to size_t
This commit is contained in:
@@ -17,7 +17,7 @@ pkcs1_rsaes_oaep_encrypt:mod:radix_N:input_N:radix_E:input_E:hash:message_hex_st
|
||||
unsigned char output_str[1000];
|
||||
unsigned char rnd_buf[1000];
|
||||
rsa_context ctx;
|
||||
int msg_len;
|
||||
size_t msg_len;
|
||||
rnd_buf_info info;
|
||||
|
||||
info.length = unhexify( rnd_buf, {seed} );
|
||||
@@ -55,8 +55,8 @@ pkcs1_rsaes_oaep_decrypt:mod:radix_P:input_P:radix_Q:input_Q:radix_N:input_N:rad
|
||||
unsigned char output_str[1000];
|
||||
rsa_context ctx;
|
||||
mpi P1, Q1, H, G;
|
||||
int output_len;
|
||||
int msg_len;
|
||||
size_t output_len;
|
||||
size_t msg_len;
|
||||
|
||||
mpi_init( &P1, &Q1, &H, &G, NULL );
|
||||
rsa_init( &ctx, RSA_PKCS_V21, {hash} );
|
||||
@@ -104,7 +104,7 @@ pkcs1_rsassa_pss_sign:mod:radix_P:input_P:radix_Q:input_Q:radix_N:input_N:radix_
|
||||
unsigned char rnd_buf[1000];
|
||||
rsa_context ctx;
|
||||
mpi P1, Q1, H, G;
|
||||
int msg_len;
|
||||
size_t msg_len;
|
||||
rnd_buf_info info;
|
||||
|
||||
info.length = unhexify( rnd_buf, {salt} );
|
||||
@@ -195,7 +195,7 @@ pkcs1_rsassa_pss_verify:mod:radix_N:input_N:radix_E:input_E:digest:hash:message_
|
||||
unsigned char hash_result[1000];
|
||||
unsigned char result_str[1000];
|
||||
rsa_context ctx;
|
||||
int msg_len;
|
||||
size_t msg_len;
|
||||
|
||||
rsa_init( &ctx, RSA_PKCS_V21, {hash} );
|
||||
memset( message_str, 0x00, 1000 );
|
||||
|
||||
Reference in New Issue
Block a user