libp2p
    Preparing search index...

    Function keyStretcher

    • Generates a set of keys for each party by stretching the shared key. (myIV, theirIV, myCipherKey, theirCipherKey, myMACKey, theirMACKey)

      Parameters

      • cipherType: "AES-128" | "AES-256" | "Blowfish"
      • hash: "SHA1" | "SHA256" | "SHA512"
      • secret: Uint8Array

      Returns Promise<EnhancedKeyPair>