Lines Matching refs:argv
74 int main( int argc, char *argv[] ) in main() argument
140 mode = atoi( argv[1] ); in main()
148 if( strcmp( argv[2], argv[3] ) == 0 ) in main()
154 if( ( fin = fopen( argv[2], "rb" ) ) == NULL ) in main()
156 mbedtls_fprintf( stderr, "fopen(%s,rb) failed\n", argv[2] ); in main()
160 if( ( fout = fopen( argv[3], "wb+" ) ) == NULL ) in main()
162 mbedtls_fprintf( stderr, "fopen(%s,wb+) failed\n", argv[3] ); in main()
169 cipher_info = mbedtls_cipher_info_from_string( argv[4] ); in main()
172 mbedtls_fprintf( stderr, "Cipher '%s' not found\n", argv[4] ); in main()
181 md_info = mbedtls_md_info_from_string( argv[5] ); in main()
184 mbedtls_fprintf( stderr, "Message Digest '%s' not found\n", argv[5] ); in main()
197 if( ( fkey = fopen( argv[6], "rb" ) ) != NULL ) in main()
204 if( memcmp( argv[6], "hex:", 4 ) == 0 ) in main()
206 p = &argv[6][4]; in main()
218 keylen = strlen( argv[6] ); in main()
223 memcpy( key, argv[6], keylen ); in main()
227 memset( argv[6], 0, strlen( argv[6] ) ); in main()
272 p = argv[2]; in main()