Lines Matching defs:key

127 		wbku_printerr("Missing key type option value\n");
226 * This routine generates a random key of the type defined by 'ka'.
227 * The key value is returned in 'rand_key' and the buffer pointed to
232 * generate randon keys until a non-weak key is generated.
241 * Generate key, until non-weak key generated.
256 * This routine generates a random master key of the type (currently only
257 * HMAC SHA1 supported) defined by 'ka' and stores it in the master key
296 * If the file already exists, then see if a master key already
304 wbku_printerr("The master %s key already "
316 * If wbku_find_key() did not find the key position for us
328 * Generate a key and write it.
342 (void) printf(gettext("The master %s key has been generated\n"),
348 * This routine generates a random client key of the type
393 * Generate the key. Encryption keys can be generated by simply
394 * calling gen_key(). An HMAC SHA1 key will be generated by
395 * hashing the master key.
408 * the HMAC/SHA1 client key.
421 * Find the master key.
426 wbku_printerr("Cannot create a client key "
427 "without first creating a master key\n");
448 * Hash the buffer to create the client key.
456 wbku_printerr("Cannot generate RSA key using keygen\n");
466 * Look to see if a client key of this type exists and if
480 * If wbku_find_key() did not find the key position for us,
491 * Write the key.
501 (void) printf(gettext("A new client %s key has been generated\n"),
508 * This routine is used to print a hexascii version of a key.
509 * The hexascii version of the key will be twice the length
513 keydump(const char *key, int keylen)
517 assert(IS_P2ALIGNED(key, sizeof (uint16_t)));
519 for (p16 = (uint16_t *)key; keylen > 0; keylen -= 2) {
526 * This routine is used to print a key of the type
528 * key to display is the master key. Otherwise, it's a
529 * client key.
537 uint8_t key[WANBOOT_MAXKEYLEN];
550 * Find the key.
552 ret = wbku_find_key(fp, NULL, ka, key, master);
555 wbku_printerr("The %s %s key does not exist\n",
566 * Dump the key in hex.
568 keydump((char *)key, ka->ka_len);
590 * master keystore (used to store a master HMAC SHA1 key) will always
651 * Display a key.
677 * Must be operating on a master or client key and if
678 * it's a client key, then type must have been given.
687 * If operating on the master key, then it is an HMAC SHA1
688 * key. Build the correct 'ka'. If we're working on a client
689 * key, the 'ka' was already built as part of option parsing.
718 * Can't generate RSA key here.
721 wbku_printerr("keygen cannot create RSA key\n");
726 * If generating a master key, go do it.
733 * Must be generating a client key, go do it.