Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @stablelib/x25519-session

Index

Functions

  • clientSessionKeys(myKeyPair: KeyPair, theirPublicKey: Uint8Array, hash?: new () => Hash): SessionKeys
  • Generates client-side session encryption keys. Uses a key pair and a peer's public key to generate the shared key.

    Parameters

    • myKeyPair: KeyPair
    • theirPublicKey: Uint8Array
    • hash: new () => Hash = BLAKE2b
        • new (): Hash
        • Returns Hash

    Returns SessionKeys

  • clientSessionKeysFromSharedKey(sharedKey: Uint8Array, myPublicKey: Uint8Array, theirPublicKey: Uint8Array, hash?: new () => Hash): SessionKeys
  • Generates client-side session encryption keys from the shared key obtained during agreement phase.

    Parameters

    • sharedKey: Uint8Array
    • myPublicKey: Uint8Array
    • theirPublicKey: Uint8Array
    • hash: new () => Hash = BLAKE2b
        • new (): Hash
        • Returns Hash

    Returns SessionKeys

  • serverSessionKeys(myKeyPair: KeyPair, theirPublicKey: Uint8Array, hash?: new () => Hash): SessionKeys
  • Generates server-side session encryption keys. Uses a key pair and a peer's public key to generate the shared key.

    Parameters

    • myKeyPair: KeyPair
    • theirPublicKey: Uint8Array
    • hash: new () => Hash = BLAKE2b
        • new (): Hash
        • Returns Hash

    Returns SessionKeys

  • serverSessionKeysFromSharedKey(sharedKey: Uint8Array, myPublicKey: Uint8Array, theirPublicKey: Uint8Array, hash?: new () => Hash): SessionKeys
  • Generates server-side session encryption keys from the shared key obtained during agreement phase.

    Parameters

    • sharedKey: Uint8Array
    • myPublicKey: Uint8Array
    • theirPublicKey: Uint8Array
    • hash: new () => Hash = BLAKE2b
        • new (): Hash
        • Returns Hash

    Returns SessionKeys

Generated using TypeDoc