Lines Matching refs:operation
115 ret->operation = EVP_PKEY_OP_UNDEFINED; in evp_pkey_ctx_new()
168 rctx->operation = pctx->operation; in EVP_PKEY_CTX_dup()
212 if (ctx->operation == EVP_PKEY_OP_UNDEFINED) { in EVP_PKEY_CTX_ctrl()
217 if (optype != -1 && !(ctx->operation & optype)) { in EVP_PKEY_CTX_ctrl()
231 ctx->operation = EVP_PKEY_OP_SIGN; in EVP_PKEY_sign_init()
237 ctx->operation = EVP_PKEY_OP_UNDEFINED; in EVP_PKEY_sign_init()
250 if (ctx->operation != EVP_PKEY_OP_SIGN) { in EVP_PKEY_sign()
262 ctx->operation = EVP_PKEY_OP_VERIFY; in EVP_PKEY_verify_init()
267 ctx->operation = EVP_PKEY_OP_UNDEFINED; in EVP_PKEY_verify_init()
280 if (ctx->operation != EVP_PKEY_OP_VERIFY) { in EVP_PKEY_verify()
292 ctx->operation = EVP_PKEY_OP_ENCRYPT; in EVP_PKEY_encrypt_init()
297 ctx->operation = EVP_PKEY_OP_UNDEFINED; in EVP_PKEY_encrypt_init()
309 if (ctx->operation != EVP_PKEY_OP_ENCRYPT) { in EVP_PKEY_encrypt()
321 ctx->operation = EVP_PKEY_OP_DECRYPT; in EVP_PKEY_decrypt_init()
326 ctx->operation = EVP_PKEY_OP_UNDEFINED; in EVP_PKEY_decrypt_init()
338 if (ctx->operation != EVP_PKEY_OP_DECRYPT) { in EVP_PKEY_decrypt()
350 ctx->operation = EVP_PKEY_OP_DERIVE; in EVP_PKEY_derive_init()
355 ctx->operation = EVP_PKEY_OP_UNDEFINED; in EVP_PKEY_derive_init()
369 if (ctx->operation != EVP_PKEY_OP_DERIVE && in EVP_PKEY_derive_set_peer()
370 ctx->operation != EVP_PKEY_OP_ENCRYPT && in EVP_PKEY_derive_set_peer()
371 ctx->operation != EVP_PKEY_OP_DECRYPT) { in EVP_PKEY_derive_set_peer()
426 if (ctx->operation != EVP_PKEY_OP_DERIVE) { in EVP_PKEY_derive()
438 ctx->operation = EVP_PKEY_OP_KEYGEN; in EVP_PKEY_keygen_init()
443 ctx->operation = EVP_PKEY_OP_UNDEFINED; in EVP_PKEY_keygen_init()
454 if (ctx->operation != EVP_PKEY_OP_KEYGEN) { in EVP_PKEY_keygen()