[PATCH] Add Ed25519 keys support

Vladislav Grishenko themiron.ru at gmail.com
Sun Apr 26 08:53:40 AWST 2020


Hi, Matt

 

Thank you very much for merging.

There’s additional minor patch https://github.com/mkj/dropbear/pull/94 that adds Ed25519 mentions in dropbearkey.1 man.

 

Best Regards, Vladislav Grishenko

 

From: Matt Johnston <matt at ucc.asn.au> 
Sent: Wednesday, March 11, 2020 9:16 PM
To: Vladislav Grishenko <themiron.ru at gmail.com>
Cc: dropbear at ucc.asn.au
Subject: Re: [PATCH] Add Ed25519 keys support

 

Thank you Vladislav, I've merged this now via github, https://secure.ucc.asn.au/hg/dropbear/rev/d32bcb5c557d

 

It's a nice clean and thorough implementation.

 

Cheers,

Matt 

 





On Fri 6/3/2020, at 10:45 pm, Vladislav Grishenko <themiron.ru at gmail.com <mailto:themiron.ru at gmail.com> > wrote:

 

Hello,

 

Initially inspired by Péter Szabó work from 2017, but made with general approach:

 

*        Curve25519/Ed25519 implementation based on TweetNaCl version 20140427, old Google's curve25519_donna dropped as unnecessary, saves a lot of size.

*        SHA512 reused from LibTomCrypt, no need to keep own copy

*        Sign/Verify require no additional memory allocation

*        Dropbear's API made ~similar to LibTomCrypt devel to ease possible switch, if necessary. Anyway, LibTomCrypt is based on TweetNaCl as well.

*        Default private key path is key/etc/dropbear/dropbear_ed25519_host_key

*        Implemented general import from / export to OpenSSH private keys, can be reused for other key types on necessary

*        Implemented *25519 fuzzers, but still need corresponding data from dropbear-fuzzcorpus 

*        Man, license, commens updated to fit Ed25519

 

So far, DROPBEAR_CURVE25519 increases dropbear binary by ~2,5Kb on X86-64 vs ~8Kb of current curve25519_donna implementation.

DROPBEAR_ED25519 adds ~7,5Kb to dropbear and ~1kB to dropbearconvert for OpenSSH import/export.

 

Related PR against current sources is here  <https://github.com/mkj/dropbear/pull/91> https://github.com/mkj/dropbear/pull/91, patches are attached.

Review and/or any suggestios will be highly appreciated.

 

Thank you and

Best Regards, Vladislav Grishenko




<0001-Add-support-for-Ed25519-as-a-public-key-type.patch><0002-Add-curve25519-and-ed25519-fuzzers.patch><0003-Add-import-and-export-of-Ed25519-keys.patch>

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20200426/8e8ef8d3/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Mention-Ed25519-in-dropbearkey-man.patch
Type: application/octet-stream
Size: 861 bytes
Desc: not available
Url : https://lists.ucc.gu.uwa.edu.au/pipermail/dropbear/attachments/20200426/8e8ef8d3/attachment.obj 


More information about the Dropbear mailing list