mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 08:14:27 +01:00
Remove unnecessary cast
This is C, not C++, casts between void * and other pointer types are free. Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
This commit is contained in:
parent
74503bb5fc
commit
a6c1317685
@ -1876,7 +1876,7 @@ int mbedtls_ssl_cf_hmac(
|
|||||||
/* TLS 1.0-1.2 only support SHA-384, SHA-256, SHA-1, MD-5,
|
/* TLS 1.0-1.2 only support SHA-384, SHA-256, SHA-1, MD-5,
|
||||||
* all of which have the same block size except SHA-384. */
|
* all of which have the same block size except SHA-384. */
|
||||||
const size_t block_size = md_alg == MBEDTLS_MD_SHA384 ? 128 : 64;
|
const size_t block_size = md_alg == MBEDTLS_MD_SHA384 ? 128 : 64;
|
||||||
const unsigned char * const ikey = (unsigned char *) ctx->hmac_ctx;
|
const unsigned char * const ikey = ctx->hmac_ctx;
|
||||||
const unsigned char * const okey = ikey + block_size;
|
const unsigned char * const okey = ikey + block_size;
|
||||||
const size_t hash_size = mbedtls_md_get_size( ctx->md_info );
|
const size_t hash_size = mbedtls_md_get_size( ctx->md_info );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user