[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT PATCH v4 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, 20 Nov 2019 12:12:54 +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=kuNuhzEkmzBMxLlx1pStmw9Ob1pjTS864Gy+ARD/tfQ=; b=ZWzluEGjLP5lgRw6t5PPWYx0BWjhNIREWPHmHBBwS1Z3UFpy3P8A+3scI08UVfITPG6soHcNLOM0qaP6NDPUpOt8nnWAI3In6dqsUmU+wZO5ROY1vVEHmW4ZxRKgL5iZHQyKL9YrwVLoC2Ht18gXeeaPkPfti/DbzXRHUMsSQ6Nu5EJK7eW9UHDZPQjvN90csNX3Oxj1P+vMAkP5/eCYMhrwbJDIVPkvKuFpNU+Q29ZRFPdD+TsppBKRy8dxPpc0VFW5Ns0aA3wV23yLY1o1sz0qV2W7+BG/CmX+u25TqpcLSrDpZbdGFdWiDzlr3H0gtdQ0p/X9Pl6wNNj7etaUOw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kj+ivpj5yPKh+LQZ98RUiTr132eUfkL9dENhLUOxzB8OJ1O73v7DhrIpOrMaRlAcMHKzRA8Lx4Fh3IBnDg6XEngGl+wOokBszJaCMnhbz9vOWSn950/pH56vLrP0OLdntDyOMm7DEPNTE9WaRPnx+ExaWPhT7r0OSd37CtoivVzSyhtxIPsaTsJ8OP99X/VgNYojvCycL8ZzMehCvzQiGsuatsu6ZZSieGP7anoD/Xpp9Ls9yn7546U6XxJkA3iGw/l4R1Q/I5dtSxD2ix3w1tvczW4f3yIGYRi6Nb2Ud9TeevQroX4zgfhOdIepnz+0W401Pc6owvAxjF88DD7FqQ==
- 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, 20 Nov 2019 12:13:01 +0000
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
- Thread-index: AQHVn5vW6fY+AT1Sv0qHy4JALymhsw==
- Thread-topic: [UNIKRAFT PATCH v4 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
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 | 158 +++++++++++++++++++++++++++++++
lib/ukswrand/exportsyms.uk | 1 +
lib/ukswrand/include/uk/swrand.h | 12 +--
lib/ukswrand/mwc.c | 51 +++-------
lib/ukswrand/swrand.c | 98 +++++++++++++++++++
7 files changed, 299 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
|