Fix nonce endianness