code: func (handle *ContextHandle) GenerateKey(session mPkcs11.SessionHandle, m []*mPkcs11.Mechanism, temp []*mPkcs11.Attribute) (mPkcs11.ObjectHandle, error) {
  
  	handle.lock.RLock()
  	defer handle.lock.RUnlock()
  
  	return handle.ctx.GenerateKey(session, m, temp)
  }
docs: //GenerateKey generates a secret key, creating a new key object.