[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT PATCH v4 0/4] lib/ukswrand: Add ChaCha20


  • To: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>, "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Mon, 25 Nov 2019 14:03: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=NcDLC1l1xc7b7vsGf0RwqM9SuQ6klXgqsSa8qw8ZD04=; b=UbHPZtk9q1hlnuBiNCAC+ycRPLPbZfxieRHZQ9XcWwqccuu9EYQHp2fdF31v4pdsmz9Go8HpfzffOTmVJ9xVTA2Gq48VER3LLIaYs6IiArxvcjRY3OTf4tkTQjgfhUZdYE4VWmhtoDuSPWzPSBwC4QeqjryxfImK6Uai+rRuYcmam2/mthyUUCUBXbEZsK4OEde0AtyLNt9FJTZw5UmFPRum/R0j3Wd6Q1bemBH5959PeDmIzsEWplH2SmUkrMIAE/76lWsYEleKRKLOZ6ZoU4tp8vr/VTtz6I065aXMCdp3e/u5xJY5+KP9tev8zt1mu78DJXPDS43e+9CbhHUyIg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V3JjYFPi9FtC4V5nCPN0W98UJ74g5dSO5PgB4xrh9kKA7oFMZwmxBgVf6ayP9c+CsNnaPzRmrYldlF6t7izN2vtqwB4MnIhXk8f6Rh3ARDn3fKrkNuNhJdyIrCaGrrJwOzVMG2s7bfF4gUHP+rj/XqfBpUACfUTphRz7hdQ01ovFab3h/eiawB91kvTaauS4utsDQAY4x7CjfO6w3Q2KzRjMGmRG75B6WweqgsfI0VCBd2FTMGf32lg+VDQeyTJERjhxFDoMUfhQJuambCb8c0e8JijnwfJAR5uk02y5VrytfoZTX76tlAS/Qj7LGQKItSIIPorMaVU891V3VApNqg==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "felipe.huici@xxxxxxxxx" <felipe.huici@xxxxxxxxx>
  • Delivery-date: Mon, 25 Nov 2019 14:04:03 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVn5vW6fY+AT1Sv0qHy4JALymhs6eb2RYAgAAaBwA=
  • Thread-topic: [UNIKRAFT PATCH v4 0/4] lib/ukswrand: Add ChaCha20

Hey Simon,

I'll send a v5 with the checkpath errors fixed. I agree that we should 
look into uk_swrandr_init_r() after SMP support is available in Unikraft.

Thanks,

Vlad

On 25.11.2019 14:30, Simon Kuenzer wrote:
> Hey Vlad,
>
> thanks a lot for your work. The patch series looks fine. There are 
> only a couple if checkpatch formatting issues: lines over 80 
> characters and wrong indention. If you fix those, I will take your 
> series.
>
> I noticed that we need a follow-up patch (series). After your series, 
> it is not possible anymore to initialize own random number generator 
> instances with uk_swrandr_init_r(): The size of struct uk_swrand is 
> unknown to the API user. There is no way to reserve or allocate memory 
> for it. However, I would postpone the fix for this to a separate patch 
> series. It is currently non critical but it is something to keep in 
> mind. Maybe we may want it back to initialize instances per CPU core 
> when having SMP support.
>
> Thanks,
>
> Simon
>
> On 20.11.19 13:12, Vlad-Andrei BĂDOIU (78692) wrote:
>> 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
>>
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.