Lines Matching refs:BUFSIZE

178 #define BUFSIZE         1024  macro
233 i * BUFSIZE / 1024, \
234 ( mbedtls_timing_hardclock() - tsc ) / ( j * BUFSIZE ) ); \
337 unsigned char buf[BUFSIZE];
426 TIME_AND_TSC( "MD4", mbedtls_md4( buf, BUFSIZE, tmp ) ); in benchmark()
431 TIME_AND_TSC( "MD5", mbedtls_md5( buf, BUFSIZE, tmp ) ); in benchmark()
436 TIME_AND_TSC( "RIPEMD160", mbedtls_ripemd160( buf, BUFSIZE, tmp ) ); in benchmark()
441 TIME_AND_TSC( "SHA-1", mbedtls_sha1( buf, BUFSIZE, tmp ) ); in benchmark()
446 TIME_AND_TSC( "SHA-256", mbedtls_sha256( buf, BUFSIZE, tmp, 0 ) ); in benchmark()
451 TIME_AND_TSC( "SHA-512", mbedtls_sha512( buf, BUFSIZE, tmp, 0 ) ); in benchmark()
460 TIME_AND_TSC( "ARC4", mbedtls_arc4_crypt( &arc4, BUFSIZE, buf, buf ) ); in benchmark()
472 mbedtls_des3_crypt_cbc( &des3, MBEDTLS_DES_ENCRYPT, BUFSIZE, tmp, buf, buf ) ); in benchmark()
482 mbedtls_des_crypt_cbc( &des, MBEDTLS_DES_ENCRYPT, BUFSIZE, tmp, buf, buf ) ); in benchmark()
503 mbedtls_aes_crypt_cbc( &aes, MBEDTLS_AES_ENCRYPT, BUFSIZE, tmp, buf, buf ) ); in benchmark()
524 mbedtls_gcm_crypt_and_tag( &gcm, MBEDTLS_GCM_ENCRYPT, BUFSIZE, tmp, in benchmark()
547 mbedtls_ccm_encrypt_and_tag( &ccm, BUFSIZE, tmp, in benchmark()
572 BUFSIZE, tmp, buf, buf ) ); in benchmark()
594 mbedtls_blowfish_crypt_cbc( &blowfish, MBEDTLS_BLOWFISH_ENCRYPT, BUFSIZE, in benchmark()
607 TIME_AND_TSC( "HAVEGE", mbedtls_havege_random( &hs, buf, BUFSIZE ) ); in benchmark()
622 if( mbedtls_ctr_drbg_random( &ctr_drbg, buf, BUFSIZE ) != 0 ) in benchmark()
629 if( mbedtls_ctr_drbg_random( &ctr_drbg, buf, BUFSIZE ) != 0 ) in benchmark()
650 if( mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) != 0 ) in benchmark()
659 if( mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) != 0 ) in benchmark()
671 if( mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) != 0 ) in benchmark()
680 if( mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) != 0 ) in benchmark()