mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 15:04:18 +01:00
Write literal byte more clearly
This commit is contained in:
parent
85fadb749c
commit
d48bf6892c
@ -580,7 +580,7 @@ int md5_self_test( int verbose )
|
|||||||
|
|
||||||
if( i == 5 || i == 6 )
|
if( i == 5 || i == 6 )
|
||||||
{
|
{
|
||||||
memset( buf, '\xAA', buflen = 80 );
|
memset( buf, 0xAA, buflen = 80 );
|
||||||
md5_hmac_starts( &ctx, buf, buflen );
|
md5_hmac_starts( &ctx, buf, buflen );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -622,7 +622,7 @@ int sha1_self_test( int verbose )
|
|||||||
|
|
||||||
if( i == 5 || i == 6 )
|
if( i == 5 || i == 6 )
|
||||||
{
|
{
|
||||||
memset( buf, '\xAA', buflen = 80 );
|
memset( buf, 0xAA, buflen = 80 );
|
||||||
sha1_hmac_starts( &ctx, buf, buflen );
|
sha1_hmac_starts( &ctx, buf, buflen );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -703,7 +703,7 @@ int sha256_self_test( int verbose )
|
|||||||
|
|
||||||
if( j == 5 || j == 6 )
|
if( j == 5 || j == 6 )
|
||||||
{
|
{
|
||||||
memset( buf, '\xAA', buflen = 131 );
|
memset( buf, 0xAA, buflen = 131 );
|
||||||
sha256_hmac_starts( &ctx, buf, buflen, k );
|
sha256_hmac_starts( &ctx, buf, buflen, k );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -757,7 +757,7 @@ int sha512_self_test( int verbose )
|
|||||||
|
|
||||||
if( j == 5 || j == 6 )
|
if( j == 5 || j == 6 )
|
||||||
{
|
{
|
||||||
memset( buf, '\xAA', buflen = 131 );
|
memset( buf, 0xAA, buflen = 131 );
|
||||||
sha512_hmac_starts( &ctx, buf, buflen, k );
|
sha512_hmac_starts( &ctx, buf, buflen, k );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user