Lines Matching refs:master_desc
172 char **master_desc, char **decrypted_datalen, in datablob_parse() argument
201 *master_desc = strsep(&datablob, " \t"); in datablob_parse()
204 *master_desc = p; in datablob_parse()
208 if (!*master_desc) { in datablob_parse()
213 if (valid_master_desc(*master_desc, NULL) < 0) { in datablob_parse()
215 "is invalid\n", *master_desc); in datablob_parse()
286 epayload->master_desc, epayload->datalen); in datablob_format()
301 static struct key *request_user_key(const char *master_desc, const u8 **master_key, in request_user_key() argument
307 ukey = request_key(&key_type_user, master_desc, NULL); in request_user_key()
427 if (!strncmp(epayload->master_desc, KEY_TRUSTED_PREFIX, in request_master_key()
429 mkey = request_trusted_key(epayload->master_desc + in request_master_key()
432 } else if (!strncmp(epayload->master_desc, KEY_USER_PREFIX, in request_master_key()
434 mkey = request_user_key(epayload->master_desc + in request_master_key()
445 epayload->master_desc); in request_master_key()
448 epayload->master_desc); in request_master_key()
538 p = epayload->master_desc; in datablob_hmac_verify()
609 const char *master_desc, in encrypted_key_alloc() argument
648 datablob_len = format_len + 1 + strlen(master_desc) + 1 in encrypted_key_alloc()
725 const char *format, const char *master_desc, in __ekey_init() argument
732 epayload->master_desc = epayload->format + format_len + 1; in __ekey_init()
733 epayload->datalen = epayload->master_desc + strlen(master_desc) + 1; in __ekey_init()
748 memcpy(epayload->master_desc, master_desc, strlen(master_desc)); in __ekey_init()
760 const char *master_desc, const char *datalen, in encrypted_init() argument
774 __ekey_init(epayload, format, master_desc, datalen); in encrypted_init()
799 char *master_desc = NULL; in encrypted_instantiate() local
813 ret = datablob_parse(datablob, &format, &master_desc, in encrypted_instantiate()
818 epayload = encrypted_key_alloc(key, format, master_desc, in encrypted_instantiate()
824 ret = encrypted_init(epayload, key->description, format, master_desc, in encrypted_instantiate()
879 ret = valid_master_desc(new_master_desc, epayload->master_desc); in encrypted_update()