From b342f56beceae9207e188bebc536cd39d4ef4c6b Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 6 Aug 2013 10:15:05 -0400 Subject: Network constructor deuglification, remove unused old encrypt/decrypt methods from Identity. --- node/Identity.hpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'node/Identity.hpp') diff --git a/node/Identity.hpp b/node/Identity.hpp index 1cce4fb0..a970d7f7 100644 --- a/node/Identity.hpp +++ b/node/Identity.hpp @@ -175,40 +175,6 @@ public: */ inline bool hasPrivate() const throw() { return (_keyPair); } - /** - * Encrypt a block of data to send to another identity - * - * This identity must have a secret key. - * - * The encrypted data format is: - * <[8] Salsa20 initialization vector> - * <[8] first 8 bytes of HMAC-SHA-256 of ciphertext> - * <[...] encrypted compressed data> - * - * Keying is accomplished using agree() (KDF function is in the - * EllipticCurveKeyPair.cpp source) to generate 64 bytes of key. The first - * 32 bytes are used as the Salsa20 key, and the last 32 bytes are used - * as the HMAC key. - * - * @param to Identity of recipient of encrypted message - * @param data Data to encrypt - * @param len Length of data - * @return Encrypted data or empty string on failure - */ - std::string encrypt(const Identity &to,const void *data,unsigned int len) const; - - /** - * Decrypt a message encrypted with encrypt() - * - * This identity must have a secret key. - * - * @param from Identity of sender of encrypted message - * @param cdata Encrypted message - * @param len Length of encrypted message - * @return Decrypted data or empty string on failure - */ - std::string decrypt(const Identity &from,const void *cdata,unsigned int len) const; - /** * Shortcut method to perform key agreement with another identity * -- cgit v1.2.3