net.i2p.crypto
Class HMACSHA256Generator

java.lang.Object
  extended bynet.i2p.crypto.HMACSHA256Generator

public class HMACSHA256Generator
extends java.lang.Object

Calculate the HMAC-SHA256 of a key+message. Currently FAKE - returns a stupid kludgy hash: H(H(key) XOR H(data)). Fix me!


Constructor Summary
HMACSHA256Generator(I2PAppContext context)
           
 
Method Summary
 Hash calculate(SessionKey key, byte[] data)
          This should calculate the HMAC/SHA256, but it DOESNT.
static HMACSHA256Generator getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HMACSHA256Generator

public HMACSHA256Generator(I2PAppContext context)
Method Detail

getInstance

public static HMACSHA256Generator getInstance()

calculate

public Hash calculate(SessionKey key,
                      byte[] data)
This should calculate the HMAC/SHA256, but it DOESNT. Its just a kludge. Fix me.