Home
last modified time | relevance | path

Searched refs:key_string (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/md/
Ddm-crypt.c163 char *key_string; member
2472 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string) in crypt_set_keyring_key() argument
2484 if (contains_whitespace(key_string)) { in crypt_set_keyring_key()
2490 key_desc = strpbrk(key_string, ":"); in crypt_set_keyring_key()
2491 if (!key_desc || key_desc == key_string || !strlen(key_desc + 1)) in crypt_set_keyring_key()
2494 if (!strncmp(key_string, "logon:", key_desc - key_string + 1)) { in crypt_set_keyring_key()
2497 } else if (!strncmp(key_string, "user:", key_desc - key_string + 1)) { in crypt_set_keyring_key()
2501 !strncmp(key_string, "encrypted:", key_desc - key_string + 1)) { in crypt_set_keyring_key()
2505 !strncmp(key_string, "trusted:", key_desc - key_string + 1)) { in crypt_set_keyring_key()
2512 new_key_string = kstrdup(key_string, GFP_KERNEL); in crypt_set_keyring_key()
[all …]
Ddm-integrity.c158 char *key_string; member
3326 if (ic->a.key_string) \ in dm_integrity_status()
3327 DMEMIT(":%s", ic->a.key_string);\ in dm_integrity_status()
3661 a->key_string = k + 1; in get_alg_and_key()
3662 if (strlen(a->key_string) & 1) in get_alg_and_key()
3665 a->key_size = strlen(a->key_string) / 2; in get_alg_and_key()
3669 if (hex2bin(a->key, a->key_string, a->key_size)) in get_alg_and_key()
/linux-6.1.9/Documentation/admin-guide/device-mapper/
Ddm-crypt.rst53 or it can be passed as <key_string> prefixed with single colon
61 <key_string>