Lines Matching refs:key_string

154 	char *key_string;  member
1998 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string) in crypt_set_keyring_key() argument
2009 if (contains_whitespace(key_string)) { in crypt_set_keyring_key()
2015 key_desc = strpbrk(key_string, ":"); in crypt_set_keyring_key()
2016 if (!key_desc || key_desc == key_string || !strlen(key_desc + 1)) in crypt_set_keyring_key()
2019 if (strncmp(key_string, "logon:", key_desc - key_string + 1) && in crypt_set_keyring_key()
2020 strncmp(key_string, "user:", key_desc - key_string + 1)) in crypt_set_keyring_key()
2023 new_key_string = kstrdup(key_string, GFP_KERNEL); in crypt_set_keyring_key()
2027 key = request_key(key_string[0] == 'l' ? &key_type_logon : &key_type_user, in crypt_set_keyring_key()
2063 kzfree(cc->key_string); in crypt_set_keyring_key()
2064 cc->key_string = new_key_string; in crypt_set_keyring_key()
2071 static int get_key_size(char **key_string) in get_key_size() argument
2076 if (*key_string[0] != ':') in get_key_size()
2077 return strlen(*key_string) >> 1; in get_key_size()
2080 colon = strpbrk(*key_string + 1, ":"); in get_key_size()
2084 if (sscanf(*key_string + 1, "%u%c", &ret, &dummy) != 2 || dummy != ':') in get_key_size()
2087 *key_string = colon; in get_key_size()
2096 static int crypt_set_keyring_key(struct crypt_config *cc, const char *key_string) in crypt_set_keyring_key() argument
2101 static int get_key_size(char **key_string) in get_key_size() argument
2103 return (*key_string[0] == ':') ? -EINVAL : strlen(*key_string) >> 1; in get_key_size()
2127 kzfree(cc->key_string); in crypt_set_key()
2128 cc->key_string = NULL; in crypt_set_key()
2151 kzfree(cc->key_string); in crypt_wipe_key()
2152 cc->key_string = NULL; in crypt_wipe_key()
2232 kzfree(cc->key_string); in crypt_dtr()
2576 if (cc->key_string) in crypt_ctr_cipher()
2929 if (cc->key_string) in crypt_status()
2930 DMEMIT(":%u:%s", cc->key_size, cc->key_string); in crypt_status()
3025 if (cc->key_string) in crypt_message()