]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 348206,348231,348454: GELI crypto deprecation warnings.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 3 Jun 2019 21:03:28 +0000 (21:03 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 3 Jun 2019 21:03:28 +0000 (21:03 +0000)
commitb7588f70992cdd61e74116c796cda011287a3dbb
tree15063780457bd3c5e486fdf5efb79963f82bba33
parent0eb2bd708b70ee140f8d7b6afe4780886d5bd608
MFC 348206,348231,348454: GELI crypto deprecation warnings.

348206:
Add deprecation warnings for weaker algorithms to geli(4).

- Triple DES has been formally deprecated in Kerberos (RFC 8429)
  and is soon to be deprecated in IPsec (RFC 8221).
- Blowfish is deprecated.  FreeBSD doesn't support its successor
  (Twofish).
- MD5 is generally considered a weak digest that has known attacks.

geli refuses to create new volumes using these algorithms via 'geli
init'.  It also warns when attaching to existing volumes or creating
temporary volumes via 'geli onetime' .  The plan is to fully remove
support for these algorithms in FreeBSD 13.

Note that none of these algorithms have ever been the default
algorithm used by geli(8).  Users would have had to explicitly select
these algorithms when creating volumes in the past.

348231:
Correct the argument passed to g_eli_algo2str()

348454:
Remove tests for the deprecated algorithms in r348206

The tests are failing because the return value and output have changed, but
before test code structure adjusted, removing these test cases help people
be able to focus on more important cases.

Relnotes: yes
lib/geom/eli/geli.8
lib/geom/eli/geom_eli.c
sys/geom/eli/g_eli.c
tests/sys/geom/class/eli/conf.sh
tests/sys/geom/class/eli/init_test.sh