pkcs11
pkcs11 copied to clipboard
p11: Add Mechanism.Type() and Mechanism.Parameter()
I chose to add 2 methods instead of exporting the pkcs11.Mechanism because this way the calling code is less verbose, i.e. mechanism.Type() instead of mechanism.Mechanism.Mechanism.
Fixes https://github.com/miekg/pkcs11/issues/158