IETF-SSH archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

uint64



draft-ietf-secsh-architecture-07.txt defines the type uint64,

    uint64
      Represents a 64-bit unsigned integer.  Stored as eight bytes in
      the order of decreasing significance (network byte order).

It is currently used only from by the filexfer document, for file
sizes, offsets and the like.

I'd like to ask if we really need this type. The alternative is to use
mpint (or mpuint, if that is added) for any numbers that can be
expected to grow larger than an uint32.

All implementations can be expected to have a native uint32 and a
bignum type. They may or may not have an 64 bit integer type. By using
mpint, the protocol stays agnostic. An implementation will convert the
mpint value to its natural offset type (be that 32 bit, 64 bit, or
whatever), or return an appropriate error message if the number is too
big.

/Niels



Home | Main Index | Thread Index | Old Index