Closed raphaelahrens closed 2 months ago
If there is no reason for using big endian for the len() function, would it not be better to reuse the LE64 function from pasetos PAE? Since it is already in use.
len()
LE64 also is considering environments like the JVM where they have no unsigned ints.
https://github.com/fedi-e2ee/public-key-directory-specification/blob/c1e47e5da487e9f348a270e6fcb9de63dfad5055/Specification.md?plain=1#L1106-L1107
That's an excellent point. We should be consistent.
I have no personal preference on endian-ness, but if PASETO uses little-endian, we should probably just standardize on that.
If there is no reason for using big endian for the
len()
function, would it not be better to reuse the LE64 function from pasetos PAE? Since it is already in use.LE64 also is considering environments like the JVM where they have no unsigned ints.
https://github.com/fedi-e2ee/public-key-directory-specification/blob/c1e47e5da487e9f348a270e6fcb9de63dfad5055/Specification.md?plain=1#L1106-L1107