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 DRBGTestVectoraddAdditionalInput(java.lang.String input)byte[]additionalInput(int position)EntropySourceentropySource()byte[]expectedValue(int index)BlockCiphergetCipher()DigestgetDigest()java.lang.StringgetName()intkeySizeInBits()byte[]nonce()byte[]personalizationString()booleanpredictionResistance()intsecurityStrength()DRBGTestVectorsetPersonalizationString(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)
-
-