Lines Matching defs:key
201 unsigned char key[TEST_RC4_KEY_SIZE];
205 static int test_rc4_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
215 memcpy(&test(ctx)->key[0], key, n);
216 RC4_set_key(&test(ctx)->ks, n, test(ctx)->key);
422 EVP_PKEY *key;
423 fprintf(stderr, "(TEST_ENG_OPENSSL_PKEY)Loading Private key %s\n",
428 key = PEM_read_bio_PrivateKey(in, NULL, 0, NULL);
430 return key;
445 ASN1_OCTET_STRING ktmp; /* Temp storage for key */
561 ASN1_OCTET_STRING *key;
577 key = EVP_PKEY_get0(pk);
578 if (!HMAC_Init_ex(hctx->ctx, key->data, key->length, hctx->md, NULL))
595 if (strcmp(type, "key") == 0) {
600 unsigned char *key;
603 key = OPENSSL_hexstr2buf(value, &keylen);
604 if (!key)
606 r = ossl_hmac_ctrl(ctx, EVP_PKEY_CTRL_SET_MAC_KEY, keylen, key);
607 OPENSSL_free(key);