Write literal byte more clearly

This commit is contained in:
Manuel Pégourié-Gonnard 2015-02-14 15:05:32 +00:00
parent 85fadb749c
commit d48bf6892c
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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