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
Thanks, this calls for retaining at time of creation, liked to the private key, a public key object.
One way could be to add a "linked" attribute as part of the P11PROV_OBJ that simply is a pointer to the corresponding generated public key object. The other way would be to always use indirection via a "key-pair" structure that always point to two objects (a public and a private one. Either of these options have good and bad sides, but the latter would probably be a lot more invasive to handle.
One tricky part is to ensure memory consistency on releasing of objects, but that can be handled somewhat easily via ref counting we already have for these objects.
The other issue is making sure that everywhere in the code we get the right object without having to special case each call. A getter pattern that requires the key type might be used to deal with the indirection as needed automatically, but will be a somewhat invasive patch to do this right.
Describe the bug
EVP_PKEY_verify
returns error when using with generatedEVP_PKEY
To Reproduce
Additional context
Generated
EVP_PKEY
contains onlyP11PROV_OBJ
private keyThe text was updated successfully, but these errors were encountered: