Tag 3.1.1 fixes two bugs (#2393 and #2395) found in the endianness detection feature that was introduced in 3.1.0. An incorrect endianness may be inferred if the AEAD sequence number or asymmetric signature has the same byte layout when interpreted as a big or little endian value.