<feed xmlns='http://www.w3.org/2005/Atom'>
<title>soledad.git/testing/tests, branch feature/streaming-transfer</title>
<subtitle>[soledad]
</subtitle>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/'/>
<entry>
<title>[feature] Change CTR to GCM on secrets.py</title>
<updated>2016-12-07T05:03:58+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor1984@riseup.net</email>
</author>
<published>2016-12-07T05:03:58+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=ee5c8675eb68b075552a03a914699c841a98306e'/>
<id>ee5c8675eb68b075552a03a914699c841a98306e</id>
<content type='text'>
Current implementation can allow tampering and the CTR-&gt;GCM exchange can
help to avoid it.
This commits also alters a behaviour where we moved ahead after failing
to decrypt a recovery document. IMHO we can't move ahead as this is a
fatal error.

Signed-off-by: Victor Shyba &lt;victor1984@riseup.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Current implementation can allow tampering and the CTR-&gt;GCM exchange can
help to avoid it.
This commits also alters a behaviour where we moved ahead after failing
to decrypt a recovery document. IMHO we can't move ahead as this is a
fatal error.

Signed-off-by: Victor Shyba &lt;victor1984@riseup.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[feature] Add retro compat on secrets.py ciphers</title>
<updated>2016-12-07T04:27:50+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor1984@riseup.net</email>
</author>
<published>2016-12-07T04:24:53+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=1bc85d13569635644f9954dea5f615c9256c8c56'/>
<id>1bc85d13569635644f9954dea5f615c9256c8c56</id>
<content type='text'>
Integrated the secrets's JSON key that specifies ciphers into _crypto
and added optional GCM. Also added a test to check if both cipher types
can be imported.

Resolves: #8680
Signed-off-by: Victor Shyba &lt;victor1984@riseup.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Integrated the secrets's JSON key that specifies ciphers into _crypto
and added optional GCM. Also added a test to check if both cipher types
can be imported.

Resolves: #8680
Signed-off-by: Victor Shyba &lt;victor1984@riseup.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[feature] use GCM instead of CTR+HMAC</title>
<updated>2016-12-07T02:30:42+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor1984@riseup.net</email>
</author>
<published>2016-12-07T02:16:28+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=0b96f01d40da37747d94f4182ea4a8cc8ebb1b05'/>
<id>0b96f01d40da37747d94f4182ea4a8cc8ebb1b05</id>
<content type='text'>
Resolves: #8668 - client: substitute usage of CTR mode + HMAC by GCM
cipher mode

Signed-off-by: Victor Shyba &lt;victor1984@riseup.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Resolves: #8668 - client: substitute usage of CTR mode + HMAC by GCM
cipher mode

Signed-off-by: Victor Shyba &lt;victor1984@riseup.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[refactor] improve blob signature magic usage</title>
<updated>2016-11-30T04:55:33+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor1984@riseup.net</email>
</author>
<published>2016-11-30T03:07:24+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=efb37c37bda119d3f73cc4d79f3b663585219c23'/>
<id>efb37c37bda119d3f73cc4d79f3b663585219c23</id>
<content type='text'>
Our magic value wasn't being used and were represented as a string.
Refactored it to a constant, increased it's size to 2 bytes and optimzed
is_symmetrically_encrypted to look for the magic and symmetrically
encrypted flag under base64 encoding. Most file types will use this
feature to help identifying themselves, so it got refactored to serve
the purpose it was created.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Our magic value wasn't being used and were represented as a string.
Refactored it to a constant, increased it's size to 2 bytes and optimzed
is_symmetrically_encrypted to look for the magic and symmetrically
encrypted flag under base64 encoding. Most file types will use this
feature to help identifying themselves, so it got refactored to serve
the purpose it was created.
</pre>
</div>
</content>
</entry>
<entry>
<title>[feature] speed up sync benchmark setup code</title>
<updated>2016-11-29T05:04:57+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor1984@riseup.net</email>
</author>
<published>2016-11-29T05:04:57+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=91870566bbfc642d43e927ea714192b9962f7a7f'/>
<id>91870566bbfc642d43e927ea714192b9962f7a7f</id>
<content type='text'>
We aren't testing huge payloads on CI, so it doesn't make sense to
insert docs one by one. 'gatherResults' can speed up bench setup.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We aren't testing huge payloads on CI, so it doesn't make sense to
insert docs one by one. 'gatherResults' can speed up bench setup.
</pre>
</div>
</content>
</entry>
<entry>
<title>[refactor] introduces a GenericWriter</title>
<updated>2016-11-28T16:47:30+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor1984@riseup.net</email>
</author>
<published>2016-11-27T05:25:07+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=aecd9f068300fdf31a096b24385e163636d187f6'/>
<id>aecd9f068300fdf31a096b24385e163636d187f6</id>
<content type='text'>
AESWriter and HMACWriter are just applying hmac or aes into a flow of
data. Abstracted the application of those operations into a super class
and highlighted just the difference on each implementation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
AESWriter and HMACWriter are just applying hmac or aes into a flow of
data. Abstracted the application of those operations into a super class
and highlighted just the difference on each implementation.
</pre>
</div>
</content>
</entry>
<entry>
<title>[refactor] simplify _crypto</title>
<updated>2016-11-28T16:47:30+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor1984@riseup.net</email>
</author>
<published>2016-11-27T00:26:23+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=2d82d01a95f6da0c3206bf5de083a3aa465eb084'/>
<id>2d82d01a95f6da0c3206bf5de083a3aa465eb084</id>
<content type='text'>
After adding the streaming decrypt, some classes were doing almost the
same thing. Unified them.
Also fixed some module level variables to upper case and some class name
to camel case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After adding the streaming decrypt, some classes were doing almost the
same thing. Unified them.
Also fixed some module level variables to upper case and some class name
to camel case.
</pre>
</div>
</content>
</entry>
<entry>
<title>[bug] make the semaphore cover all parsing</title>
<updated>2016-11-28T16:47:30+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor1984@riseup.net</email>
</author>
<published>2016-11-26T21:11:11+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=d374223c38862961c205139006639ed5b8878465'/>
<id>d374223c38862961c205139006639ed5b8878465</id>
<content type='text'>
Unfortunately, if a doc finishes decryption before the previous one we
will still have an issue while inserting. This commits solves it by
adding the parse and decrypt inside of the semaphore.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Unfortunately, if a doc finishes decryption before the previous one we
will still have an issue while inserting. This commits solves it by
adding the parse and decrypt inside of the semaphore.
</pre>
</div>
</content>
</entry>
<entry>
<title>[feature] make _crypto stream on decryption</title>
<updated>2016-11-28T16:47:30+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor1984@riseup.net</email>
</author>
<published>2016-11-26T21:09:26+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=7006b88db2a5f6bca5b401800d8e14821371216a'/>
<id>7006b88db2a5f6bca5b401800d8e14821371216a</id>
<content type='text'>
We are already doing this on encryption, now we can stream also from
decryption. This unblocks the reactor and will be valuable for blobs-io.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We are already doing this on encryption, now we can stream also from
decryption. This unblocks the reactor and will be valuable for blobs-io.
</pre>
</div>
</content>
</entry>
<entry>
<title>[feature] delimit preamble from ciphertext</title>
<updated>2016-11-28T16:47:30+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor1984@riseup.net</email>
</author>
<published>2016-11-26T04:11:28+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=93815e28de5c8b1968cd9d3cf59800c9023983cf'/>
<id>93815e28de5c8b1968cd9d3cf59800c9023983cf</id>
<content type='text'>
We now encode preamble and ciphertext+hmac in two distinct payloads
separated by a space. This allows metadata to be extracted and used
before decoding the whole document.
It also introduces a single packer for packing and unpacking of data
instead of reads and writes. Downside: doc_id and rev are limited to 255
chars now.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We now encode preamble and ciphertext+hmac in two distinct payloads
separated by a space. This allows metadata to be extracted and used
before decoding the whole document.
It also introduces a single packer for packing and unpacking of data
instead of reads and writes. Downside: doc_id and rev are limited to 255
chars now.
</pre>
</div>
</content>
</entry>
</feed>
