Skip to content

Commit

Permalink
Adapt to latest mint
Browse files Browse the repository at this point in the history
  • Loading branch information
paaguti committed Dec 18, 2019
1 parent 83d06eb commit 9878a78
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/crypto/key_derivation.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ func computeKeyAndIV(tls TLSExporter, label string) (key, iv []byte, err error)
if err != nil {
return nil, nil, err
}
key = qhkdfExpand(secret, "key", cs.keyLen)
iv = qhkdfExpand(secret, "iv", cs.ivLen)
//
// cs.keyLen and cs.ivLen has disappeared from mint
//
key = qhkdfExpand(secret, "key", cs.Keys["key"])
iv = qhkdfExpand(secret, "iv", cs.Keys["iv"])
return key, iv, nil
}

0 comments on commit 9878a78

Please sign in to comment.