pdf-lite - v1.0.1
    Preparing search index...

    Function aes128cbcDecrypt

    • Decrypts data using AES-128-CBC mode.

      Parameters

      • key: ByteArray

        The 16-byte decryption key.

      • encrypted: ByteArray

        The encrypted data to decrypt.

      • iv: ByteArray = ...

        The 16-byte initialization vector. Defaults to zero IV.

      Returns Promise<ByteArray>

      A promise that resolves to the decrypted data.

      Error if the key is not exactly 16 bytes or encrypted data is too short.

      const decrypted = await aes128cbcDecrypt(key, ciphertext, iv)