org.bouncycastle.crypto.prng.test
Class DRBGTestVector
java.lang.Object
|
+--org.bouncycastle.crypto.prng.test.DRBGTestVector
- public class DRBGTestVector
- extends java.lang.Object
Constructor Summary |
DRBGTestVector(BlockCipher cipher,
int keySizeInBits,
EntropySource eSource,
boolean predictionResistance,
java.lang.String nonce,
int securityStrength,
java.lang.String[] expected)
|
DRBGTestVector(Digest digest,
EntropySource eSource,
boolean predictionResistance,
java.lang.String nonce,
int securityStrength,
java.lang.String[] expected)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DRBGTestVector
public DRBGTestVector(Digest digest,
EntropySource eSource,
boolean predictionResistance,
java.lang.String nonce,
int securityStrength,
java.lang.String[] expected)
DRBGTestVector
public DRBGTestVector(BlockCipher cipher,
int keySizeInBits,
EntropySource eSource,
boolean predictionResistance,
java.lang.String nonce,
int securityStrength,
java.lang.String[] expected)
getDigest
public Digest getDigest()
getCipher
public BlockCipher getCipher()
keySizeInBits
public int keySizeInBits()
addAdditionalInput
public DRBGTestVector addAdditionalInput(java.lang.String input)
setPersonalizationString
public DRBGTestVector setPersonalizationString(java.lang.String p)
entropySource
public EntropySource entropySource()
predictionResistance
public boolean predictionResistance()
nonce
public byte[] nonce()
personalizationString
public byte[] personalizationString()
securityStrength
public int securityStrength()
expectedValue
public byte[] expectedValue(int index)
additionalInput
public byte[] additionalInput(int position)