HMAC256 is used by Syndie

This commit is contained in:
zzz
2011-06-02 13:30:33 +00:00
parent c767644c8f
commit 94af6550fa
2 changed files with 7 additions and 4 deletions

View File

@ -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) {

View File

@ -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); }