pkcs11
pkcs11 copied to clipboard
p11.Slot.Mechanisms seems inadequate substitute for pkcs11.Ctx.GetMechanismList
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?