pkcs11 icon indicating copy to clipboard operation
pkcs11 copied to clipboard

p11.Slot.Mechanisms seems inadequate substitute for pkcs11.Ctx.GetMechanismList

Open JeremyRand opened this issue 3 years ago • 0 comments

It looks like p11.Slot.Mechanisms is intended to be the high-level equivalent of pkcs11.Ctx.GetMechanismList. However, it's not clear to me how this can work in practice. p11.Slot.Mechanisms returns a slice of p11.Mechanism, which has no exported fields and only one exported method (Info, which returns a pkcs11.MechanismInfo). The data in the underlying pkcs11.Mechanism is not exported AFAICT. Am I missing something? Shouldn't there be some exported field/method to access the data that's currently in the unexported p11.Mechanism.mechanism field?

JeremyRand avatar May 01 '22 01:05 JeremyRand