Commit d48bf689 authored by Manuel Pégourié-Gonnard's avatar Manuel Pégourié-Gonnard
Browse files

Write literal byte more clearly

parent 85fadb74
......@@ -580,7 +580,7 @@ int md5_self_test( int verbose )
if( i == 5 || i == 6 )
{
memset( buf, '\xAA', buflen = 80 );
memset( buf, 0xAA, buflen = 80 );
md5_hmac_starts( &ctx, buf, buflen );
}
else
......
......@@ -622,7 +622,7 @@ int sha1_self_test( int verbose )
if( i == 5 || i == 6 )
{
memset( buf, '\xAA', buflen = 80 );
memset( buf, 0xAA, buflen = 80 );
sha1_hmac_starts( &ctx, buf, buflen );
}
else
......
......@@ -703,7 +703,7 @@ int sha256_self_test( int verbose )
if( j == 5 || j == 6 )
{
memset( buf, '\xAA', buflen = 131 );
memset( buf, 0xAA, buflen = 131 );
sha256_hmac_starts( &ctx, buf, buflen, k );
}
else
......
......@@ -757,7 +757,7 @@ int sha512_self_test( int verbose )
if( j == 5 || j == 6 )
{
memset( buf, '\xAA', buflen = 131 );
memset( buf, 0xAA, buflen = 131 );
sha512_hmac_starts( &ctx, buf, buflen, k );
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment