[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT PATCH v5 0/4] lib/ukswrand: Add ChaCha20
- To: "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
- From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Date: Wed, 27 Nov 2019 12:41:47 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oD4VwO7pHHumjQGkoSv+Q0sfqfFnDaf9ltBPCmnczWA=; b=XP1rE6PWFWKBq4gYkOrINwg246QhgkBdU/8Ql6DZlNkqIXNMRX+VHT8Bvax7/oafivkFBE2FHRXfv9pJDiOyspIWtn4tlMujb1Z1j1iDDwpDsN+4x8l2PlfhS77vfqzJSQv/1kWayZwwnTHYthl27PIAHJz34MWRhaqVZYzJPFTEj9G6X9JRfN8IIzqKTyX4EeNi8Sr9sfs42P89ENTtC3bfGIU04XnDRj0Y+dCqJtxohQ/vPX5QSRIVDhEfCwn0xqv8Rdf+No371Qlod9iLc8ONgPIisFHBWk57Wa8Jwitj176GrEAqeCHvnfotSC53BlLQAPQK/9/5bKXeWAW5Zg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MZq0J2ltJ5oPhp0v72P70ySaMso479FabtuK2/unyea2i6tkOjTesQPDuCSvzlcaL+JAotA4hkpV8DPENaM6WGSogYrSruNUHuNliw1S9XZGRqiLkVMwk+d2+haEnq7UGCFgrN+ZukFTOMTBJs02RjHZxdjkpkQuo7a446VxyUiT8FqJzXD60Z7Af1agul0PzkJpaQreyVx4wNfyt0n2QdEaqzUaDVY3qGfu+Esmiytkaz7flABqGuO3JIwPHH0FM/DGh2OsmAKdMpsfAzb1UIGNrb/hUeGGRgjqmzd56qd49HUKENP08nWepMbP9wn+ltGs5P+IW8XzM2btHmV8ig==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
- Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>, "simon.kuenzer@xxxxxxxxx" <simon.kuenzer@xxxxxxxxx>, Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Delivery-date: Wed, 27 Nov 2019 12:41:55 +0000
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
- Thread-index: AQHVpSAI2hrjIX6tj0e6hGQSKhzysg==
- Thread-topic: [UNIKRAFT PATCH v5 0/4] lib/ukswrand: Add ChaCha20
We add the ChaCha20 algorithm. This patch series refactors the
existing code for multiple algorithms support.
Changes since v2:
* Moved _uk_rotl32 to chacha.c
* Moved the constructor and _get_random_seed32 to swrand.c
* Added compile check for rdrand
* Changed to drop-down menu in config.
Changes since v3:
* Extend the seed argument at the init function with a custom sized vector
* Renamed _get_random_seed() to uk_swrandr_gen_seed32() which is now
public
Changes since v4:
* Resolve checkpatch errors
Vlad-Andrei BĂDOIU (78692) (4):
lib/ukswrand: Adapt the library to work with multiple algorithms
lib/ukswrand: Add seed generating function
lib/ukswrand: Add ChaCha algorithm
lib/ukswrand: Fix uk_swrand_fill_buffer to fill the entire buffer
lib/ukswrand/Config.uk | 29 +++++-
lib/ukswrand/Makefile.uk | 2 +
lib/ukswrand/chacha.c | 160 +++++++++++++++++++++++++++++++
lib/ukswrand/exportsyms.uk | 1 +
lib/ukswrand/include/uk/swrand.h | 13 +--
lib/ukswrand/mwc.c | 52 +++-------
lib/ukswrand/swrand.c | 98 +++++++++++++++++++
7 files changed, 303 insertions(+), 52 deletions(-)
create mode 100644 lib/ukswrand/chacha.c
create mode 100644 lib/ukswrand/swrand.c
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|