Here is some part of my code

I already encrypt some text from another app VB.net via RSACryptoProvider

But I stuck at the step to decrypt in C.

Here is my code.

```
static CK_RV usePrivateKeytoDecrypt(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject) {
CK_RV rv = CKR_OK;
CK_MECHANISM mechanism = {
    {CKM_RSA_PKCS_OAEP}
};

rv = C_DecryptInit(hSession, &mechanism, hObject);

return rv;

```

}

The code is not completed. I try to debug and got the error CKR\_MECHANISM\_PARAM\_INVALID

Please help. Thanks