Thomas Waldmann
583de3eeb1
fix exitcode of borg serve, fixes #2910
2017-08-06 04:18:49 +02:00
Simon Frei
37f75519cf
Only style changes - still NOT functional
2017-08-06 01:46:20 +02:00
Simon Frei
9f6df7d999
Only move and change indendation of code - NOT functional
2017-08-06 01:42:32 +02:00
TW
eee4542f3b
Merge pull request #2900 from imsodin/fix-2899
...
Only compare contents when chunker params match (fixes #2899 )
2017-08-06 01:20:24 +02:00
TW
5a7614012d
Merge pull request #2906 from ThomasWaldmann/vagrant-archlinux
...
vagrant: add archlinux VM
2017-08-03 04:59:58 +02:00
Thomas Waldmann
7dc76a7f40
vagrant: add archlinux VM
...
has python 3.6, openssl 1.1.
and most of the stuff we need is preinstalled on this box. \o/
2017-08-01 04:46:31 +02:00
Simon Frei
b6c2055276
Only compare contents when chunker params match ( fixes #2899 )
2017-07-30 21:39:35 +02:00
enkore
4f57e3a7c4
Merge pull request #2890 from enkore/f/mt-1c
...
archive: create FilesystemObjectProcessors class
2017-07-30 18:22:50 +02:00
enkore
d968eae4e5
Merge pull request #2892 from ThomasWaldmann/drop-py34
...
increase Python minimum requirement to 3.5.0
2017-07-30 10:25:09 +02:00
Thomas Waldmann
074beec1ca
minimal Vagrantfile (py3.5+, openssl 1.0/1.1)
...
- killed many VMs that missed python 3.5 and/or openssl 1.1
- refer to 1.1-maint branch Vagrantfile if you want to re-add some
- kept xenial64 for openssl 1.0 testing
- kept stretch64 for openssl 1.1 testing and future binary builds
2017-07-30 02:01:10 +02:00
Thomas Waldmann
12df5e625a
use python 3.5's os.scandir
...
the removed stuff was only required for < 3.5.
2017-07-29 21:13:57 +02:00
Thomas Waldmann
4c840ee24d
use python 3.5's os.set_blocking
2017-07-29 21:13:57 +02:00
Thomas Waldmann
8cd451bd33
python 3.5+ does not generate .pyo any more
2017-07-29 21:13:57 +02:00
Thomas Waldmann
75050f4ba0
travis has fixed their py 3.5
...
lzma stuff used to be broken, that's why we had 3.5.2.
2017-07-29 21:13:47 +02:00
Thomas Waldmann
a5c6a50ebe
increase Python minimum requirement to 3.5.0
...
also:
- drop testing on 3.4
- add some TODO for the docs and vagrant machines
2017-07-29 20:55:04 +02:00
Marian Beermann
a88519d540
archive: delete unused Archive.list_archives
2017-07-29 19:37:37 +02:00
Marian Beermann
c93dba0195
archive: create FilesystemObjectProcessors class
2017-07-29 19:37:37 +02:00
enkore
bccff3413b
Merge pull request #2889 from enkore/f/mt-1b
...
multithreading: item.to_optr(), Item.from_optr()
2017-07-29 17:27:18 +02:00
Marian Beermann
d286d753cb
item: item.to_optr(), Item.from_optr()
2017-07-29 17:26:39 +02:00
enkore
7b35b1ef24
Merge pull request #2888 from enkore/f/remove-gcm
...
crypto: fixes & remove AES-GCM
2017-07-29 17:24:16 +02:00
enkore
5abfa0b266
Merge pull request #2887 from enkore/f/mt-1a
...
multithreading: add pyzmq dep, chunker GIL
2017-07-29 14:36:01 +02:00
Marian Beermann
e57dd4bc9e
crypto: avoid bad prototype codegen from cython
...
(-Wstrict-prototypes, Cyton forgets a "void")
2017-07-29 12:28:33 +02:00
Marian Beermann
630e45b742
crypto: fix wrong use of const
2017-07-29 12:28:06 +02:00
Marian Beermann
d5ee16d676
crypto: remove AES-GCM
2017-07-29 12:22:11 +02:00
enkore
7d02c7e453
Merge pull request #1034 from ThomasWaldmann/crypto-aead
...
new crypto code, blackbox, aead internally
2017-07-29 12:18:38 +02:00
Marian Beermann
55e0c43c53
add zeromq dependency
2017-07-29 11:58:01 +02:00
Marian Beermann
b1b66be593
fix chunker holding the GIL during blocking I/O
2017-07-29 11:58:01 +02:00
Thomas Waldmann
dc4abffbc0
remove unused bytes16 conversions
2017-07-27 23:48:30 +02:00
Thomas Waldmann
63ebfc140b
remove unused extract_nonce method
2017-07-27 23:48:30 +02:00
Thomas Waldmann
e7228fa3a4
cosmetic: move some lines
2017-07-27 23:48:30 +02:00
Thomas Waldmann
68ef5e8a4b
allow different MACs, implement blake2b MAC
2017-07-27 23:48:30 +02:00
Thomas Waldmann
945b5e25e2
dispatch to dummy blake2b ciphersuite
2017-07-27 23:48:30 +02:00
Thomas Waldmann
1e23291b7f
post-merge: re-enabled AuthenticatedKey and tests
2017-07-27 23:48:30 +02:00
Thomas Waldmann
6090fdeef3
move the cipher internal counter overflow check to encrypt()/decrypt()
2017-07-27 23:48:30 +02:00
Thomas Waldmann
8f1678e2ba
set_iv / next iv with integers
2017-07-27 23:48:30 +02:00
Thomas Waldmann
58c2dafbe0
nonce manager: remove get/set iv, make it integer based
2017-07-27 23:48:30 +02:00
Thomas Waldmann
f34092e567
move openssl version checks to staticmethod requirements_check
2017-07-27 23:48:30 +02:00
Thomas Waldmann
23959eb5bf
borg.key: include chunk id in exception msgs
2017-07-27 23:48:30 +02:00
Thomas Waldmann
37cf3ef469
init ciphersuites with header_len and aad_offset
...
it's needed for extract_iv already, so it should be given to init, not encrypt/decrypt
2017-07-27 23:48:30 +02:00
Thomas Waldmann
e9bbf9307d
refactor to cipher.extract_iv
...
position and length of iv depends on cipher
2017-07-27 23:48:29 +02:00
Thomas Waldmann
2d79f19263
refactor / generalize to num_cipher_blocks
2017-07-27 23:48:29 +02:00
Thomas Waldmann
310b4b7775
UNENCRYPTED (and unauthenticated) "ciphersuite"
...
it can be used to integrate the plaintext mode with the AEAD modes, both use same api now.
2017-07-27 23:48:29 +02:00
Thomas Waldmann
f76f42c2a0
use cipher.block_count()
...
there are some more places where it is used.
2017-07-27 23:48:29 +02:00
Thomas Waldmann
de0707d3dd
refactor AES class to new api
2017-07-27 23:48:29 +02:00
Thomas Waldmann
fbc740427d
cosmetic: s/enc_cipher/cipher/, remove comment
2017-07-27 23:48:08 +02:00
Thomas Waldmann
8752039bec
integrate new crypto code
2017-07-27 23:33:15 +02:00
Thomas Waldmann
4effe40415
re-add legacy AES() crypto class
...
we need it to encrypt/decrypt key files / config keys.
2017-07-27 23:22:32 +02:00
Thomas Waldmann
ef880de64c
add iv as optional encrypt() param
2017-07-27 23:22:32 +02:00
Thomas Waldmann
5287531130
make sure set_iv is called before each encrypt() call
2017-07-27 23:22:32 +02:00
Thomas Waldmann
d88c0765e7
make sure sizes are in sync
2017-07-27 23:22:32 +02:00