Bouncy Castle Cryptography 1.50

org.bouncycastle.crypto.generators
Class KDFCounterBytesGenerator

java.lang.Object
  extended by org.bouncycastle.crypto.generators.KDFCounterBytesGenerator
All Implemented Interfaces:
DerivationFunction, MacDerivationFunction

public class KDFCounterBytesGenerator
extends java.lang.Object
implements MacDerivationFunction

This KDF has been defined by the publicly available NIST SP 800-108 specification.


Constructor Summary
KDFCounterBytesGenerator(Mac prf)
           
 
Method Summary
 int generateBytes(byte[] out, int outOff, int len)
           
 Mac getMac()
          return the MAC used as the basis for the function
 void init(DerivationParameters param)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KDFCounterBytesGenerator

public KDFCounterBytesGenerator(Mac prf)
Method Detail

init

public void init(DerivationParameters param)
Specified by:
init in interface DerivationFunction

getMac

public Mac getMac()
Description copied from interface: MacDerivationFunction
return the MAC used as the basis for the function

Specified by:
getMac in interface MacDerivationFunction

generateBytes

public int generateBytes(byte[] out,
                         int outOff,
                         int len)
                  throws DataLengthException,
                         java.lang.IllegalArgumentException
Specified by:
generateBytes in interface DerivationFunction
Throws:
DataLengthException
java.lang.IllegalArgumentException

Bouncy Castle Cryptography 1.50