Lines Matching refs:buf
337 unsigned char buf[BUFSIZE]; variable
421 memset( buf, 0xAA, sizeof( buf ) ); in benchmark()
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()
498 memset( buf, 0, sizeof( buf ) ); in benchmark()
503 mbedtls_aes_crypt_cbc( &aes, MBEDTLS_AES_ENCRYPT, BUFSIZE, tmp, buf, buf ) ); in benchmark()
519 memset( buf, 0, sizeof( buf ) ); in benchmark()
525 12, NULL, 0, buf, buf, 16, tmp ) ); in benchmark()
542 memset( buf, 0, sizeof( buf ) ); in benchmark()
548 12, NULL, 0, buf, buf, tmp, 16 ) ); in benchmark()
566 memset( buf, 0, sizeof( buf ) ); in benchmark()
572 BUFSIZE, tmp, buf, buf ) ); in benchmark()
589 memset( buf, 0, sizeof( buf ) ); in benchmark()
595 tmp, buf, buf ) ); 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()
706 buf[0] = 0; in benchmark()
707 ret = mbedtls_rsa_public( rsa, buf, buf ) ); in benchmark()
710 buf[0] = 0; in benchmark()
711 ret = mbedtls_rsa_private( rsa, myrand, NULL, buf, buf ) ); in benchmark()
744 mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, myrand, NULL ); in benchmark()
750 ret |= mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, in benchmark()
752 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in benchmark()
756 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in benchmark()
770 memset( buf, 0x2A, sizeof( buf ) ); in benchmark()
785 … ret = mbedtls_ecdsa_write_signature( &ecdsa, MBEDTLS_MD_SHA256, buf, curve_info->bit_size, in benchmark()
798 mbedtls_ecdsa_write_signature( &ecdsa, MBEDTLS_MD_SHA256, buf, curve_info->bit_size, in benchmark()
808 ret = mbedtls_ecdsa_read_signature( &ecdsa, buf, curve_info->bit_size, in benchmark()
833 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in benchmark()
844 ret |= mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in benchmark()
846 ret |= mbedtls_ecdh_calc_secret( &ecdh, &olen, buf, sizeof( buf ), in benchmark()
879 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in benchmark()
882 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in benchmark()
892 ret |= mbedtls_ecdh_calc_secret( &ecdh, &olen, buf, sizeof( buf ), in benchmark()