diff --git a/core/java/src/net/i2p/I2PAppContext.java b/core/java/src/net/i2p/I2PAppContext.java index 025378d8c..86c1dc907 100644 --- a/core/java/src/net/i2p/I2PAppContext.java +++ b/core/java/src/net/i2p/I2PAppContext.java @@ -388,9 +388,13 @@ public class I2PAppContext { * The session key manager which coordinates the sessionKey / sessionTag * data. This component allows transparent operation of the * ElGamal/AES+SessionTag algorithm, and contains all of the session tags - * for one particular application. If you want to seperate multiple apps - * to have their own sessionTags and sessionKeys, they should use different - * I2PAppContexts, and hence, different sessionKeyManagers. + * for one particular application. + * + * This is deprecated for client use, it should be used only by the router + * as its own key manager. Not that clients are doing end-to-end crypto anyway. + * + * For client crypto within the router, + * use RouterContext.clientManager.getClientSessionKeyManager(dest) * */ public SessionKeyManager sessionKeyManager() { diff --git a/core/java/src/net/i2p/crypto/ElGamalAESEngine.java b/core/java/src/net/i2p/crypto/ElGamalAESEngine.java index 3e191faaa..98e9e62cc 100644 --- a/core/java/src/net/i2p/crypto/ElGamalAESEngine.java +++ b/core/java/src/net/i2p/crypto/ElGamalAESEngine.java @@ -59,14 +59,18 @@ public class ElGamalAESEngine { } /** - * Decrypt the message using the given private key using tags from the given key manager. + * Decrypt the message using the given private key using tags from the default key manager. + * + * @deprecated specify the key manager! */ public byte[] decrypt(byte data[], PrivateKey targetPrivateKey) throws DataFormatException { return decrypt(data, targetPrivateKey, _context.sessionKeyManager()); } /** - * Decrypt the message using the given private key. This works according to the + * Decrypt the message using the given private key + * and using tags from the specified key manager. + * This works according to the * ElGamal+AES algorithm in the data structure spec. * */