]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1682: sodium encryption is not portable v9.0.1682
authorChristian Brabandt <cb@256bit.org>
Tue, 11 Jul 2023 20:38:29 +0000 (22:38 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 9 Aug 2023 19:35:38 +0000 (21:35 +0200)
commit6019fed0c50a31f0f9bb6c80e4e2b97d3f71565a
treed8aea2ec2d35915c9ac0271f27d25e1b50f4c7cc
parent92f076e53e22b467fb6d12051fec2d4bdbda88fe
patch 9.0.1682: sodium encryption is not portable

Problem: crypt: sodium encryption is not portable
Solution: use little-endian byte order for sodium encrypted files

As mentioned in #12586, sodium encryption only works on little ending
architectures, because reading and writing the sodium encryption
parameters are stored in the encrypted files in an arch-dependent way.

This of course fails for big-endian architectures like s390.

So make sure to use little-endian byte order when reading and writing
sodium encrypted files.

fixes: #12586
closes: 12655
src/crypt.c
src/version.c