Lines Matching refs:argv
58 int main(int argc, char *argv[]) in main() argument
121 mode = atoi(argv[1]); in main()
128 if (strcmp(argv[2], argv[3]) == 0) { in main()
133 if ((fin = fopen(argv[2], "rb")) == NULL) { in main()
134 mbedtls_fprintf(stderr, "fopen(%s,rb) failed\n", argv[2]); in main()
138 if ((fout = fopen(argv[3], "wb+")) == NULL) { in main()
139 mbedtls_fprintf(stderr, "fopen(%s,wb+) failed\n", argv[3]); in main()
150 cipher_info = mbedtls_cipher_info_from_string(argv[4]); in main()
152 mbedtls_fprintf(stderr, "Cipher '%s' not found\n", argv[4]); in main()
160 md_info = mbedtls_md_info_from_string(argv[5]); in main()
162 mbedtls_fprintf(stderr, "Message Digest '%s' not found\n", argv[5]); in main()
174 if ((fkey = fopen(argv[6], "rb")) != NULL) { in main()
178 if (memcmp(argv[6], "hex:", 4) == 0) { in main()
179 p = &argv[6][4]; in main()
188 keylen = strlen(argv[6]); in main()
194 memcpy(key, argv[6], keylen); in main()
241 p = argv[2]; in main()
559 mbedtls_platform_zeroize(argv[i], strlen(argv[i])); in main()