MCPcopy
hub / github.com/writefreely/writefreely / InitKeys

Function InitKeys

keys.go:32–39  ·  view source on GitHub ↗

InitKeys loads encryption keys into memory via the given Apper interface

(apper Apper)

Source from the content-addressed store, hash-verified

30
31// InitKeys loads encryption keys into memory via the given Apper interface
32func InitKeys(apper Apper) error {
33 log.Info("Loading encryption keys...")
34 err := apper.LoadKeys()
35 if err != nil {
36 return err
37 }
38 return nil
39}
40
41func initKeyPaths(app *App) {
42 emailKeyPath = filepath.Join(app.cfg.Server.KeysParentDir, emailKeyPath)

Callers 1

InitializeFunction · 0.85

Calls 1

LoadKeysMethod · 0.65

Tested by

no test coverage detected