Lines Matching refs:buf
235 unsigned char buf[BUFSIZE]; variable
325 memset( buf, 0xAA, sizeof( buf ) ); in main()
330 TIME_AND_TSC( "MD4", mbedtls_md4( buf, BUFSIZE, tmp ) ); in main()
335 TIME_AND_TSC( "MD5", mbedtls_md5( buf, BUFSIZE, tmp ) ); in main()
340 TIME_AND_TSC( "RIPEMD160", mbedtls_ripemd160( buf, BUFSIZE, tmp ) ); in main()
345 TIME_AND_TSC( "SHA-1", mbedtls_sha1( buf, BUFSIZE, tmp ) ); in main()
350 TIME_AND_TSC( "SHA-256", mbedtls_sha256( buf, BUFSIZE, tmp, 0 ) ); in main()
355 TIME_AND_TSC( "SHA-512", mbedtls_sha512( buf, BUFSIZE, tmp, 0 ) ); in main()
364 TIME_AND_TSC( "ARC4", mbedtls_arc4_crypt( &arc4, BUFSIZE, buf, buf ) ); in main()
377 mbedtls_des3_crypt_cbc( &des3, MBEDTLS_DES_ENCRYPT, BUFSIZE, tmp, buf, buf ) ); in main()
387 mbedtls_des_crypt_cbc( &des, MBEDTLS_DES_ENCRYPT, BUFSIZE, tmp, buf, buf ) ); in main()
398 memset( buf, 0, sizeof( buf ) ); in main()
404 mbedtls_cipher_cmac( cipher_info, tmp, 192, buf, in main()
421 memset( buf, 0, sizeof( buf ) ); in main()
426 mbedtls_aes_crypt_cbc( &aes, MBEDTLS_AES_ENCRYPT, BUFSIZE, tmp, buf, buf ) ); in main()
442 memset( buf, 0, sizeof( buf ) ); in main()
448 12, NULL, 0, buf, buf, 16, tmp ) ); in main()
465 memset( buf, 0, sizeof( buf ) ); in main()
471 12, NULL, 0, buf, buf, tmp, 16 ) ); in main()
491 memset( buf, 0, sizeof( buf ) ); in main()
498 buf, BUFSIZE, output ) ); in main()
501 memset( buf, 0, sizeof( buf ) ); in main()
504 mbedtls_aes_cmac_prf_128( tmp, 16, buf, BUFSIZE, in main()
520 memset( buf, 0, sizeof( buf ) ); in main()
526 BUFSIZE, tmp, buf, buf ) ); in main()
543 memset( buf, 0, sizeof( buf ) ); in main()
549 tmp, buf, buf ) ); in main()
561 TIME_AND_TSC( "HAVEGE", mbedtls_havege_random( &hs, buf, BUFSIZE ) ); in main()
576 if( mbedtls_ctr_drbg_random( &ctr_drbg, buf, BUFSIZE ) != 0 ) in main()
583 if( mbedtls_ctr_drbg_random( &ctr_drbg, buf, BUFSIZE ) != 0 ) in main()
604 if( mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) != 0 ) in main()
613 if( mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) != 0 ) in main()
625 if( mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) != 0 ) in main()
634 if( mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) != 0 ) in main()
654 buf[0] = 0; in main()
655 ret = mbedtls_rsa_public( &rsa, buf, buf ) ); in main()
658 buf[0] = 0; in main()
659 ret = mbedtls_rsa_private( &rsa, myrand, NULL, buf, buf ) ); in main()
692 mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, myrand, NULL ); in main()
698 ret |= mbedtls_dhm_make_public( &dhm, (int) dhm.len, buf, dhm.len, in main()
700 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in main()
704 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in main()
718 memset( buf, 0x2A, sizeof( buf ) ); in main()
733 … ret = mbedtls_ecdsa_write_signature( &ecdsa, MBEDTLS_MD_SHA256, buf, curve_info->bit_size, in main()
746 mbedtls_ecdsa_write_signature( &ecdsa, MBEDTLS_MD_SHA256, buf, curve_info->bit_size, in main()
756 ret = mbedtls_ecdsa_read_signature( &ecdsa, buf, curve_info->bit_size, in main()
781 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
792 ret |= mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
794 ret |= mbedtls_ecdh_calc_secret( &ecdh, &olen, buf, sizeof( buf ), in main()
827 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
830 mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
840 ret |= mbedtls_ecdh_calc_secret( &ecdh, &olen, buf, sizeof( buf ), in main()