mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 2/2] dropbear: Added Elliptic Curve Cryptography options.
Date: Tue, 10 Jun 2014 07:49:42 +0200	[thread overview]
Message-ID: <20140610054942.GF4904@pengutronix.de> (raw)
In-Reply-To: <1401781658-20585-2-git-send-email-bth@kamstrup.dk>

On Tue, Jun 03, 2014 at 09:47:38AM +0200, Bruno Thomsen wrote:
> Support for ecdsa, ecdh and curve25519-donna options.
> 
> Signed-off-by: Bruno Thomsen <bth@kamstrup.dk>
> ---
>  rules/dropbear.in   |   27 +++++++++++++++++++++++++++
>  rules/dropbear.make |   24 ++++++++++++++++++++++++
>  2 files changed, 51 insertions(+)
> 
> diff --git a/rules/dropbear.in b/rules/dropbear.in
> index 21301ba..c99d432 100644
> --- a/rules/dropbear.in
> +++ b/rules/dropbear.in
> @@ -288,6 +288,33 @@ config DROPBEAR_DSS
>  	  key size). In contrast, RSA signature length is a function
>  	  of the key length employed.
>  
> +config DROPBEAR_ECDSA
> +	bool
> +	prompt "ecdsa"
> +	default n

drop this line. It's redundant.

> +	help
> +	  ECDSA stands for Elliptic Curve Digital Signature Algorithm.
> +	  ECDSA is significantly faster than RSA or DSS.
> +
> +config DROPBEAR_ECDH
> +	bool
> +	prompt "ecdh"
> +	default n

Here as well.

> +	help
> +	  ECDH stands for Elliptic Curve Diffie-Hellman.
> +
> +config DROPBEAR_CURVE25519
> +	bool
> +	depends on DROPBEAR_ECDSA || DROPBEAR_ECDH
> +	prompt "curve25519-donna"
> +	default n

And here.

Michael

> +	help
> +	  Enable curve25519-donna for key exchange.
> +	  This is another elliptic curve method with good security properties.
> +	  This algorithm does not rely on NIST-based curves
> +	  and gives us more security confidence against a possible
> +	  backdoor in nistp-256 curve.
> +
>  comment "Authentication types, at least one required --- RFC Draft requires pubkey auth"
>  
>  config DROPBEAR_PASSWD
> diff --git a/rules/dropbear.make b/rules/dropbear.make
> index 5ab6fd3..5cbd4aa 100644
> --- a/rules/dropbear.make
> +++ b/rules/dropbear.make
> @@ -222,6 +222,30 @@ else
>  	@$(call disable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_DSS)
>  endif
>  
> +ifdef PTXCONF_DROPBEAR_ECDSA
> +	@echo "ptxdist: enabling ecdsa"
> +	@$(call enable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_ECDSA)
> +else
> +	@echo "ptxdist: disabling ecdsa"
> +	@$(call disable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_ECDSA)
> +endif
> +
> +ifdef PTXCONF_DROPBEAR_ECDH
> +	@echo "ptxdist: enabling ecdh"
> +	@$(call enable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_ECDH)
> +else
> +	@echo "ptxdist: disabling ecdh"
> +	@$(call disable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_ECDH)
> +endif
> +
> +ifdef PTXCONF_DROPBEAR_CURVE25519
> +	@echo "ptxdist: enabling curve25519"
> +	@$(call enable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_CURVE25519)
> +else
> +	@echo "ptxdist: disabling curve25519"
> +	@$(call disable_c, $(DROPBEAR_DIR)/options.h,DROPBEAR_CURVE25519)
> +endif
> +
>  ifdef PTXCONF_DROPBEAR_PASSWD
>  	@echo "ptxdist: enabling passwd"
>  	@$(call enable_c, $(DROPBEAR_DIR)/options.h,ENABLE_SVR_PASSWORD_AUTH)
> -- 
> 1.7.9.5
> 
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-06-10  5:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-03  7:47 [ptxdist] [PATCH 1/2] dropbear: version bump 2013.60 -> 2014.63 Bruno Thomsen
2014-06-03  7:47 ` [ptxdist] [PATCH 2/2] dropbear: Added Elliptic Curve Cryptography options Bruno Thomsen
2014-06-10  5:49   ` Michael Olbrich [this message]
2014-06-13  6:47 ` [ptxdist] [PATCH 1/2] dropbear: version bump 2013.60 -> 2014.63 Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140610054942.GF4904@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox