1
$\begingroup$

I've been trying to use AES from OpenSSL and got to know that I need to use the EVP-based implementations rather than the AES_*.

I need to use AES-128 implementation to generate bitstreams, essentially passing various keys, and plaintexts to analyze the ciphertext generated for cryptanalysis of the algorithm. I went through the Question, How do I decide what mode to use? which linked to the NIST documentation and an answer. I unfortunately am unable to decide on what implementation would be good for me to use.

I will be using plaintexts of the order of 2^14- 2^16 bits. I wish to know what would be the best implementation to use.

(TLDR: Need to use AES-128 implementations for cryptanalysis for academia, not sure which implementation from EVP_AES to use, will be using large plain texts)

$\endgroup$
8
  • $\begingroup$ well what are you trying to analyze? $\endgroup$ Mar 3, 2023 at 19:05
  • $\begingroup$ @user253751 the pattern of the ensuing bitstream, its linear complexity, and doing further analysis $\endgroup$
    – Luce
    Mar 3, 2023 at 21:20
  • 1
    $\begingroup$ Ensuing bit stream using what? AES is a block cipher. There are things like Monte Carlo tests but I wonder how useful those would be. Linear complexity is a property of the mathematical definition of a block cipher, you don't need any implementation for that. That leaves "further analysis". I would propose you do that after gaining some more understanding about how block ciphers operate. $\endgroup$
    – Maarten Bodewes
    Mar 3, 2023 at 21:33
  • $\begingroup$ By the way, no idea why you have a specific set of plaintext, but I wonder why you would not just write 2 KiB to 8 KiB. $\endgroup$
    – Maarten Bodewes
    Mar 3, 2023 at 21:36
  • $\begingroup$ Since I am working with 128-bit keys, I want to use plaintext of the order of 4n^2 ideally, which amounts to 2^16 bits. As for "further analysis" I wish to compute the Maximal Order Complexity, the end goal is to check how vulnerability in the keys and the plaintext used affect the weakness of the ciphertext. I shall read through the posts about the Monte Carlo tests linked. $\endgroup$
    – Luce
    Mar 3, 2023 at 21:43

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.