Lines Matching refs:buffer
85 unsigned char buffer[1024]; in main() local
129 memset(buffer, 0, sizeof(buffer)); in main()
231 buffer[i] = (unsigned char)( filesize >> ( i << 3 ) ); in main()
236 mbedtls_md_update( &sha_ctx, buffer, 8 ); in main()
287 if( fread( buffer, 1, n, fin ) != (size_t) n ) in main()
294 buffer[i] = (unsigned char)( buffer[i] ^ IV[i] ); in main()
296 mbedtls_aes_crypt_ecb( &aes_ctx, MBEDTLS_AES_ENCRYPT, buffer, buffer ); in main()
297 mbedtls_md_hmac_update( &sha_ctx, buffer, 16 ); in main()
299 if( fwrite( buffer, 1, 16, fout ) != 16 ) in main()
305 memcpy( IV, buffer, 16 ); in main()
353 if( fread( buffer, 1, 16, fin ) != 16 ) in main()
359 memcpy( IV, buffer, 16 ); in main()
386 if( fread( buffer, 1, 16, fin ) != 16 ) in main()
392 memcpy( tmp, buffer, 16 ); in main()
394 mbedtls_md_hmac_update( &sha_ctx, buffer, 16 ); in main()
395 mbedtls_aes_crypt_ecb( &aes_ctx, MBEDTLS_AES_DECRYPT, buffer, buffer ); in main()
398 buffer[i] = (unsigned char)( buffer[i] ^ IV[i] ); in main()
405 if( fwrite( buffer, 1, n, fout ) != (size_t) n ) in main()
417 if( fread( buffer, 1, 32, fin ) != 32 ) in main()
426 diff |= digest[i] ^ buffer[i]; in main()
444 memset( buffer, 0, sizeof( buffer ) ); in main()