Searched refs:key_string (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/md/ |
| H A D | dm-inlinecrypt.c | 105 static int inlinecrypt_get_keyring_key(const char *key_string, u8 *key_bytes, in inlinecrypt_get_keyring_key() argument 119 if (contains_whitespace(key_string)) { in inlinecrypt_get_keyring_key() 125 key_desc = strchr(key_string, ':'); in inlinecrypt_get_keyring_key() 126 if (!key_desc || key_desc == key_string || !strlen(key_desc + 1)) in inlinecrypt_get_keyring_key() 129 if (!strncmp(key_string, "logon:", key_desc - key_string + 1)) { in inlinecrypt_get_keyring_key() 150 static int get_key_size(char **key_string) in get_key_size() argument 155 if (*key_string[0] != ':') { in get_key_size() 156 ret = strlen(*key_string); in get_key_size() 168 colon = strpbrk(*key_string + 1, ":"); in get_key_size() 172 if (sscanf(*key_string + 1, "%u%c", &ret, &dummy) != 2 || dummy != ':') in get_key_size() [all …]
|
| H A D | dm-crypt.c | 174 char *key_string; member 2484 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string) in crypt_set_keyring_key() argument 2493 * Reject key_string with whitespace. dm core currently lacks code for in crypt_set_keyring_key() 2496 if (contains_whitespace(key_string)) { in crypt_set_keyring_key() 2502 key_desc = strchr(key_string, ':'); in crypt_set_keyring_key() 2503 if (!key_desc || key_desc == key_string || !strlen(key_desc + 1)) in crypt_set_keyring_key() 2506 if (!strncmp(key_string, "logon:", key_desc - key_string + 1)) { in crypt_set_keyring_key() 2509 } else if (!strncmp(key_string, "user:", key_desc - key_string in crypt_set_keyring_key() 2558 get_key_size(char ** key_string) get_key_size() argument 2583 crypt_set_keyring_key(struct crypt_config * cc,const char * key_string) crypt_set_keyring_key() argument 2588 get_key_size(char ** key_string) get_key_size() argument [all...] |
| H A D | dm-integrity.c | 166 char *key_string; member 4124 if (ic->a.key_string) \ in dm_integrity_iterate_devices() 4125 DMEMIT(":%s", ic->a.key_string);\ in dm_integrity_iterate_devices() 4473 a->key_string = k + 1; in get_mac() 4474 if (strlen(a->key_string) & 1) in get_mac() 4477 a->key_size = strlen(a->key_string) / 2; in get_mac() 4481 if (hex2bin(a->key, a->key_string, a->key_size)) in get_mac() 5281 if (ic->fix_hmac && !(ic->sb->flags & cpu_to_le32(SB_FLAG_FIXED_HMAC)) && ic->journal_mac_alg.key_string) { in dm_integrity_ctr()
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | dm-crypt.rst | 53 or it can be passed as <key_string> prefixed with single colon 61 <key_string>
|