forked from I2P_Developers/i2p.i2p
HMAC256 is used by Syndie
This commit is contained in:
@ -687,14 +687,14 @@ public class I2PAppContext {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated unused */
|
/** @deprecated used only by syndie */
|
||||||
public HMAC256Generator hmac256() {
|
public HMAC256Generator hmac256() {
|
||||||
if (!_hmac256Initialized)
|
if (!_hmac256Initialized)
|
||||||
initializeHMAC256();
|
initializeHMAC256();
|
||||||
return _hmac256;
|
return _hmac256;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated unused */
|
/** @deprecated used only by syndie */
|
||||||
private void initializeHMAC256() {
|
private void initializeHMAC256() {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
if (_hmac256 == null) {
|
if (_hmac256 == null) {
|
||||||
|
@ -13,9 +13,12 @@ import org.bouncycastle.crypto.macs.I2PHMac;
|
|||||||
/**
|
/**
|
||||||
* Calculate the HMAC-SHA256 of a key+message. All the good stuff occurs
|
* Calculate the HMAC-SHA256 of a key+message. All the good stuff occurs
|
||||||
* in {@link org.bouncycastle.crypto.macs.I2PHMac} and
|
* 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 class HMAC256Generator extends HMACGenerator {
|
||||||
public HMAC256Generator(I2PAppContext context) { super(context); }
|
public HMAC256Generator(I2PAppContext context) { super(context); }
|
||||||
|
Reference in New Issue
Block a user