Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2018 21:59:58 +0300
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        freebsd-hackers@FreeBSD.org, freebsd-security@freebsd.org
Subject:   =?UTF-8?Q?cryptodev_/_softcrypto_=e2=80=94_are_here_any_plans_to_cl?= =?UTF-8?Q?eanup_it=3f?=
Message-ID:  <e7cbc29c-2095-00e0-76cd-b2bfe5598a5a@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--SlhqVpYD81pXqqbuVsGylhY9yPEmNDF0y
Content-Type: multipart/mixed; boundary="rlo8v78kM9GO3VaQA0xO1kGEI5BitlY2L";
 protected-headers="v1"
From: Lev Serebryakov <lev@FreeBSD.org>
Reply-To: lev@FreeBSD.org
To: freebsd-hackers@FreeBSD.org, freebsd-security@freebsd.org
Message-ID: <e7cbc29c-2095-00e0-76cd-b2bfe5598a5a@FreeBSD.org>
Subject: =?UTF-8?Q?cryptodev_/_softcrypto_=e2=80=94_are_here_any_plans_to_cl?=
 =?UTF-8?Q?eanup_it=3f?=

--rlo8v78kM9GO3VaQA0xO1kGEI5BitlY2L
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable


 To be honest, I'm surprised by inconsistency of our kernel crypto
infrastructure.

  "struct enc_xform" contains context size, but "struct auth_hash" doesn'=
t.

  Memory management is different for auth algorithms and encryption
algorithms.

  There is Setkey for auth algorithms, but it is mostly unused.

  There is no way to re-key encryption without re-allocating context
("key" or "schedule", even naming is not consistent). Ouch.

  As I could see by commits, there was some simplifications , but,
maybe, here is project to cleanup this subsystem?

--=20
// Lev Serebryakov


--rlo8v78kM9GO3VaQA0xO1kGEI5BitlY2L--

--SlhqVpYD81pXqqbuVsGylhY9yPEmNDF0y
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE+W0coLX0MYtnSzMK6rA8WL/cR48FAlvGNS5fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY5
NkQxQ0EwQjVGNDMxOEI2NzRCMzMwQUVBQjAzQzU4QkZEQzQ3OEYACgkQ6rA8WL/c
R4+ZQA//VPjxdBD+p55GXyLyDUDcGes/AQ0hmoZM29LluvoolQeWTmP23YfGkXv6
11uE4F/lGy0WCGFok24MVwtjMwS8RuDuTuIfahelZYJQc0IReImab4DP8KR+x23h
tqi0oUj+iunMSebLHFTNEtu0yqoKKBtjWJo24afn9gAyLisxit2s+U9wfqzFxUIO
fSf9HOlMJSmHBrSQg919Hs/QDlL1+QxiKLP2V8aeu6kCrhYao/bqYwHFW/BokYUk
R6m2FcgoiNupRM6P4V/gk3qGIRyaRj0V5/MZSK87a5grLKqLkbjoIeXzbX3TS0p8
zTa90fDSB0GGDkw/k4GbHsKkt0d+eRZbm+krTnCGd3NhZ+ByM9/WC8OjMLW9lBUU
FRDsQyJPowYvpmL7m3nnGN+i+h7PbkemypuRw4ZQ+py/Fha0acFq6ef8NVJnIzN1
ZEHZjdjyFVzv4CAE5G0FLSo2za4pMw3BczPr9unyxSyPytYBR6LzuEZLWcmcVQ+2
HAAuiS/8vcpWHz8tDTrFubAgpQP2so0930UQM31mqKxIq75o4ckZVRdvmmvgiTv/
eW8kDFT5tDLSLUPVbvKuwB4VnSKE6YKypeylVXNwq75V4ln3HgrYZ6HXhkr+eNUg
ypERNwkG7wVFIQcjyYhisXJ3n6oyecjA3KPFtYugFgneGu/vUN4=
=Feid
-----END PGP SIGNATURE-----

--SlhqVpYD81pXqqbuVsGylhY9yPEmNDF0y--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e7cbc29c-2095-00e0-76cd-b2bfe5598a5a>