Lines Matching refs:master_desc

177 			  char **master_desc, char **decrypted_datalen,  in datablob_parse()  argument
206 *master_desc = strsep(&datablob, " \t"); in datablob_parse()
209 *master_desc = p; in datablob_parse()
213 if (!*master_desc) { in datablob_parse()
218 if (valid_master_desc(*master_desc, NULL) < 0) { in datablob_parse()
220 "is invalid\n", *master_desc); in datablob_parse()
292 epayload->master_desc, epayload->datalen); in datablob_format()
307 static struct key *request_user_key(const char *master_desc, const u8 **master_key, in request_user_key() argument
313 ukey = request_key(&key_type_user, master_desc, NULL); in request_user_key()
421 if (!strncmp(epayload->master_desc, KEY_TRUSTED_PREFIX, in request_master_key()
423 mkey = request_trusted_key(epayload->master_desc + in request_master_key()
426 } else if (!strncmp(epayload->master_desc, KEY_USER_PREFIX, in request_master_key()
428 mkey = request_user_key(epayload->master_desc + in request_master_key()
439 epayload->master_desc); in request_master_key()
442 epayload->master_desc); in request_master_key()
532 p = epayload->master_desc; in datablob_hmac_verify()
603 const char *master_desc, in encrypted_key_alloc() argument
662 datablob_len = format_len + 1 + strlen(master_desc) + 1 in encrypted_key_alloc()
739 const char *format, const char *master_desc, in __ekey_init() argument
746 epayload->master_desc = epayload->format + format_len + 1; in __ekey_init()
747 epayload->datalen = epayload->master_desc + strlen(master_desc) + 1; in __ekey_init()
762 memcpy(epayload->master_desc, master_desc, strlen(master_desc)); in __ekey_init()
775 const char *master_desc, const char *datalen, in encrypted_init() argument
789 __ekey_init(epayload, format, master_desc, datalen); in encrypted_init()
819 char *master_desc = NULL; in encrypted_instantiate() local
834 ret = datablob_parse(datablob, &format, &master_desc, in encrypted_instantiate()
839 epayload = encrypted_key_alloc(key, format, master_desc, in encrypted_instantiate()
845 ret = encrypted_init(epayload, key->description, format, master_desc, in encrypted_instantiate()
900 ret = valid_master_desc(new_master_desc, epayload->master_desc); in encrypted_update()