derDecodeLength
fn
size_t derDecodeLength(const(ubyte)[] data, out size_t bytesRead)Decodes a DER-encoded length from the start of a byte buffer.
Parameters
data | The buffer to read from (starting at the length field). |
bytesRead | Set to the total number of bytes consumed (including the initial byte). |
Returns
The decoded length value.
Throws
CryptoException on malformed or truncated input.