You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're trying to use this proxy (thanks for the work!) together with SoftHSMv2 and Graphene to encrypt using AES GCM. We started by patching the following files to allow for AES GCM support:
However, that yields a segfault in libsofthsm2.so at this spot. Probably it's the access of CK_GCM_PARAMS_PTR(pMechanism->pParameter)->pIv that's failing here.
Judging from the implementation we're calling C_EncryptInit with the following mechanism parameters:
We're trying to use this proxy (thanks for the work!) together with SoftHSMv2 and Graphene to encrypt using AES GCM. We started by patching the following files to allow for AES GCM support:
CKM_AES_GCM:
ingck-rpc-util.c
#define CKM_AES_GCM (0x1087UL)
inpkcs11/pkcs11.h
However, that yields a segfault in
libsofthsm2.so
at this spot. Probably it's the access ofCK_GCM_PARAMS_PTR(pMechanism->pParameter)->pIv
that's failing here.Judging from the implementation we're calling
C_EncryptInit
with the following mechanism parameters:Can you/somebody give any advice or help on how we can fix or at least debug this issue?
The text was updated successfully, but these errors were encountered: