Home
last modified time | relevance | path

Searched refs:trd (Results 1 – 2 of 2) sorted by relevance

/linux/security/loadpin/
H A Dloadpin.c318 struct dm_verity_loadpin_trusted_root_digest *trd; in read_trusted_verity_root_digests() local
339 trd = kzalloc(struct_size(trd, data, len), GFP_KERNEL); in read_trusted_verity_root_digests()
340 if (!trd) { in read_trusted_verity_root_digests()
344 trd->len = len; in read_trusted_verity_root_digests()
346 if (hex2bin(trd->data, d, len)) { in read_trusted_verity_root_digests()
347 kfree(trd); in read_trusted_verity_root_digests()
352 list_add_tail(&trd->node, &dm_verity_loadpin_trusted_root_digests); in read_trusted_verity_root_digests()
369 struct dm_verity_loadpin_trusted_root_digest *trd, *tmp; in read_trusted_verity_root_digests() local
371 list_for_each_entry_safe(trd, tmp, &dm_verity_loadpin_trusted_root_digests, node) { in read_trusted_verity_root_digests()
372 list_del(&trd->node); in read_trusted_verity_root_digests()
[all …]
/linux/drivers/md/
H A Ddm-verity-loadpin.c20 struct dm_verity_loadpin_trusted_root_digest *trd; in is_trusted_verity_target() local
36 list_for_each_entry(trd, &dm_verity_loadpin_trusted_root_digests, node) { in is_trusted_verity_target()
37 if ((trd->len == digest_size) && in is_trusted_verity_target()
38 !memcmp(trd->data, root_digest, digest_size)) { in is_trusted_verity_target()