()
| 179 | } |
| 180 | |
| 181 | func (m *Model) generatePrivateKey() tview.Cmd { |
| 182 | return func() tview.Msg { |
| 183 | privateKey, err := rsa.GenerateKey(rand.Reader, 2048) |
| 184 | if err != nil { |
| 185 | return newErrMsg(err) |
| 186 | } |
| 187 | return privateKeyMsg{privateKey: privateKey} |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | func (m *Model) sendInit() tview.Cmd { |
| 192 | return func() tview.Msg { |