Commit Graph

20 Commits

Author SHA1 Message Date
Jarek Kowalski
bac8adcaec switched wrapping errors from fmt.Errorf() to errors.Wrap() 2019-05-11 09:35:49 -07:00
Jarek Kowalski
731d6abebc fixed build broken by overly aggressive linter fixes 2019-04-01 21:53:42 -07:00
Jarek Kowalski
bdafe117d9 Makefile: switched linter to golangci-lint and updated goveralls setup
fixed lint errors & removed .gometalinter config
2019-04-01 19:22:01 -07:00
Jarek Kowalski
5f2de971ae block: switched default hash and encryption to BLAKE2B-256-128 and SALSA20 respectively, as those are significantly faster than SHA2 and AES256 2019-01-21 13:30:12 -08:00
Jarek Kowalski
3377e403a5 repo: moved recovery block from index blocks to pack blocks, with encrypted repositories index blocks are encrypted, which defeats the purpose of recovery blocks, but pack blocks contain individually-encrypted sub-blocks 2019-01-19 05:27:19 -05:00
Jarek Kowalski
c35037601d repo: embed format block bytes in all pack indexes
This allows format block to be recovered if any block
indexes survives. The block is not encrypted, but has HMAC is
followed by 2-byte size.
2019-01-12 14:24:09 -08:00
Jarek Kowalski
766f574973 repo: removed controls for setting format block encryption, instead when block encryption is enabled, the format block is automatically encrypted using default encryption algorithm 2019-01-12 09:14:34 -08:00
Jarek Kowalski
840d5ab749 removed support for legacy block format, to migrate sync to previous commit and run 'kopia repo upgrade' 2018-12-31 19:01:08 -08:00
Jarek Kowalski
6e8a48ed4f Revamped hash and encryption algorithm handling.
This enables many more combinations of hash and encryption algorithm
to be selected, some with dramatically better performance.
2018-12-29 15:08:29 -08:00
Jarek Kowalski
c4eb754818 block cache: additional tests for cache faults 2018-12-23 18:23:42 -08:00
Jarek Kowalski
160d02a6eb block cache: fixed a bug where we remove wrong item from the cache, added tests 2018-12-23 11:59:17 -08:00
Jarek Kowalski
9bb34f2e8c block: refactored assertion checking 2018-12-22 22:49:09 -08:00
Jarek Kowalski
a673d36b1d lint: ran gofmt -s and fixed spelling
as recommended by goreportcard.com
2018-11-07 17:46:57 -08:00
Jarek Kowalski
111a627730 misc: fixed lint warnings 2018-11-03 11:54:35 -07:00
Jarek Kowalski
9c81f6f179 block: added block_index_recovery_test.go 2018-11-01 23:02:38 -07:00
Jarek Kowalski
9cfc1297fd block: dead code 2018-11-01 22:34:42 -07:00
Jarek Kowalski
433b193602 block: added tests for FindUnreferencedStorageFiles 2018-11-01 22:22:14 -07:00
Jarek Kowalski
82653d3736 packindex: merged package into /block, removed unnecessary visibility and dead code 2018-10-31 21:14:19 -07:00
Jarek Kowalski
4b4f9240df storage: additional storage tests, added GCS test suite 2018-10-27 11:38:51 -07:00
Jarek Kowalski
e458ee24d8 imported github.com/kopia/kopia/repo and renamed package path to github.com/kopia/repo/ 2018-10-26 17:33:58 -07:00