diff -up opencryptoki-3.22.0/usr/lib/ep11_stdll/ep11_specific.c.me opencryptoki-3.22.0/usr/lib/ep11_stdll/ep11_specific.c --- opencryptoki-3.22.0/usr/lib/ep11_stdll/ep11_specific.c.me 2024-02-07 16:49:05.669151975 +0100 +++ opencryptoki-3.22.0/usr/lib/ep11_stdll/ep11_specific.c 2024-02-07 16:53:00.721310320 +0100 @@ -9552,10 +9552,12 @@ CK_RV ep11tok_decrypt_final(STDLL_TokDat rc = constant_time_select(constant_time_eq(rc, CKR_OK), ep11_error_to_pkcs11_error(rc, session), rc); - if (rc != CKR_OK) { - TRACE_ERROR("%s rc=0x%lx\n", __func__, rc); - } else { - TRACE_INFO("%s rc=0x%lx\n", __func__, rc); + if (!is_rsa_mechanism(ctx->mech.mechanism)) { + if (rc != CKR_OK) { + TRACE_ERROR("%s rc=0x%lx\n", __func__, rc); + } else { + TRACE_INFO("%s rc=0x%lx\n", __func__, rc); + } } done: @@ -9747,12 +9749,10 @@ CK_RV ep11tok_decrypt_single(STDLL_TokDa rc = constant_time_select(constant_time_eq(rc, CKR_OK), ep11_error_to_pkcs11_error(rc, session), rc); - if (!is_rsa_mechanism(ctx->mech.mechanism)) { - if (rc != CKR_OK) { - TRACE_ERROR("%s rc=0x%lx\n", __func__, rc); - } else { - TRACE_INFO("%s rc=0x%lx\n", __func__, rc); - } + if (rc != CKR_OK) { + TRACE_ERROR("%s rc=0x%lx\n", __func__, rc); + } else { + TRACE_INFO("%s rc=0x%lx\n", __func__, rc); } done: