mirror of
https://github.com/monero-project/monero.git
synced 2026-01-19 02:52:57 +01:00
mnemonics: fix words_to_bytes on big endian
This commit is contained in:
@@ -335,6 +335,7 @@ namespace crypto
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
w[0] = SWAP32LE(w[0]);
|
||||||
dst.append((const char*)&w[0], 4); // copy 4 bytes to position
|
dst.append((const char*)&w[0], 4); // copy 4 bytes to position
|
||||||
memwipe(w, sizeof(w));
|
memwipe(w, sizeof(w));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user