code: func (handle *ContextHandle) GenerateKeyPair(session mPkcs11.SessionHandle, m []*mPkcs11.Mechanism, public, private []*mPkcs11.Attribute) (mPkcs11.ObjectHandle, mPkcs11.ObjectHandle, error) {
  
  	handle.lock.RLock()
  	defer handle.lock.RUnlock()
  
  	return handle.ctx.GenerateKeyPair(session, m, public, private)
  }
docs: // GenerateKeyPair generates a public-key/private-key pair creating new key objects.