Skip to content

Ed25519ph (prehashed) mechanism flag #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
totopr opened this issue Mar 6, 2025 · 3 comments
Open

Ed25519ph (prehashed) mechanism flag #131

totopr opened this issue Mar 6, 2025 · 3 comments

Comments

@totopr
Copy link

totopr commented Mar 6, 2025

Hi,

need to pass the following parameters to the EDDSA signing

typedef struct CK_EDDSA_PARAMS
{
     CK_BBOOL     phFlag;
     CK_ULONG     ulContextDataLen;
     CK_BYTE_PTR  pContextData; 
}

ref: https://thalesdocs.com/gphsm/luna/7/docs/network/Content/sdk/mechanisms/CKM_EDDSA.htm

but I'm not finding any way to do it. Is that supported?
mechanism = Mechanism(LowLevel.CKM_EDDSA, param=?)

thanks
Antonio

@LudovicRousseau
Copy link
Owner

CK_EDDSA_PARAMS is not defined or used in PyKCS11.

So I would say it is not yet supported. Patches are welcome.
It looks like CKM_EDDSA is supported by SoftHSM so implementation and tests in PyKCS11 should be possible.

@LudovicRousseau
Copy link
Owner

@totopr do you plan to propose a patch?

@gtx-ap
Copy link

gtx-ap commented Apr 7, 2025

Hello @LudovicRousseau,

sadly can't with the timeframe I have. there are other gaps I can't afford right now.
thanks
Antonio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants