Skip to content

Commit

Permalink
ICSF: SC_IBM_ReencryptSingle is not supported
Browse files Browse the repository at this point in the history
Signed-off-by: Ingo Franzki <[email protected]>
  • Loading branch information
ifranzki authored and p-steuer committed Mar 30, 2021
1 parent 0e0442e commit 430e606
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions usr/lib/icsf_stdll/new_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -3271,6 +3271,13 @@ CK_RV SC_IBM_ReencryptSingle(STDLL_TokData_t *tokdata, ST_SESSION_T *sSession,
SESSION *sess = NULL;
CK_RV rc = CKR_OK;

UNUSED(hDecrKey);
UNUSED(hEncrKey);
UNUSED(pEncryptedData);
UNUSED(ulEncryptedDataLen);
UNUSED(pReencryptedData);
UNUSED(pulReencryptedDataLen);

if (tokdata->initialized == FALSE) {
TRACE_ERROR("%s\n", ock_err(ERR_CRYPTOKI_NOT_INITIALIZED));
rc = CKR_CRYPTOKI_NOT_INITIALIZED;
Expand Down Expand Up @@ -3310,12 +3317,7 @@ CK_RV SC_IBM_ReencryptSingle(STDLL_TokData_t *tokdata, ST_SESSION_T *sSession,
goto done;
}

rc = encr_mgr_reencrypt_single(tokdata, sess, &sess->decr_ctx, pDecrMech,
hDecrKey, &sess->encr_ctx, pEncrMech,
hEncrKey, pEncryptedData, ulEncryptedDataLen,
pReencryptedData, pulReencryptedDataLen);
if (rc != CKR_OK)
TRACE_DEVEL("encr_mgr_reencrypt_single() failed.\n");
rc = CKR_FUNCTION_NOT_SUPPORTED;

done:
TRACE_INFO("SC_IBM_ReencryptSingle: rc = 0x%08lx, sess = %ld, "
Expand Down

0 comments on commit 430e606

Please sign in to comment.