Lines Matching defs:format
76 parse_format(key_format_t *format, char *s, int len)
83 *format = KEY_FORMAT_RAW;
85 *format = KEY_FORMAT_HEX;
88 *format = KEY_FORMAT_PASSPHRASE;
149 keysource_prop_parser(char *prop_value, key_format_t *format,
156 *format = KEY_FORMAT_NONE;
174 if (!parse_format(format, s, len))
210 key_format_t format;
215 if (!keysource_prop_parser(keysource, &format, &locator, &uri))
231 size_t *passphraselen, key_format_t format, zfs_cmd_t *zc,
240 if (format == KEY_FORMAT_HEX) {
406 KMF_ENCODE_FORMAT format = KMF_FORMAT_RAWKEY;
458 kmf_set_attr_at_index(attr, n++, KMF_ENCODE_FORMAT_ATTR, &format,
459 sizeof (format));
529 key_format_t format;
543 if (!keysource_prop_parser(keysource, &format, &locator, &uri)) {
569 * If the format is raw then prompting is a simple read(2)
577 if (format == KEY_FORMAT_RAW) {
591 &keydatalen, format, zc, cmd);
682 * such as turning the hex format into raw or in the case of
688 switch (format) {
697 * format, and that extra char is a linefeed, we can trim it
715 "invalid hex format key."));
784 ASSERT(format);
1123 * keysources are limited to the same format
1142 key_format_t format;
1149 return (keysource_prop_parser(keysource, &format, &locator, &uri));