Sebastian Messmer
77b67a8137
Reduce use of memcmp and use operator==(Data, Data) instead
2015-04-25 17:17:06 +02:00
Sebastian Messmer
a07c03d752
Added test cases for DataFixture
2015-04-25 17:03:18 +02:00
Sebastian Messmer
b4e2eaa3e8
Use cpputils::DataFixture instead of DataBlockFixture
2015-04-25 16:44:00 +02:00
Sebastian Messmer
a2c89ed73a
Use cpputils::DataFixture instead of DataBlockFixture
2015-04-25 16:43:52 +02:00
Sebastian Messmer
65eb73e7d9
Use cpputils::DataFixture instead of DataBlockFixture
2015-04-25 16:43:37 +02:00
Sebastian Messmer
0b60370665
Remove dependency to tempfile
2015-04-25 03:47:30 +02:00
Sebastian Messmer
3e12c771a1
Remove dependency to tempfile
2015-04-25 03:47:03 +02:00
Sebastian Messmer
74e9ffb9f4
Use cpputils::TempFile and cpputils::Data instead of blockstore::TempFile and blockstore::Data
2015-04-25 03:37:25 +02:00
Sebastian Messmer
9de2d9d04a
- Use cpputils::DataBlockFixture and cpputils::Data.
...
- Fix test cases
2015-04-25 03:26:59 +02:00
Sebastian Messmer
6a0623956d
Use Data, DataBlockFixture from cpputils
2015-04-25 02:55:34 +02:00
Sebastian Messmer
59bfddc18f
Moved Data, FixedSizeData and DataBlockFixture to cpp-utils
2015-04-25 02:48:41 +02:00
Sebastian Messmer
38327de0c8
Move tempfile to cpp-utils
2015-04-25 02:40:02 +02:00
Sebastian Messmer
d8a6b23962
Moved data classes to cpp-utils
2015-04-25 02:24:18 +02:00
Sebastian Messmer
3d9e98d892
Fix compiler errors in tests
2015-04-25 00:08:29 +02:00
Sebastian Messmer
e056a65b48
- Added test cases for authenticated ciphers
...
- Fixed corner case for AES256_GCM when decrypt is called on data that can't hold IV and TAG
2015-04-24 23:58:24 +02:00
Sebastian Messmer
0335b243fb
Implemented AES256_GCM
2015-04-24 23:02:14 +02:00
Sebastian Messmer
19e5f03de3
Simplified CipherTest
2015-04-24 21:33:25 +02:00
Sebastian Messmer
008c6f7ab7
Add Cipher concept
2015-04-24 21:30:54 +02:00
Sebastian Messmer
5adcf4aca1
Allow decryption interface to fail (needed for authenticated ciphers later)
2015-04-24 21:08:36 +02:00
Sebastian Messmer
79283b868b
Added test cases that a Cipher is indeterministic
2015-04-24 19:13:56 +02:00
Sebastian Messmer
f18195757c
- Added test cases for ciphers
...
- Removed Cipher.h
2015-04-24 18:58:42 +02:00
Sebastian Messmer
6e50c9d8a5
Factor out encryption algorithm from EncryptedBlockStore
2015-04-24 18:14:25 +02:00
Sebastian Meßmer
17f6a38629
Removed unneccessary flushes
2015-04-18 17:06:55 +02:00
Sebastian Meßmer
417a701636
- BlockStore::create() gets the data of the new block as a parameter
...
- Fixed numBlocks() in OnDiskBlockStore, FakeBlockStore, CachingBlockStore, ...
- CachingBlockStore caches created blocks and doesn't directly create them in the underlying blockstore
2015-04-18 14:47:12 +02:00
Sebastian Messmer
18e7d68f15
Added test cases checking that numBlocks() works correctly when a created block is not destructed yet
2015-04-17 13:27:17 +02:00
Sebastian Messmer
d15a355464
Renamed to ParallelAccessStore
2015-04-16 14:52:06 +02:00
Sebastian Messmer
9fa6b041eb
Renamed old Caching2BlockStore to new CachingBlockStore
2015-04-16 14:10:44 +02:00
Sebastian Messmer
248fd0f5cc
Renamed old CachingBlockStore to ParallelAccessBlockStore
2015-04-16 13:59:52 +02:00
Sebastian Messmer
72f952b57c
Added dummy implementation for new caching block store
2015-04-15 15:46:35 +02:00
Sebastian Messmer
cc30dcde10
Fix FakeBlockStore
2015-04-15 14:51:41 +02:00
Sebastian Messmer
bee68464dc
When traversing a blob out of range, automatically create the leaves up to the traversed point
2015-04-10 21:52:30 +02:00
Sebastian Messmer
bb98e9b31d
Fix test cases for new flushing policy
2015-04-10 00:10:49 +02:00
Sebastian Messmer
711283a89b
EncryptedBlockStore handles encryption keys
2015-04-09 20:14:12 +02:00
Sebastian Messmer
990ca6ca26
Generalized Key to FixedSizeData
2015-04-09 20:07:03 +02:00
Sebastian Messmer
86f8ca6dc4
Dummy implementation for EncryptedBlockStore
2015-04-09 19:22:09 +02:00
Sebastian Meßmer
9de711b881
Refactoring
2015-04-02 12:18:44 -04:00
Sebastian Meßmer
5578af3948
Initial version
2015-04-02 11:39:44 -04:00
Sebastian Meßmer
da0efd80c5
Rename SynchronizedBlockStore -> CachingBlockStore
2015-04-02 02:59:43 -04:00
Sebastian Meßmer
5571a42980
Continued working on SynchronizedBlockStore. remove() doesn't work yet.
2015-03-28 13:44:22 -04:00
Sebastian Meßmer
f6669c86c1
Added SynchronizedBlockStore. In this first version, it only synchronizes the direct blockstore functions, but still allows opening the same block twice. This will be forbidden in future commits
2015-03-19 11:16:20 +01:00
Sebastian Messmer
a7a87a07dd
Add style warnings
2015-03-16 18:32:37 +01:00
Sebastian Meßmer
c47095474c
Use new FsTest
2015-03-16 02:57:01 +01:00
Sebastian Meßmer
662c3f8e90
Use the fspp test cases for cryfs
2015-03-16 02:15:51 +01:00
Sebastian Meßmer
6d61b896af
Remove test that is dependent on gcc optimization level
2015-03-15 09:26:50 +01:00
Sebastian Messmer
deba4810a8
Replaced absolute paths to messmer/blobstore with local relative paths
2015-03-12 15:18:10 +01:00
Sebastian Messmer
294530c662
Replaced absolute paths to messmer/blockstore/... with relative local paths
2015-03-12 14:27:51 +01:00
Sebastian Messmer
141b7e08b7
Fix OpenFile::read() return type
2015-03-11 01:05:16 +01:00
Sebastian Messmer
9741fb3f5c
- ReadDir also returns whether the entry is a file or a directory
...
- OpenFileList has a simpler interface
2015-03-11 00:22:36 +01:00
Sebastian Messmer
498623ddab
Merge branch 'master' into develop
2015-03-10 21:51:21 +01:00
Sebastian Messmer
40c690d03b
Dir::children() returns not only the entry name, but also whether it is a file or a directory entry
2015-03-10 21:51:12 +01:00