Lines Matching refs:key

362  * Dump a key, any salt and bitlen.
363 * The key is made up of a stream of bits. If the algorithm requires a salt
364 * value, this will also be part of the dumped key. The last "saltbits" of the
365 * key string, reading left to right will be the salt value. To make it easier
366 * to see which bits make up the key, the salt value is enclosed in []'s.
368 * the SAs, including the key to a file. When this is the case, the []'s are
501 if (fputs(dgettext(TEXT_DOMAIN, "Generic key id"),
968 { D_KEY, "key" },
1338 return (dgettext(TEXT_DOMAIN, "unsupported AH key size"));
1341 "unsupported ESP encryption key size"));
1344 "unsupported ESP authentication key size"));
1351 "number of key sizes inconsistent"));
1433 return (dgettext(TEXT_DOMAIN, "Missing encryption key"));
1435 return (dgettext(TEXT_DOMAIN, "Missing authentication key"));
1445 return (dgettext(TEXT_DOMAIN, "Duplicate encryption key"));
1447 return (dgettext(TEXT_DOMAIN, "Duplicate authentication key"));
1457 return (dgettext(TEXT_DOMAIN, "Malformed encryption key"));
1459 return (dgettext(TEXT_DOMAIN, "Malformed authentication key"));
1463 return (dgettext(TEXT_DOMAIN, "Authentication key not needed"));
1465 return (dgettext(TEXT_DOMAIN, "Encryption key not needed"));
1491 return (dgettext(TEXT_DOMAIN, "Weak encryption key"));
1493 return (dgettext(TEXT_DOMAIN, "Weak authentication key"));
1496 "Duplicate key management protocol"));
1499 "Duplicate key management cookie"));
2174 print_key(FILE *file, char *prefix, struct sadb_key *key)
2178 switch (key->sadb_key_exttype) {
2187 (void) fprintf(file, dgettext(TEXT_DOMAIN, " key.\n%s"), prefix);
2188 (void) dump_key((uint8_t *)(key + 1), key->sadb_key_bits,
2189 key->sadb_key_reserved, file, B_TRUE);
2921 * Print save information for a key extension. Returns whether writing
2925 save_key(struct sadb_key *key, FILE *ofile)
2932 prefix = (key->sadb_key_exttype == SADB_EXT_KEY_AUTH) ? "auth" : "encr";
2937 if (dump_key((uint8_t *)(key + 1), key->sadb_key_bits,
2938 key->sadb_key_reserved, ofile, B_FALSE) == -1)