2015-10-27 22:19:06 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef MESSMER_CPPUTILS_CRYPTO_RANDOMPADDING_H
|
|
|
|
#define MESSMER_CPPUTILS_CRYPTO_RANDOMPADDING_H
|
|
|
|
|
|
|
|
#include "../data/Data.h"
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
|
|
|
|
namespace cpputils {
|
|
|
|
//TODO Test
|
2015-11-27 14:05:30 +01:00
|
|
|
class RandomPadding final {
|
2015-10-27 22:19:06 +01:00
|
|
|
public:
|
|
|
|
static Data add(const Data &data, size_t targetSize);
|
|
|
|
static boost::optional<Data> remove(const Data &data);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|