Top Description Fields Constructors Methods
org.bouncycastle.crypto.agreement.kdf

public Class GSKKFDGenerator

extends Object
implements DigestDerivationFunction
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.DigestDerivationFunction, org.bouncycastle.crypto.DerivationFunction
Imports
org.bouncycastle.crypto.DataLengthException, .DerivationParameters, .Digest, .DigestDerivationFunction, org.bouncycastle.util.Arrays, .Pack

BSI Key Derivation Function for Session Keys (see BSI-TR-03111 Section 4.3.3)

Field Summary

Modifier and TypeField and Description
private byte[]
private int
private final Digest
private byte[]
r

private byte[]
z

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
generateBytes(byte[] out, int outOff, int len)

Implements org.bouncycastle.crypto.DerivationFunction.generateBytes.

public Digest
getDigest()

Implements org.bouncycastle.crypto.DigestDerivationFunction.getDigest.

return the message digest used as the basis for the function
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufback to summary
private byte[] buf
counterback to summary
private int counter
digestback to summary
private final Digest digest
rback to summary
private byte[] r
zback to summary
private byte[] z

Constructor Detail

GSKKFDGeneratorback to summary
public GSKKFDGenerator(Digest digest)

Method Detail

generateBytesback to summary
public int generateBytes(byte[] out, int outOff, int len) throws DataLengthException, IllegalArgumentException

Implements org.bouncycastle.crypto.DerivationFunction.generateBytes.

getDigestback to summary
public Digest getDigest()

Implements org.bouncycastle.crypto.DigestDerivationFunction.getDigest.

Doc from org.bouncycastle.crypto.DigestDerivationFunction.getDigest.

return the message digest used as the basis for the function

initback to summary
public void init(DerivationParameters param)

Implements org.bouncycastle.crypto.DerivationFunction.init.