Top Description Fields Constructors Methods
org.bouncycastle.crypto.internal.params

public final Class KDFFeedbackParameters

extends Object
implements DerivationParameters
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.internal.DerivationParameters
Imports
org.bouncycastle.crypto.internal.DerivationParameters, org.bouncycastle.util.Arrays

Note that counter is only supported at the location presented in the NIST SP 800-108 specification, not in the additional locations present in the CAVP test vectors.

Field Summary

Modifier and TypeField and Description
public static final int
public static final int
public static final int
private final int
private final byte[]
private final byte[]
private final byte[]
private final int
r

private static final int
private final boolean

Constructor Summary

AccessConstructor and Description
private
KDFFeedbackParameters(int counterLocation, byte[] ki, byte[] iv, byte[] fixedInputData, int r, boolean useCounter)

Method Summary

Modifier and TypeMethod and Description
public static KDFFeedbackParameters
createWithCounter(int counterLocation, byte[] ki, final byte[] iv, byte[] fixedInputData, int r)

public static KDFFeedbackParameters
createWithoutCounter(byte[] ki, final byte[] iv, byte[] fixedInputData)

public int
public byte[]
public byte[]
public byte[]
public int
getR()

public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

AFTER_FIXEDback to summary
public static final int AFTER_FIXED
AFTER_ITERback to summary
public static final int AFTER_ITER
BEFORE_ITERback to summary
public static final int BEFORE_ITER
counterLocationback to summary
private final int counterLocation
fixedInputDataback to summary
private final byte[] fixedInputData
ivback to summary
private final byte[] iv
kiback to summary
private final byte[] ki
rback to summary
private final int r
UNUSED_Rback to summary
private static final int UNUSED_R
useCounterback to summary
private final boolean useCounter

Constructor Detail

KDFFeedbackParametersback to summary
private KDFFeedbackParameters(int counterLocation, byte[] ki, byte[] iv, byte[] fixedInputData, int r, boolean useCounter)

Method Detail

createWithCounterback to summary
public static KDFFeedbackParameters createWithCounter(int counterLocation, byte[] ki, final byte[] iv, byte[] fixedInputData, int r)
createWithoutCounterback to summary
public static KDFFeedbackParameters createWithoutCounter(byte[] ki, final byte[] iv, byte[] fixedInputData)
getCounterLocationback to summary
public int getCounterLocation()
getFixedInputDataback to summary
public byte[] getFixedInputData()
getIVback to summary
public byte[] getIV()
getKIback to summary
public byte[] getKI()
getRback to summary
public int getR()
useCounterback to summary
public boolean useCounter()