diff options
Diffstat (limited to 'keyDerivation.h')
-rw-r--r-- | keyDerivation.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/keyDerivation.h b/keyDerivation.h index a0c1a01..a1a2987 100644 --- a/keyDerivation.h +++ b/keyDerivation.h @@ -33,6 +33,8 @@ #include "datatypes.h" #include "buffer.h" +//#include <boost/archive/text_oarchive.hpp> +//#include <boost/archive/text_iarchive.hpp> extern "C" { @@ -56,7 +58,13 @@ public: void setLogKDRate(const u_int8_t ld_rate); void generate(satp_prf_label label, seq_nr_t seq_nr, Buffer& key, u_int32_t length); void clear(); - +private: + template<class Archive> + void serialize(Archive & ar, const unsigned int version) + { + ar & ld_kdr_; + ar & salt_; + } protected: int8_t ld_kdr_; // ld(key_derivation_rate) |