Lines Matching refs:key1
24 static void test_unpack_key(const struct vb2_packed_key *key1) in test_unpack_key() argument
32 uint32_t size = key1->key_offset + key1->key_size; in test_unpack_key()
36 memcpy(key, key1, size); in test_unpack_key()
45 memcpy(key, key1, size); in test_unpack_key()
51 memcpy(key, key1, size); in test_unpack_key()
57 memcpy(key, key1, size); in test_unpack_key()
63 memcpy(key, key1, size); in test_unpack_key()
69 memcpy(key, key1, size); in test_unpack_key()
77 static void test_verify_data(const struct vb2_packed_key *key1, in test_verify_data() argument
84 uint32_t pubkey_size = key1->key_offset + key1->key_size; in test_verify_data()
94 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key1, pubkey_size), in test_verify_data()
145 struct vb2_packed_key *key1; in test_algorithm() local
157 key1 = (struct vb2_packed_key *) in test_algorithm()
159 if (!key1) { in test_algorithm()
171 test_unpack_key(key1); in test_algorithm()
172 test_verify_data(key1, sig); in test_algorithm()
174 free(key1); in test_algorithm()