Searched refs:desc (Results 1 – 9 of 9) sorted by relevance
/security/integrity/evm/ |
D | evm_crypto.c | 79 struct shash_desc *desc; in init_desc() local 121 desc = kmalloc(sizeof(*desc) + crypto_shash_descsize(*tfm), in init_desc() 123 if (!desc) in init_desc() 126 desc->tfm = *tfm; in init_desc() 128 rc = crypto_shash_init(desc); in init_desc() 130 kfree(desc); in init_desc() 133 return desc; in init_desc() 142 static void hmac_add_misc(struct shash_desc *desc, struct inode *inode, in hmac_add_misc() argument 172 crypto_shash_update(desc, (const u8 *)&hmac_misc, sizeof(hmac_misc)); in hmac_add_misc() 175 crypto_shash_update(desc, (u8 *)&inode->i_sb->s_uuid, UUID_SIZE); in hmac_add_misc() [all …]
|
/security/apparmor/ |
D | crypto.c | 30 SHASH_DESC_ON_STACK(desc, apparmor_tfm); in aa_calc_hash() 41 desc->tfm = apparmor_tfm; in aa_calc_hash() 43 error = crypto_shash_init(desc); in aa_calc_hash() 46 error = crypto_shash_update(desc, (u8 *) data, len); in aa_calc_hash() 49 error = crypto_shash_final(desc, hash); in aa_calc_hash() 64 SHASH_DESC_ON_STACK(desc, apparmor_tfm); in aa_calc_profile_hash() 78 desc->tfm = apparmor_tfm; in aa_calc_profile_hash() 80 error = crypto_shash_init(desc); in aa_calc_profile_hash() 83 error = crypto_shash_update(desc, (u8 *) &le32_version, 4); in aa_calc_profile_hash() 86 error = crypto_shash_update(desc, (u8 *) start, len); in aa_calc_profile_hash() [all …]
|
/security/keys/ |
D | user_defined.c | 17 static int logon_vet_description(const char *desc); 193 static int logon_vet_description(const char *desc) in logon_vet_description() argument 198 p = strchr(desc, ':'); in logon_vet_description() 203 if (p == desc) in logon_vet_description()
|
D | dh.c | 146 struct shash_desc *desc = &sdesc->shash; in kdf_ctr() local 147 unsigned int h = crypto_shash_digestsize(desc->tfm); in kdf_ctr() 153 err = crypto_shash_init(desc); in kdf_ctr() 157 err = crypto_shash_update(desc, (u8 *)&counter, sizeof(__be32)); in kdf_ctr() 167 err = crypto_shash_update(desc, tmpbuffer, in kdf_ctr() 178 err = crypto_shash_update(desc, src, slen); in kdf_ctr() 183 err = crypto_shash_final(desc, dst); in kdf_ctr()
|
D | request_key_auth.c | 168 char desc[20]; in request_key_auth_new() local 214 sprintf(desc, "%x", target->serial); in request_key_auth_new() 216 authkey = key_alloc(&key_type_request_key_auth, desc, in request_key_auth_new()
|
D | key.c | 225 struct key *key_alloc(struct key_type *type, const char *desc, in key_alloc() argument 236 if (!desc || !*desc) in key_alloc() 240 ret = type->vet_description(desc); in key_alloc() 247 desclen = strlen(desc); in key_alloc() 282 key->index_key.description = kmemdup(desc, desclen + 1, GFP_KERNEL); in key_alloc()
|
D | keyring.c | 217 size_t n = min_t(size_t, index_key->desc_len, sizeof(index_key->desc)); in key_set_index_key() 219 memcpy(index_key->desc, index_key->description, n); in key_set_index_key() 287 if (desc_len <= sizeof(index_key->desc)) in keyring_get_key_chunk() 290 d = index_key->description + sizeof(index_key->desc); in keyring_get_key_chunk() 292 desc_len -= sizeof(index_key->desc); in keyring_get_key_chunk() 363 i = sizeof(a->desc); in keyring_diff_objects()
|
D | request_key.c | 127 char desc[20]; in call_sbin_request_key() local 137 sprintf(desc, "_req.%u", key->serial); in call_sbin_request_key() 140 keyring = keyring_alloc(desc, cred->fsuid, cred->fsgid, cred, in call_sbin_request_key()
|
/security/integrity/ima/ |
D | ima_api.c | 39 struct ima_template_desc *desc) in ima_alloc_init_template() argument 45 if (desc) in ima_alloc_init_template() 46 template_desc = desc; in ima_alloc_init_template()
|