Lines Matching refs:algo
166 static const char *cipher_str(uint32_t algo) in cipher_str() argument
168 switch (algo) { in cipher_str()
185 static const char *mode_str(uint32_t algo) in mode_str() argument
187 switch (algo) { in mode_str()
210 static void usage(const char *applet_optname, int keysize, int algo, in usage() argument
230 fprintf(stderr, " -c CIPHER cipher: AES, SM4 [%s]\n", cipher_str(algo)); in usage()
231 fprintf(stderr, " -m MODE mode: ECB, CBC, CTR, XTS, GCM [%s]\n", mode_str(algo)); in usage()
377 static void prepare_key(int decrypt, int keysize, int algo) in prepare_key() argument
388 op.params[1].value.a = algo; in prepare_key()
451 void aes_perf_run_test(int algo, int keysize, int decrypt, size_t size, size_t unit, in aes_perf_run_test() argument
484 prepare_key(decrypt, keysize, algo); in aes_perf_run_test()
502 mode_str(algo), (decrypt ? "de" : "en"), keysize, size); in aes_perf_run_test()
567 #define USAGE() usage(argv[0], keysize, algo, size, unit, warmup, l, n)
619 int algo = -1; in aes_perf_runner_cmd_parser() local
739 algo = get_symm_algo(cipher, mode); in aes_perf_runner_cmd_parser()
740 assert(algo != -1); in aes_perf_runner_cmd_parser()
749 aes_perf_run_test(algo, keysize, decrypt, size, unit, n, l, in aes_perf_runner_cmd_parser()