diff --git a/core/java/src/net/i2p/I2PAppContext.java b/core/java/src/net/i2p/I2PAppContext.java index b54ca796998e5ba6f55de887e7935af9496326a7..fa352ada6acd6283dc3e1a838c7af5bf567bc1c2 100644 --- a/core/java/src/net/i2p/I2PAppContext.java +++ b/core/java/src/net/i2p/I2PAppContext.java @@ -687,14 +687,14 @@ public class I2PAppContext { } } - /** @deprecated unused */ + /** @deprecated used only by syndie */ public HMAC256Generator hmac256() { if (!_hmac256Initialized) initializeHMAC256(); return _hmac256; } - /** @deprecated unused */ + /** @deprecated used only by syndie */ private void initializeHMAC256() { synchronized (this) { if (_hmac256 == null) { diff --git a/core/java/src/net/i2p/crypto/HMAC256Generator.java b/core/java/src/net/i2p/crypto/HMAC256Generator.java index 3fc554639f5c6c6323cf6d303cd95fe3b4002e44..a4f541e34214ee1d4fd18b33d7f084e10d02134a 100644 --- a/core/java/src/net/i2p/crypto/HMAC256Generator.java +++ b/core/java/src/net/i2p/crypto/HMAC256Generator.java @@ -13,9 +13,12 @@ import org.bouncycastle.crypto.macs.I2PHMac; /** * Calculate the HMAC-SHA256 of a key+message. All the good stuff occurs * in {@link org.bouncycastle.crypto.macs.I2PHMac} and - * {@link org.bouncycastle.crypto.digests.MD5Digest}. + * {@link net.i2p.crypto.Sha256Standalone}. * - * deprecated unused + * This should be compatible with javax.crypto.Mac.getInstance("HmacSHA256") + * but that is untested. + * + * deprecated used only by syndie */ public class HMAC256Generator extends HMACGenerator { public HMAC256Generator(I2PAppContext context) { super(context); }