Nitrokey / nethsm-pkcs11

PKCS#11 module for NetHSM
Other
36 stars 10 forks source link

Fix error throwing logic #205

Closed Alawaji214 closed 3 months ago

Alawaji214 commented 3 months ago

the condition before throwing Error::ObjectClassNotSupported check if the key classequal other AND public key on the same time which doesn't make sense and doesn't work for either case, the logic should be OR.

ansiwen commented 3 months ago

LGTM, good catch, thank you!