Class DRBGTestVector
- java.lang.Object
-
- org.bouncycastle.crypto.prng.test.DRBGTestVector
-
public class DRBGTestVector extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DRBGTestVector(BlockCipher cipher, int keySizeInBits, EntropySource eSource, boolean predictionResistance, java.lang.String nonce, int securityStrength, java.lang.String[] expected)
DRBGTestVector(BlockCipher cipher, int keySizeInBits, EntropySource eSource, boolean predictionResistance, java.lang.String nonce, int securityStrength, java.lang.String name, java.lang.String[] expected)
DRBGTestVector(Digest digest, 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 name, java.lang.String[] expected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DRBGTestVector
addAdditionalInput(java.lang.String input)
byte[]
additionalInput(int position)
EntropySource
entropySource()
byte[]
expectedValue(int index)
BlockCipher
getCipher()
Digest
getDigest()
java.lang.String
getName()
int
keySizeInBits()
byte[]
nonce()
byte[]
personalizationString()
boolean
predictionResistance()
int
securityStrength()
DRBGTestVector
setPersonalizationString(java.lang.String p)
-
-
-
Constructor Detail
-
DRBGTestVector
public DRBGTestVector(Digest digest, EntropySource eSource, boolean predictionResistance, java.lang.String nonce, int securityStrength, java.lang.String name, java.lang.String[] expected)
-
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 name, 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)
-
-
Method Detail
-
getDigest
public Digest getDigest()
-
getCipher
public BlockCipher getCipher()
-
keySizeInBits
public int keySizeInBits()
-
getName
public java.lang.String getName()
-
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)
-
-