started to move FT encryption into p3turtle

This commit is contained in:
csoler 2018-03-22 14:41:50 +01:00
parent 3407604a54
commit 00a6bd5b73
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
4 changed files with 342 additions and 26 deletions

View file

@ -332,6 +332,13 @@ class p3turtle: public p3Service, public RsTurtle, public p3Config
/// Send a data request into the correct tunnel for the given file hash
void sendTurtleData(const RsPeerId& virtual_peer_id, RsTurtleGenericTunnelItem *item) ;
#ifdef TODO
/// Encrypts/decrypts an item, using a autenticated construction + chacha20, based on the given 32 bytes master key.
///
static bool encryptItem(const RsItem *item, uint8_t* encryption_master_key, RsTurtleGenericDataItem *& encrypted_item) ;
static bool decryptItem(RsTurtleGenericDataItem *item,uint8_t *encryption_master_key,RsItem *& decrypted_item) ;
#endif
private:
//--------------------------- Admin/Helper functions -------------------------//