#1164 new enhancement

use XSalsa20+AES-128 encryption — at Version 14

Reported by: zooko Owned by: somebody
Priority: major Milestone: soon
Component: code Version: 1.8β
Keywords: confidentiality Cc: dragonxue, jack.lloyd, randombit
Launchpad Bug:

Description (last modified by zooko)

In order to protect against weaknesses in AES (such as timing or side-channel attacks, or cryptanalysis, possibly far in the future and applied against old ciphertexts), want to use a combined encryption of AES-128 and XSalsa20. Yu Xue (Student) and Jack Lloyd (Mentor) are working on implementing that mode for GSoC 2010:

https://tahoe-lafs.org/trac/pycryptopp/ticket/46

This ticket is to integrate that encryption mode into Tahoe-LAFS. The steps are to define new capability versions, such as by inserting an X into the cap type designator:

https://tahoe-lafs.org/pipermail/tahoe-dev/2010-August/004878.html https://tahoe-lafs.org/pipermail/tahoe-dev/2010-August/004879.html

And to make it so that caps of that new type get encrypted/decrypted with XSalsa20+AES-128 instead of with AES-256. For the first release of Tahoe-LAFS which includes that functionality, it will still by default create new caps using the old encryption of only AES-256. It is important that people feel free to upgrade to new versions of Tahoe-LAFS without having to take any steps to ensure backward-compatibility, and that means that the new version of Tahoe-LAFS must not, by default, produce caps that older versions of Tahoe-LAFS (such as v1.8.0) can't read.

This tahoe-dev letter lists all the places where the current source code (which is Tahoe-LAFS v1.8.0c1) uses encryption:

Change History (14)

comment:1 Changed at 2010-08-09T22:16:28Z by zooko

  • Milestone changed from undecided to 1.9.0

comment:2 Changed at 2010-09-03T18:13:20Z by zooko

Upon Samuel Neves's questioning, I added some notes about AES-128 vs. AES-256 for this:

http://tahoe-lafs.org/trac/pycryptopp/ticket/46#comment:2

I would be interested in the feedback of Jack, Yu Xue, David-Sarah, or Brian about this issue.

comment:3 Changed at 2010-09-29T05:07:19Z by zooko

  • Keywords confidentiality added
  • Type changed from defect to enhancement

comment:4 Changed at 2011-04-24T04:05:49Z by zooko

  • Cc changed from dragonxue,jack.lloyd,randombit to dragonxue, jack.lloyd, randombit
  • Milestone changed from 1.9.0 to soon

comment:5 Changed at 2011-04-24T04:07:01Z by zooko

  • Milestone changed from soon to 1.10.0

comment:6 Changed at 2011-09-03T18:50:43Z by zooko

Yu Xue contributed a patch to pycryptopp to make it support XSalsa20 and XSalsa20⊕AES-128: http://tahoe-lafs.org/trac/pycryptopp/ticket/46

comment:7 Changed at 2012-03-29T21:10:01Z by davidsarah

It's not clear to me that this should go into 1.10, which is going to focus primarily on bug fixes (especially robustifying mutable files and repair behaviour) and accounting. However, I may be persuadable.

comment:8 Changed at 2012-03-29T21:31:12Z by davidsarah

Hmm, I see this is explicitly listed as one of the goals for the 1.10 milestone. So, I'll leave it in.

comment:9 follow-up: Changed at 2012-09-13T14:08:19Z by zooko

I currently intend to get this landed in trunk for Tahoe-LAFS v1.11.

comment:10 in reply to: ↑ 9 Changed at 2012-10-11T20:09:42Z by davidsarah

Replying to zooko:

I currently intend to get this landed in trunk for Tahoe-LAFS v1.11.

+1.

comment:11 follow-up: Changed at 2013-07-18T19:14:00Z by daira

  • Description modified (diff)
  • Milestone changed from 1.11.0 to soon

We pushed many goals back a release when we decided to have release 1.10 just based on features and bugfixes that were already on trunk. So it is now 1.11 that is going to focus primarily on robustifying share placement and repair behaviour. I suggest that XSalsa+AES support go into 1.12, unless it is ready for 1.11 without slipping the schedule. Note that some design issues about cap format etc. have not been resolved yet.

Last edited at 2013-07-18T19:14:37Z by daira (previous) (diff)

comment:12 in reply to: ↑ 11 Changed at 2013-07-18T19:43:18Z by zooko

Replying to daira:

I suggest that XSalsa+AES support go into 1.12, unless it is ready for 1.11 without slipping the schedule.

+1

comment:13 Changed at 2013-07-22T20:42:02Z by daira

  • Milestone changed from soon to 1.12.0

comment:14 Changed at 2013-09-11T03:59:56Z by zooko

  • Description modified (diff)
Note: See TracTickets for help on using tickets.