Lines Matching defs:key
327 unsigned char key[64] = {
353 /* siv cannot be called with NULL key as the iv is irrelevant */
357 * Skip init call with a null key for RC4 as the stream cipher does not
367 if (!TEST_true(EVP_EncryptInit_ex(ctx, cipher, NULL, key, iv))
369 || !TEST_true(EVP_EncryptInit_ex(ctx, NULL, NULL, key, iv))
418 static const unsigned char key[64] = {
453 if (!TEST_true(EVP_EncryptInit_ex(ctx, cipher, NULL, key, iv))
455 || !TEST_true(EVP_EncryptInit_ex(ctx, NULL, NULL, key, iv))
571 unsigned char key[24] = { 0 };
579 && TEST_int_gt(EVP_CIPHER_CTX_rand_key(ctx, key), 0);
611 /* Wrong key component - no secret should be returned on failure */
680 /* Fail if we try to use a dh key */
684 EVP_PKEY *key = NULL;
687 if (!TEST_ptr(key = gen_dh_key()))
690 if (!TEST_ptr(sctx = EVP_PKEY_CTX_new_from_pkey(libctx, key, NULL)))
697 EVP_PKEY_free(key);