From 684f93e6a096a5761830d02313820d0b4f5ade9d Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Sat, 5 Aug 2023 13:50:16 -0400 Subject: [PATCH] fix endianness --- veilid-flutter/lib/veilid_crypto.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/veilid-flutter/lib/veilid_crypto.dart b/veilid-flutter/lib/veilid_crypto.dart index 665942ca..a1417cf3 100644 --- a/veilid-flutter/lib/veilid_crypto.dart +++ b/veilid-flutter/lib/veilid_crypto.dart @@ -13,9 +13,9 @@ import 'veilid.dart'; typedef CryptoKind = int; const CryptoKind cryptoKindVLD0 = - $V << 0 | $L << 8 | $D << 16 | $0 << 24; // "VLD0" + $V << 24 | $L << 16 | $D << 8 | $0 << 0; // "VLD0" const CryptoKind cryptoKindNONE = - $N << 0 | $O << 8 | $N << 16 | $E << 24; // "NONE" + $N << 24 | $O << 16 | $N << 8 | $E << 0; // "NONE" String cryptoKindToString(CryptoKind kind) => cryptoKindToBytes(kind).map(String.fromCharCode).join();