Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1287464

Re: [PATCH 2/2] chacha20poly1305: Skip encryption/decryption for 0-len

Path csiph.com!news.mixmin.net!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod
From Herbert Xu <herbert@gondor.apana.org.au>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] chacha20poly1305: Skip encryption/decryption for 0-len
Date Wed, 09 Dec 2015 13:30:02 +0100
Message-ID <qDM2C-8kP-19@gated-at.bofh.it> (permalink)
References <qCwMi-nF-9@gated-at.bofh.it> <qCwMi-nF-7@gated-at.bofh.it>
X-Original-To "Jason A. Donenfeld" <Jason@zx2c4.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.21 (2010-09-15)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 18
Organization linux.* mail to news gateway
X-Original-Cc davem@davemloft.net, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, Netdev <netdev@vger.kernel.org>, martin@strongswan.org, stable@vger.kernel.org
X-Original-Date Wed, 9 Dec 2015 20:19:23 +0800
X-Original-Message-ID <20151209121923.GD27962@gondor.apana.org.au>
X-Original-References <1449366698-2422-1-git-send-email-Jason@zx2c4.com> <1449366698-2422-2-git-send-email-Jason@zx2c4.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1287464

Show key headers only | View raw


On Sun, Dec 06, 2015 at 02:51:38AM +0100, Jason A. Donenfeld wrote:
> If the length of the plaintext is zero, there's no need to waste cycles
> on encryption and decryption. Using the chacha20poly1305 construction
> for zero-length plaintexts is a common way of using a shared encryption
> key for AAD authentication.
> 
> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] chacha20poly1305: Skip encryption/decryption for 0-len "Jason A. Donenfeld" <Jason@zx2c4.com> - 2015-12-06 03:00 +0100
  Re: [PATCH 2/2] chacha20poly1305: Skip encryption/decryption for  0-len Herbert Xu <herbert@gondor.apana.org.au> - 2015-12-09 13:30 +0100

csiph-web