Lines Matching +full:mac +full:- +full:s
2 * Copyright 2018-2021 The OpenSSL Project Authors. All Rights Reserved.
31 {OPT_HELP_STR, 1, '-', "Usage: %s [options] mac_name\n"},
34 {"help", OPT_HELP, '-', "Display this summary"},
35 {"macopt", OPT_MACOPT, 's', "MAC algorithm parameters in n:v form"},
36 {"cipher", OPT_CIPHER, 's', "Cipher"},
37 {"digest", OPT_DIGEST, 's', "Digest"},
38 {OPT_MORE_STR, 1, '-', "See 'PARAMETER NAMES' in the EVP_MAC_ docs"},
41 {"in", OPT_IN, '<', "Input file to MAC (default is stdin)"},
45 {"binary", OPT_BIN, '-',
51 {"mac_name", 0, 0, "MAC algorithm"},
67 BIO_snprintf(res, len, "%s:%s", name, arg); in alloc_mac_algorithm_name()
78 EVP_MAC *mac = NULL; in mac_main() local
99 BIO_printf(bio_err, "%s: Use -help for summary.\n", prog); in mac_main()
139 /* One argument, the MAC name. */ in mac_main()
140 if (!opt_check_rest_arg("MAC name")) in mac_main()
144 mac = EVP_MAC_fetch(app_get0_libctx(), argv[0], app_get0_propq()); in mac_main()
145 if (mac == NULL) { in mac_main()
146 BIO_printf(bio_err, "Invalid MAC name %s\n", argv[0]); in mac_main()
150 ctx = EVP_MAC_CTX_new(mac); in mac_main()
158 EVP_MAC_settable_ctx_params(mac)); in mac_main()
163 BIO_printf(bio_err, "MAC parameter error\n"); in mac_main()
188 BIO_printf(bio_err, "Read Error in '%s'\n", infile); in mac_main()
234 EVP_MAC_free(mac); in mac_main()