libcryfs/interface/helpers/BlockStoreWithRandomKeys.h

23 lines
535 B
C
Raw Normal View History

2014-12-09 17:19:59 +01:00
#pragma once
#ifndef FSPP_BLOCKSTORE_BLOCKSTOREWITHRANDOMKEYS_H_
#define FSPP_BLOCKSTORE_BLOCKSTOREWITHRANDOMKEYS_H_
#include "../BlockStore.h"
2015-02-17 00:23:33 +01:00
#include "../Block.h"
2014-12-09 17:19:59 +01:00
namespace blockstore {
// This is an implementation helpers for BlockStores that use random block keys.
// You should never give this static type to the client. The client should always
// work with the BlockStore interface instead.
class BlockStoreWithRandomKeys: public BlockStore {
public:
Key createKey() final {
return Key::CreateRandom();
}
2014-12-09 17:19:59 +01:00
};
}
#endif