mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-23 20:01:06 +00:00
Remove a few dead stores
This commit is contained in:
parent
d220f8b709
commit
7837026b91
|
@ -105,7 +105,7 @@ int block_cipher_df( unsigned char *output,
|
|||
unsigned char tmp[CTR_DRBG_SEEDLEN];
|
||||
unsigned char key[CTR_DRBG_KEYSIZE];
|
||||
unsigned char chain[CTR_DRBG_BLOCKSIZE];
|
||||
unsigned char *p = buf, *iv;
|
||||
unsigned char *p, *iv;
|
||||
aes_context aes_ctx;
|
||||
|
||||
int i, j, buf_len, use_len;
|
||||
|
|
|
@ -900,7 +900,6 @@ int rsa_rsassa_pss_sign( rsa_context *ctx,
|
|||
|
||||
md_free_ctx( &md_ctx );
|
||||
|
||||
msb = mpi_msb( &ctx->N ) - 1;
|
||||
sig[0] &= 0xFF >> ( olen * 8 - msb );
|
||||
|
||||
p += hlen;
|
||||
|
|
|
@ -1000,7 +1000,6 @@ static int ssl_encrypt_buf( ssl_context *ssl )
|
|||
int ret = POLARSSL_ERR_SSL_FEATURE_UNAVAILABLE;
|
||||
|
||||
padlen = 0;
|
||||
enc_msglen = ssl->out_msglen;
|
||||
|
||||
memcpy( add_data, ssl->out_ctr, 8 );
|
||||
add_data[8] = ssl->out_msgtype;
|
||||
|
|
|
@ -1155,8 +1155,6 @@ int x509parse_crt_der_core( x509_cert *crt, const unsigned char *buf,
|
|||
|
||||
memcpy( p, buf, buflen );
|
||||
|
||||
buflen = 0;
|
||||
|
||||
crt->raw.p = p;
|
||||
crt->raw.len = len;
|
||||
end = p + len;
|
||||
|
|
Loading…
Reference in a new issue