derDecodeLength

fnsize_t derDecodeLength(const(ubyte)[] data, out size_t bytesRead)

Decodes a DER-encoded length from the start of a byte buffer.

Parameters

dataThe buffer to read from (starting at the length field).
bytesReadSet to the total number of bytes consumed (including the initial byte).

Returns

The decoded length value.

Throws

CryptoException on malformed or truncated input.