Marmot-TS
    Preparing search index...
    interface Hpke {
        keyLength: number;
        nonceLength: number;
        decryptAead(
            key: Uint8Array,
            nonce: Uint8Array,
            aad: Uint8Array<ArrayBufferLike> | undefined,
            ciphertext: Uint8Array,
        ): Promise<Uint8Array<ArrayBufferLike>>;
        deriveKeyPair(
            ikm: Uint8Array,
        ): Promise<{ privateKey: PrivateKey; publicKey: PublicKey }>;
        encryptAead(
            key: Uint8Array,
            nonce: Uint8Array,
            aad: Uint8Array<ArrayBufferLike> | undefined,
            plaintext: Uint8Array,
        ): Promise<Uint8Array<ArrayBufferLike>>;
        exportPrivateKey(k: PrivateKey): Promise<Uint8Array<ArrayBufferLike>>;
        exportPublicKey(k: PublicKey): Promise<Uint8Array<ArrayBufferLike>>;
        exportSecret(
            publicKey: PublicKey,
            exporterContext: Uint8Array,
            length: number,
            info: Uint8Array,
        ): Promise<{ enc: Uint8Array; secret: Uint8Array }>;
        generateKeyPair(): Promise<
            { privateKey: PrivateKey; publicKey: PublicKey },
        >;
        importPrivateKey(k: Uint8Array): Promise<PrivateKey>;
        importPublicKey(k: Uint8Array): Promise<PublicKey>;
        importSecret(
            privateKey: PrivateKey,
            exporterContext: Uint8Array,
            kemOutput: Uint8Array,
            length: number,
            info: Uint8Array,
        ): Promise<Uint8Array<ArrayBufferLike>>;
        open(
            privateKey: PrivateKey,
            kemOutput: Uint8Array,
            ciphertext: Uint8Array,
            info: Uint8Array,
            aad?: Uint8Array<ArrayBufferLike>,
        ): Promise<Uint8Array<ArrayBufferLike>>;
        seal(
            publicKey: PublicKey,
            plaintext: Uint8Array,
            info: Uint8Array,
            aad?: Uint8Array<ArrayBufferLike>,
        ): Promise<{ ct: Uint8Array; enc: Uint8Array }>;
    }
    Index
    keyLength: number
    nonceLength: number
    • Parameters

      • key: Uint8Array
      • nonce: Uint8Array
      • aad: Uint8Array<ArrayBufferLike> | undefined
      • ciphertext: Uint8Array

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      • ikm: Uint8Array

      Returns Promise<{ privateKey: PrivateKey; publicKey: PublicKey }>

    • Parameters

      • key: Uint8Array
      • nonce: Uint8Array
      • aad: Uint8Array<ArrayBufferLike> | undefined
      • plaintext: Uint8Array

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      • publicKey: PublicKey
      • exporterContext: Uint8Array
      • length: number
      • info: Uint8Array

      Returns Promise<{ enc: Uint8Array; secret: Uint8Array }>

    • Returns Promise<{ privateKey: PrivateKey; publicKey: PublicKey }>

    • Parameters

      • k: Uint8Array

      Returns Promise<PrivateKey>

    • Parameters

      • k: Uint8Array

      Returns Promise<PublicKey>

    • Parameters

      • privateKey: PrivateKey
      • exporterContext: Uint8Array
      • kemOutput: Uint8Array
      • length: number
      • info: Uint8Array

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      • privateKey: PrivateKey
      • kemOutput: Uint8Array
      • ciphertext: Uint8Array
      • info: Uint8Array
      • Optionalaad: Uint8Array<ArrayBufferLike>

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • Parameters

      • publicKey: PublicKey
      • plaintext: Uint8Array
      • info: Uint8Array
      • Optionalaad: Uint8Array<ArrayBufferLike>

      Returns Promise<{ ct: Uint8Array; enc: Uint8Array }>