DerWriter.writeInteger
void writeInteger(const(ubyte)[] value)Writes a DER-encoded INTEGER from raw signed big-endian bytes.
The encoding is normalized to the minimal DER representation: leading 0x00 bytes are stripped when the sign bit of the next byte is clear, and leading 0xFF bytes are stripped when the sign bit of the next byte is set.
Parameters
value | The signed big-endian integer bytes. |
void writeInteger(long value)Writes a DER-encoded INTEGER from a signed long value.
Parameters
value | The integer value to encode. |