Home
last modified time | relevance | path

Searched refs:fout (Results 1 – 5 of 5) sorted by relevance

/net-tools-2.7.6/mbedtls-2.4.0/programs/pkey/
Ddh_genprime.c76 FILE *fout; in main() local
165 if( ( fout = fopen( "dh_prime.txt", "wb+" ) ) == NULL ) in main()
172 if( ( ret = mbedtls_mpi_write_file( "P = ", &P, 16, fout ) != 0 ) || in main()
173 ( ret = mbedtls_mpi_write_file( "G = ", &G, 16, fout ) != 0 ) ) in main()
176 fclose( fout ); in main()
181 fclose( fout ); in main()
/net-tools-2.7.6/mbedtls-2.4.0/programs/aes/
Daescrypt2.c79 FILE *fkey, *fin = NULL, *fout = NULL; in main() local
149 if( ( fout = fopen( argv[3], "wb+" ) ) == NULL ) in main()
254 if( fwrite( IV, 1, 16, fout ) != 16 ) in main()
299 if( fwrite( buffer, 1, 16, fout ) != 16 ) in main()
313 if( fwrite( digest, 1, 32, fout ) != 32 ) in main()
405 if( fwrite( buffer, 1, n, fout ) != (size_t) n ) in main()
441 if( fout ) in main()
442 fclose( fout ); in main()
Dcrypt_and_hash.c79 FILE *fkey, *fin = NULL, *fout = NULL; in main() local
160 if( ( fout = fopen( argv[3], "wb+" ) ) == NULL ) in main()
284 if( fwrite( IV, 1, 16, fout ) != 16 ) in main()
349 if( fwrite( output, 1, olen, fout ) != olen ) in main()
363 if( fwrite( output, 1, olen, fout ) != olen ) in main()
374 … if( fwrite( digest, 1, mbedtls_md_get_size( md_info ), fout ) != mbedtls_md_get_size( md_info ) ) in main()
493 if( fwrite( output, 1, olen, fout ) != olen ) in main()
528 if( fwrite( output, 1, olen, fout ) != olen ) in main()
540 if( fout ) in main()
541 fclose( fout ); in main()
/net-tools-2.7.6/mbedtls-2.4.0/include/mbedtls/
Dbignum.h367 int mbedtls_mpi_write_file( const char *p, const mbedtls_mpi *X, int radix, FILE *fout );
/net-tools-2.7.6/mbedtls-2.4.0/library/
Dbignum.c628 int mbedtls_mpi_write_file( const char *p, const mbedtls_mpi *X, int radix, FILE *fout ) in mbedtls_mpi_write_file() argument
649 if( fout != NULL ) in mbedtls_mpi_write_file()
651 if( fwrite( p, 1, plen, fout ) != plen || in mbedtls_mpi_write_file()
652 fwrite( s, 1, slen, fout ) != slen ) in mbedtls_mpi_write_file()