Lines Matching refs:sigkey
98 EVP_PKEY *sigkey = NULL; in dgst_main() local
284 sigkey = load_pubkey(keyfile, keyform, 0, NULL, e, "public key"); in dgst_main()
286 sigkey = load_key(keyfile, keyform, 0, passin, e, "private key"); in dgst_main()
287 if (sigkey == NULL) { in dgst_main()
293 type = EVP_PKEY_get_id(sigkey); in dgst_main()
321 sigkey = app_keygen(mac_ctx, mac_name, 0, 0 /* not verbose */); in dgst_main()
324 if (sigkey == NULL) in dgst_main()
333 sigkey = EVP_PKEY_new_raw_private_key(EVP_PKEY_HMAC, impl, in dgst_main()
336 if (sigkey == NULL) in dgst_main()
340 if (sigkey != NULL) { in dgst_main()
353 app_get0_propq(), sigkey, NULL); in dgst_main()
355 res = EVP_DigestVerifyInit(mctx, &pctx, md, impl, sigkey); in dgst_main()
360 app_get0_propq(), sigkey, NULL); in dgst_main()
362 res = EVP_DigestSignInit(mctx, &pctx, md, impl, sigkey); in dgst_main()
394 if (sigfile != NULL && sigkey != NULL) { in dgst_main()
401 siglen = EVP_PKEY_get_size(sigkey); in dgst_main()
431 if (sigkey != NULL) { in dgst_main()
439 ret = do_fp(out, buf, inp, separator, out_bin, xoflen, sigkey, sigbuf, in dgst_main()
445 if (sigkey != NULL) in dgst_main()
446 sig_name = EVP_PKEY_get0_type_name(sigkey); in dgst_main()
456 sigkey, sigbuf, siglen, sig_name, md_name, argv[i])) in dgst_main()
470 EVP_PKEY_free(sigkey); in dgst_main()