decodeUnsignedInteger

fnubyte[] decodeUnsignedInteger(const(ubyte)[] content) pure @safe

Decodes DER INTEGER content bytes to an unsigned big-endian representation.

Strips any leading 0x00 sign-padding byte(s).

Parameters

contentThe DER INTEGER content bytes.

Returns

The unsigned big-endian bytes.