@opentdf/sdk
    Preparing search index...

    Type Alias DecryptRange

    Decrypt selected portions of ciphertext, given as a span of bytes of the decrypted data. Only the segments that hold it are fetched and decrypted (see planPlaintextRange), and the output is trimmed to exactly these bytes.

    As with Blob.slice(offset, offset + length), an offset equal to the size of the decrypted data gives empty output, and a span running past the end is cut short there. Unlike Blob.slice, negative values are rejected and an offset past the end throws.

    type DecryptRange = {
        length?: number;
        offset: number;
    }
    Index
    length?: number

    Number of bytes to return. Omit to read to the end of the decrypted data.

    offset: number

    First byte of the decrypted data to return. At most its size.