Exemplo n.º 1
0
 /// <summary>
 /// This constructor is used to setup the parameters used for code generation.
 /// </summary>
 /// <param name="keySearcher">The KeySearcher instance (only used for GuiLogMessages).</param>
 /// <param name="encryptedData">The byte array which contains the data which should be encrypted.</param>
 /// <param name="iv">The IV vector</param>
 /// <param name="encryptionController">The IControlEncryption instance of the encryption plugin to use.</param>
 /// <param name="controlCost">The IControlCost instance of the cost function plugin to use.</param>
 /// <param name="approximateNumberOfKeys">A maximum bound which indicates on how many key bruteforcing at once the OpenCL code should be layed out.</param>
 public KeySearcherOpenCLCode(KeySearcher keySearcher, byte[] encryptedData, byte[] iv, IControlEncryption encryptionController, IControlCost controlCost, int approximateNumberOfKeys)
 {
     this.keySearcher             = keySearcher;
     this.encryptedData           = encryptedData;
     this.iv                      = iv;
     this.encryptionController    = encryptionController;
     this.controlCost             = controlCost;
     this.approximateNumberOfKeys = approximateNumberOfKeys;
 }
Exemplo n.º 2
0
 public KeyQualityHelper(IControlCost costFunction)
 {
     this.costFunction = costFunction;
 }