@oasisprotocol/sapphire-paratime
    Preparing search index...

    Class X25519DeoxysII

    A Cipher that derives a shared secret using X25519 and then uses DeoxysII for encrypting using that secret.

    This is the default cipher.

    Hierarchy (View Summary)

    Index
    ephemeralKey: Uint8Array
    epoch: number | undefined
    kind: X25519DeoxysII = CipherKind.X25519DeoxysII
    publicKey: Uint8Array
    secretKey: Uint8Array
    • Parameters

      • plaintext: Uint8Array
      • nonce: Uint8Array = ...

      Returns { ciphertext: Uint8Array; nonce: Uint8Array }

    • Parameters

      • Optionalok: Uint8Array<ArrayBufferLike>
      • OptionalinnerFail: string
      • OptionalouterFail: string

      Returns Uint8Array