Lines Matching defs:key
26 #include "key.h"
111 "optionally the RSA or ECC keys, and outputs the key and content\n"
181 key_t *key;
191 /* Validate key-size */
200 ERROR("'%d' is not a valid key size for '%s'\n",
235 key = &keys[ext->attr.key];
236 if (!new_keys && key->fn == NULL) {
238 "specified\n", key->desc,
271 { "key-alg", required_argument, NULL, 'a' },
276 { "key-size", required_argument, NULL, 'b' },
285 "Save key pairs into files. Filenames must be provided"
289 "Generate new key pairs if no key files are provided"
302 key_t *key;
361 ERROR("Invalid key algorithm '%s'\n", optarg);
368 ERROR("Invalid key size '%s'\n", optarg);
398 key = key_get_by_opt(cur_opt);
399 key->fn = strdup(optarg);
413 /* Select a reasonable default key-size */
438 ERROR("Failed to allocate key container\n");
443 /* First try to load the key from disk */
453 * key. Abort. */
461 /* Try to create a new key */
462 NOTICE("Creating new key for '%s'\n", keys[i].desc);
464 ERROR("Error creating key '%s'\n", keys[i].desc);
540 EXT_CRIT, keys[ext->attr.key].key));
552 /* Create certificate. Signed with corresponding key */
600 /* If we got here, then we must have filled the key array completely.