Skip to content

Commit

Permalink
zero: derive signing key first thing (#4631)
Browse files Browse the repository at this point in the history
  • Loading branch information
wasaga committed Oct 20, 2023
1 parent 91189dc commit b027da9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/zero/bootstrap/new.go
Expand Up @@ -43,14 +43,14 @@ func New(secret []byte) (*Source, error) {

rnd := hkdf.New(sha256.New, secret, nil, nil)

cipher, err := initCipher(rnd)
err = initSecrets(cfg, rnd)
if err != nil {
return nil, fmt.Errorf("init cypher: %w", err)
return nil, fmt.Errorf("init secrets: %w", err)
}

err = initSecrets(cfg, rnd)
cipher, err := initCipher(rnd)
if err != nil {
return nil, fmt.Errorf("init secrets: %w", err)
return nil, fmt.Errorf("init cypher: %w", err)
}

svc := &Source{
Expand Down

0 comments on commit b027da9

Please sign in to comment.