Lines Matching defs:key
93 * This routine is used to find the key of type defined by 'ka' and
94 * return it in 'key'. The key file should have been opened by the
101 get_key(FILE *key_fp, wbku_key_attr_t *ka, uint8_t *key)
106 * Find the client key, if it exists.
108 ret = wbku_find_key(key_fp, NULL, ka, key, B_FALSE);
223 encr_gen_3des(const wbku_key_attr_t *ka, const uint8_t *key)
235 des3_key(eh, key);
264 encr_gen_aes(const wbku_key_attr_t *ka, const uint8_t *key)
276 aes_key(eh, key, ka->ka_len);
310 * stdout. The path to the key file and the algorithm to use are
319 uint8_t key[WANBOOT_MAXKEYLEN];
366 * Path to key file.
377 * Gotta have a key file.
385 * Gotta have a key type.
393 * Open the key file for reading.
401 * Get the key from the key file and call the right
404 ret = get_key(key_fp, &ka, key);
408 ret = encr_gen_3des(&ka, key);
411 ret = encr_gen_aes(&ka, key);