Searched refs:kmd (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/include/crypto/internal/ |
D | kdf_selftest.h | 25 int (*crypto_kdf_setkey)(struct crypto_shash *kmd, in kdf_test() argument 28 int (*crypto_kdf_generate)(struct crypto_shash *kmd, in kdf_test() argument 33 struct crypto_shash *kmd; in kdf_test() local 40 kmd = crypto_alloc_shash(name, 0, 0); in kdf_test() 41 if (IS_ERR(kmd)) { in kdf_test() 48 ret = crypto_kdf_setkey(kmd, test->key, test->keylen, in kdf_test() 55 ret = crypto_kdf_generate(kmd, &test->info, 1, buf, test->expectedlen); in kdf_test() 66 crypto_free_shash(kmd); in kdf_test()
|
/linux-6.1.9/crypto/ |
D | kdf_sp800108.c | 17 int crypto_kdf108_ctr_generate(struct crypto_shash *kmd, in crypto_kdf108_ctr_generate() argument 21 SHASH_DESC_ON_STACK(desc, kmd); in crypto_kdf108_ctr_generate() 23 const unsigned int h = crypto_shash_digestsize(kmd), dlen_orig = dlen; in crypto_kdf108_ctr_generate() 28 desc->tfm = kmd; in crypto_kdf108_ctr_generate() 77 int crypto_kdf108_setkey(struct crypto_shash *kmd, in crypto_kdf108_setkey() argument 81 unsigned int ds = crypto_shash_digestsize(kmd); in crypto_kdf108_setkey() 92 return crypto_shash_setkey(kmd, key, keylen); in crypto_kdf108_setkey()
|
/linux-6.1.9/include/crypto/ |
D | kdf_sp800108.h | 31 int crypto_kdf108_ctr_generate(struct crypto_shash *kmd, 57 int crypto_kdf108_setkey(struct crypto_shash *kmd,
|
/linux-6.1.9/kernel/ |
D | seccomp.c | 2137 struct seccomp_metadata kmd = {}; in seccomp_get_metadata() local 2144 size = min_t(unsigned long, size, sizeof(kmd)); in seccomp_get_metadata() 2146 if (size < sizeof(kmd.filter_off)) in seccomp_get_metadata() 2149 if (copy_from_user(&kmd.filter_off, data, sizeof(kmd.filter_off))) in seccomp_get_metadata() 2152 filter = get_nth_filter(task, kmd.filter_off); in seccomp_get_metadata() 2157 kmd.flags |= SECCOMP_FILTER_FLAG_LOG; in seccomp_get_metadata() 2160 if (copy_to_user(data, &kmd, size)) in seccomp_get_metadata()
|
/linux-6.1.9/arch/ia64/kernel/ |
D | efi.c | 296 kmd_end(kern_memdesc_t *kmd) in kmd_end() argument 298 return (kmd->start + (kmd->num_pages << EFI_PAGE_SHIFT)); in kmd_end()
|