Lines Matching refs:pkey_op
25 char *passinarg, int pkey_op, ENGINE *e);
27 int pkey_op, ENGINE *e,
36 static int do_keyop(EVP_PKEY_CTX *ctx, int pkey_op,
41 static int do_raw_keyop(int pkey_op, EVP_MD_CTX *mctx,
140 int keysize = -1, pkey_op = EVP_PKEY_OP_SIGN, key_type = KEY_PRIVKEY; in pkeyutl_main() local
229 pkey_op = EVP_PKEY_OP_SIGN; in pkeyutl_main()
232 pkey_op = EVP_PKEY_OP_VERIFY; in pkeyutl_main()
235 pkey_op = EVP_PKEY_OP_VERIFYRECOVER; in pkeyutl_main()
238 pkey_op = EVP_PKEY_OP_ENCRYPT; in pkeyutl_main()
241 pkey_op = EVP_PKEY_OP_DECRYPT; in pkeyutl_main()
244 pkey_op = EVP_PKEY_OP_DERIVE; in pkeyutl_main()
247 pkey_op = EVP_PKEY_OP_DECAPSULATE; in pkeyutl_main()
250 pkey_op = EVP_PKEY_OP_ENCAPSULATE; in pkeyutl_main()
256 pkey_op = EVP_PKEY_OP_DERIVE; in pkeyutl_main()
311 } else if (peerkey != NULL && pkey_op != EVP_PKEY_OP_DERIVE) { in pkeyutl_main()
317 pkey = get_pkey(kdfalg, inkey, keyform, key_type, passinarg, pkey_op, e); in pkeyutl_main()
319 if (pkey_op == EVP_PKEY_OP_VERIFYRECOVER && !EVP_PKEY_is_a(pkey, "RSA")) { in pkeyutl_main()
324 if (pkey_op == EVP_PKEY_OP_SIGN || pkey_op == EVP_PKEY_OP_VERIFY) { in pkeyutl_main()
350 ctx = init_ctx(kdfalg, &keysize, pkey_op, e, engine_impl, rawin, pkey, in pkeyutl_main()
425 if (sigfile != NULL && (pkey_op != EVP_PKEY_OP_VERIFY)) { in pkeyutl_main()
431 if (sigfile == NULL && (pkey_op == EVP_PKEY_OP_VERIFY)) { in pkeyutl_main()
437 if (pkey_op != EVP_PKEY_OP_DERIVE && pkey_op != EVP_PKEY_OP_ENCAPSULATE) { in pkeyutl_main()
452 if (pkey_op == EVP_PKEY_OP_ENCAPSULATE) { in pkeyutl_main()
500 && (pkey_op == EVP_PKEY_OP_SIGN || pkey_op == EVP_PKEY_OP_VERIFY)) { in pkeyutl_main()
509 if (pkey_op == EVP_PKEY_OP_VERIFY) { in pkeyutl_main()
511 rv = do_raw_keyop(pkey_op, mctx, pkey, in, filesize, sig, siglen, in pkeyutl_main()
527 rv = do_raw_keyop(pkey_op, mctx, pkey, in, filesize, NULL, 0, in pkeyutl_main()
534 rv = do_keyop(ctx, pkey_op, NULL, (size_t *)&buf_outlen, in pkeyutl_main()
541 rv = do_keyop(ctx, pkey_op, in pkeyutl_main()
547 if (pkey_op != EVP_PKEY_OP_DERIVE) { in pkeyutl_main()
590 char *passinarg, int pkey_op, ENGINE *e) in get_pkey() argument
596 if (((pkey_op == EVP_PKEY_OP_SIGN) || (pkey_op == EVP_PKEY_OP_DECRYPT) in get_pkey()
597 || (pkey_op == EVP_PKEY_OP_DERIVE)) in get_pkey()
632 int pkey_op, ENGINE *e, in init_ctx() argument
679 switch (pkey_op) { in init_ctx()
692 switch (pkey_op) { in init_ctx()
760 static int do_keyop(EVP_PKEY_CTX *ctx, int pkey_op, in do_keyop() argument
767 switch (pkey_op) { in do_keyop()
802 static int do_raw_keyop(int pkey_op, EVP_MD_CTX *mctx, in do_raw_keyop() argument
820 switch (pkey_op) { in do_raw_keyop()
845 switch (pkey_op) { in do_raw_keyop()