Class DRBGTestVector

java.lang.Object
org.bouncycastle.crypto.prng.test.DRBGTestVector

public class DRBGTestVector extends Object
  • 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

      public Digest getDigest()
    • getCipher

      public BlockCipher getCipher()
    • keySizeInBits

      public int keySizeInBits()
    • getName

      public String getName()
    • addAdditionalInput

      public DRBGTestVector addAdditionalInput(String input)
    • setPersonalizationString

      public DRBGTestVector setPersonalizationString(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)