finished implementing decryption routines. Still needs fixing compilation

This commit is contained in:
csoler 2015-10-01 23:37:50 -04:00
parent 6626538cab
commit 1c12178874
5 changed files with 260 additions and 86 deletions

View file

@ -239,7 +239,8 @@ public:
/// Session key encrypted for the whole group
///
RsTlvBinaryData encrypted_key_data ;
RsTlvBinaryData initialisation_vector ;
std::map<RsGxsId, RsTlvBinaryData> encrypted_session_keys;
};
/*!
* Use to send to peer list of grps

View file

@ -53,6 +53,7 @@ virtual bool SetTlv(void *data, uint32_t size, uint32_t *offset) const;
virtual bool GetTlv(void *data, uint32_t size, uint32_t *offset);
virtual std::ostream &print(std::ostream &out, uint16_t indent) const; /*! Error/Debug util function */
// mallocs the necessary size, and copies data into the allocated buffer in bin_data
bool setBinData(const void *data, uint32_t size);
uint16_t tlvtype; /// set/checked against TLV input