Home
last modified time | relevance | path

Searched refs:test_key (Results 1 – 6 of 6) sorted by relevance

/linux/lib/
H A Dtest_static_keys.c35 struct test_key { struct
38 bool (*test_key)(void); member
55 static void invert_keys(struct test_key *keys, int size) in invert_keys()
68 static int verify_keys(struct test_key *keys, int size, bool invert) in verify_keys()
78 ret = keys[i].test_key(); in verify_keys()
114 struct test_key static_key_tests[] = { in test_key_func()
119 .test_key = &old_true_key_static_key_true, in test_key_func()
124 .test_key = &old_false_key_static_key_false, in test_key_func()
130 .test_key = &true_key_static_branch_likely, in test_key_func()
135 .test_key = &true_key_static_branch_unlikely, in test_key_func()
[all …]
/linux/lib/crypto/tests/
H A Dpoly1305_kunit.c13 static u8 test_key[POLY1305_KEY_SIZE]; variable
28 poly1305_init(ctx, test_key); in poly1305_init_withtestkey()
34 poly1305(test_key, data, len, out); in poly1305_withtestkey()
48 rand_bytes_seeded_from_len(test_key, POLY1305_KEY_SIZE); in poly1305_suite_init()
H A Dpolyval_kunit.c13 static struct polyval_key test_key; variable
17 polyval_init(ctx, &test_key); in polyval_init_withtestkey()
23 polyval(&test_key, data, len, out); in polyval_withtestkey()
194 polyval_preparekey(&test_key, raw_key); in polyval_suite_init()
/linux/kernel/trace/
H A Dtracing_map.c505 static inline bool keys_match(void *key, void *test_key, unsigned key_size) in keys_match() argument
509 if (memcmp(key, test_key, key_size)) in keys_match()
518 u32 idx, key_hash, test_key; in __tracing_map_insert() local
531 test_key = entry->key; in __tracing_map_insert()
533 if (test_key && test_key == key_hash) { in __tracing_map_insert()
562 if (!test_key) { in __tracing_map_insert()
/linux/tools/testing/selftests/net/tcp_ao/
H A Dkey-management.c408 struct test_key { struct
427 struct test_key *keys; argument
454 struct test_key *key = &collection.keys[index]; in init_key_in_collection()
513 static void test_key_error(const char *msg, struct test_key *key) in test_key_error()
593 struct test_key *key = &collection.keys[i]; in key_collection_socket()
639 struct test_key *key = &collection.keys[i]; in verify_counters()
700 struct test_key *key = &collection.keys[i]; in verify_keys()
970 struct test_key *key; in try_unmatched_keys()
/linux/fs/crypto/
H A Dkeyring.c824 static u8 test_key[FSCRYPT_MAX_RAW_KEY_SIZE]; in fscrypt_get_test_dummy_secret() local
826 get_random_once(test_key, sizeof(test_key)); in fscrypt_get_test_dummy_secret()
829 secret->size = sizeof(test_key); in fscrypt_get_test_dummy_secret()
830 memcpy(secret->bytes, test_key, sizeof(test_key)); in fscrypt_get_test_dummy_secret()