Merge pull request #62 from libp2p/mgoelzer-keystretcher-comment

Comment that KeyStretcher() is pending deprecation
This commit is contained in:
Steven Allen
2019-09-30 10:08:43 -07:00
committed by GitHub

View File

@@ -181,6 +181,8 @@ type StretchedKeys struct {
CipherKey []byte
}
// PENDING DEPRECATION: KeyStretcher() will be deprecated with secio; for new
// code, please use PBKDF2 (golang.org/x/crypto/pbkdf2) instead.
// KeyStretcher returns a set of keys for each party by stretching the shared key.
// (myIV, theirIV, myCipherKey, theirCipherKey, myMACKey, theirMACKey).
// This function accepts the following cipher types: