Lines Matching defs:key
41 struct fake_rsa_keydata *key;
43 if (!TEST_ptr(key = OPENSSL_zalloc(sizeof(struct fake_rsa_keydata))))
52 return key;
60 static int fake_rsa_keymgmt_has(const void *key, int selection)
82 /* key was imported */
214 struct fake_rsa_keydata *key = NULL;
216 if (reference_sz != sizeof(*key))
219 key = *(struct fake_rsa_keydata **)reference;
220 if (key->status != 1)
226 return key;
317 /* we must have some initialized key */
409 struct fake_rsa_keydata *key = NULL;
414 /* Construct a new key using our keymgmt functions */
415 if (!TEST_ptr(key = fake_rsa_keymgmt_new(NULL)))
417 if (!TEST_int_gt(fake_rsa_keymgmt_import(key, 0, NULL), 0))
424 /* The address of the key becomes the octet string */
427 &key, sizeof(*key));
445 fake_rsa_keymgmt_free(key);
455 /* just one key for now in the fake_rsa store */