mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2026-08-18 15:03:28 +08:00
Merge pull request #62 from libp2p/mgoelzer-keystretcher-comment
Comment that KeyStretcher() is pending deprecation
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user