Lines Matching refs:buf
533 unsigned char buf[BUFSIZE]; variable
643 memset( buf, 0xAA, sizeof( buf ) ); in main()
648 TIME_AND_TSC( "MD5", mbedtls_md5( buf, BUFSIZE, tmp ) ); in main()
653 TIME_AND_TSC( "RIPEMD160", mbedtls_ripemd160( buf, BUFSIZE, tmp ) ); in main()
658 TIME_AND_TSC( "SHA-1", mbedtls_sha1( buf, BUFSIZE, tmp ) ); in main()
663 TIME_AND_TSC( "SHA-256", mbedtls_sha256( buf, BUFSIZE, tmp, 0 ) ); in main()
668 TIME_AND_TSC( "SHA-512", mbedtls_sha512( buf, BUFSIZE, tmp, 0 ) ); in main()
680 mbedtls_des3_crypt_cbc( &des3, MBEDTLS_DES_ENCRYPT, BUFSIZE, tmp, buf, buf ) ); in main()
691 mbedtls_des_crypt_cbc( &des, MBEDTLS_DES_ENCRYPT, BUFSIZE, tmp, buf, buf ) ); in main()
702 memset( buf, 0, sizeof( buf ) ); in main()
708 mbedtls_cipher_cmac( cipher_info, tmp, 192, buf, in main()
725 memset( buf, 0, sizeof( buf ) ); in main()
730 mbedtls_aes_crypt_cbc( &aes, MBEDTLS_AES_ENCRYPT, BUFSIZE, tmp, buf, buf ) ); in main()
746 memset( buf, 0, sizeof( buf ) ); in main()
752 tmp, buf, buf ) ); in main()
769 memset( buf, 0, sizeof( buf ) ); in main()
775 12, NULL, 0, buf, buf, 16, tmp ) ); in main()
792 memset( buf, 0, sizeof( buf ) ); in main()
798 12, NULL, 0, buf, buf, tmp, 16 ) ); in main()
810 memset( buf, 0, sizeof( buf ) ); in main()
819 BUFSIZE, tmp, NULL, 0, buf, buf, tmp ) ); in main()
838 memset( buf, 0, sizeof( buf ) ); in main()
845 buf, BUFSIZE, output ) ); in main()
848 memset( buf, 0, sizeof( buf ) ); in main()
851 mbedtls_aes_cmac_prf_128( tmp, 16, buf, BUFSIZE, in main()
867 memset( buf, 0, sizeof( buf ) ); in main()
873 BUFSIZE, tmp, buf, buf ) ); in main()
889 memset( buf, 0, sizeof( buf ) ); in main()
895 BUFSIZE, tmp, buf, buf ) ); in main()
904 TIME_AND_TSC( "ChaCha20", mbedtls_chacha20_crypt( buf, buf, 0U, BUFSIZE, buf, buf ) ); in main()
911 TIME_AND_TSC( "Poly1305", mbedtls_poly1305_mac( buf, buf, BUFSIZE, buf ) ); in main()
924 mbedtls_ctr_drbg_random( &ctr_drbg, buf, BUFSIZE ) ); in main()
932 mbedtls_ctr_drbg_random( &ctr_drbg, buf, BUFSIZE ) ); in main()
952 mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) ); in main()
959 mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) ); in main()
969 mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) ); in main()
976 mbedtls_hmac_drbg_random( &hmac_drbg, buf, BUFSIZE ) ); in main()
995 buf[0] = 0; in main()
996 ret = mbedtls_rsa_public( &rsa, buf, buf ) ); in main()
999 buf[0] = 0; in main()
1000 ret = mbedtls_rsa_private( &rsa, myrand, NULL, buf, buf ) ); in main()
1044 mbedtls_dhm_make_public( &dhm, (int) n, buf, n, myrand, NULL ); in main()
1050 ret |= mbedtls_dhm_make_public( &dhm, (int) n, buf, n, in main()
1052 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in main()
1056 … ret |= mbedtls_dhm_calc_secret( &dhm, buf, sizeof( buf ), &olen, myrand, NULL ) ); in main()
1070 memset( buf, 0x2A, sizeof( buf ) ); in main()
1088 … ret = mbedtls_ecdsa_write_signature( &ecdsa, MBEDTLS_MD_SHA256, buf, curve_info->bit_size, in main()
1104 mbedtls_ecdsa_write_signature( &ecdsa, MBEDTLS_MD_SHA256, buf, curve_info->bit_size, in main()
1114 ret = mbedtls_ecdsa_read_signature( &ecdsa, buf, curve_info->bit_size, in main()
1164 CHECK_AND_CONTINUE( mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
1172 CHECK_AND_CONTINUE( mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
1174 CHECK_AND_CONTINUE( mbedtls_ecdh_calc_secret( &ecdh, &olen, buf, sizeof( buf ), in main()
1212 CHECK_AND_CONTINUE( mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
1215 CHECK_AND_CONTINUE( mbedtls_ecdh_make_public( &ecdh, &olen, buf, sizeof( buf), in main()
1222 CHECK_AND_CONTINUE( mbedtls_ecdh_calc_secret( &ecdh, &olen, buf, sizeof( buf ), in main()