Class DRBGTestVector
java.lang.Object
org.bouncycastle.crypto.prng.test.DRBGTestVector
-
Constructor Summary
ConstructorsConstructorDescriptionDRBGTestVector
(BlockCipher cipher, int keySizeInBits, EntropySource eSource, boolean predictionResistance, String nonce, int securityStrength, String[] expected) DRBGTestVector
(BlockCipher cipher, int keySizeInBits, EntropySource eSource, boolean predictionResistance, String nonce, int securityStrength, String name, String[] expected) DRBGTestVector
(Digest digest, EntropySource eSource, boolean predictionResistance, String nonce, int securityStrength, String[] expected) DRBGTestVector
(Digest digest, EntropySource eSource, boolean predictionResistance, String nonce, int securityStrength, String name, String[] expected) -
Method Summary
Modifier and TypeMethodDescriptionaddAdditionalInput
(String input) byte[]
additionalInput
(int position) byte[]
expectedValue
(int index) getName()
int
byte[]
nonce()
byte[]
boolean
int
-
Constructor Details
-
DRBGTestVector
public DRBGTestVector(Digest digest, EntropySource eSource, boolean predictionResistance, String nonce, int securityStrength, String name, String[] expected) -
DRBGTestVector
public DRBGTestVector(Digest digest, EntropySource eSource, boolean predictionResistance, String nonce, int securityStrength, String[] expected) -
DRBGTestVector
public DRBGTestVector(BlockCipher cipher, int keySizeInBits, EntropySource eSource, boolean predictionResistance, String nonce, int securityStrength, String name, String[] expected) -
DRBGTestVector
public DRBGTestVector(BlockCipher cipher, int keySizeInBits, EntropySource eSource, boolean predictionResistance, String nonce, int securityStrength, String[] expected)
-
-
Method Details
-
getDigest
-
getCipher
-
keySizeInBits
public int keySizeInBits() -
getName
-
addAdditionalInput
-
setPersonalizationString
-
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)
-