func (c *Ctx) Finalize() error {
	if c.ctx == nil {
		return toError(CKR_CRYPTOKI_NOT_INITIALIZED)
	}
	e := C.Finalize(c.ctx)
	return toError(e)
}
Finalize indicates that an application is done with the Cryptoki library.
package pkcs11
import "C"
import "strings"
import "unsafe"
type Ctx struct {
	ctx *C.struct_ctx
}
func New(module string) *Ctx {
	c := new(Ctx)
	mod := C.CString(module)
	defer C.free(unsafe.Pointer(mod))
	c.ctx = C.New(mod)
	if c.ctx == nil {
		return nil
	}
	return c
}
func (c *Ctx) Destroy() {
	if c == nil || c.ctx == nil {
		return
	}
	C.Destroy(c.ctx)
	c.ctx = nil
}
func (c *Ctx) Initialize() error {
	e := C.Initialize(c.ctx)
	return toError(e)
}