• Preparing search index...
  • The search index is not available
libp2p
  • libp2p
  • @libp2p/crypto
  • keys
  • keyStretcher

Function keyStretcher

  • keyStretcher(cipherType, hash, secret): Promise<EnhancedKeyPair>
  • 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>

    • Defined in keys/key-stretcher.ts:31

Settings

Member Visibility

Theme

libp2p
  • Loading...

Generated using TypeDoc