diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-08-06 10:15:05 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-08-06 10:15:05 -0400 |
| commit | b342f56beceae9207e188bebc536cd39d4ef4c6b (patch) | |
| tree | 0c3259cca1ab6735ed0f89661aecbd21499aed63 /node/Identity.hpp | |
| parent | 28a73b620e60dd5d9c77aa7494d4c71da8b1d08c (diff) | |
| download | infinitytier-b342f56beceae9207e188bebc536cd39d4ef4c6b.tar.gz infinitytier-b342f56beceae9207e188bebc536cd39d4ef4c6b.zip | |
Network constructor deuglification, remove unused old encrypt/decrypt methods from Identity.
Diffstat (limited to 'node/Identity.hpp')
| -rw-r--r-- | node/Identity.hpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/node/Identity.hpp b/node/Identity.hpp index 1cce4fb0..a970d7f7 100644 --- a/node/Identity.hpp +++ b/node/Identity.hpp @@ -176,40 +176,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 * * This identity must have its private portion. |
