Skip to main content

Questions tagged [rijndael]

Rijndael is a family of symmetric block-ciphers with block and keys sizes of 128, 160, 192, 224, or 256 bits.

Filter by
Sorted by
Tagged with
0 votes
0 answers
54 views

What block cipher should I use for encrypting GCM initialization vector counter-based nonce?

I'm implementing a mobile VPN product based on AES-GCM that should be resistant against fingerprinting the movements of mobile nodes. A difficulty is that the mobile nodes may not have the best ...
juhist's user avatar
  • 1,613
3 votes
0 answers
64 views

improved impossible differential crpytanalysis of 6-round rijndael

I'm studying the paper: "Improved Impossible Differential Cryptanalysis of Rijndael and Crypton". I've got two questions: Please explain the calculation performed for step 5? Step 4 ...
can balıkçı's user avatar
0 votes
0 answers
48 views

Java AES T-Tables Implementation

I am trying to implement an encryption function that uses the AES T-Tables implementation. I am quite sure that my roundKeys are correct. I also know that the initial round key addition in the ...
schegga_BC's user avatar
1 vote
2 answers
229 views

Role of IV in Perl's Crypt::Rijndael

Sorry in advance if I'm asking a stupid question: I thought the role of "IV" in encryption is to avoid having identical ciphertext for identical plaintext. So one could use some random IV. ...
U. Windl's user avatar
  • 229
2 votes
1 answer
44 views

Threshold of resistance against Linear Cryptanalysis

In the AES proposal, the last sentence on page 30 it is said: To be resistant against LC, it is a necessary condition that there are no linear trails with a correlation coefficient higher than 2^(n/2)...
Abdelrahman's user avatar
1 vote
1 answer
277 views

Chosen-plaintext attact on AES with MixColumns omitted

Jean-Philippe Aumasson' "Serious Cryptography" says: "Without MixColumns, changes in a byte would not affect any other bytes of the state. A chosen-plaintext attacker could then decrypt ...
Zyx's user avatar
  • 11
1 vote
1 answer
144 views

How do AES Substitution box's offer any additional security since it's 1 to 1?

If the Substitution box is 1 to 1 (a specific value can only ever be a specific box value), and the contents of Rijndael S-box is public, how does this offer any additional security? With AES the ...
Mark Thomas's user avatar
5 votes
1 answer
197 views

How do you arrive at this algorithm for dividing by 3 in the Galois field?

This function from Wikipedia calculates the sbox used in AES: ...
user7048748's user avatar
1 vote
2 answers
176 views

How is $Nb$ (number of columns) calculated in AES (Rijndael)?

The NIST publication for AES defines $Nb$ as: Number of columns (32-bit words) comprising the State. For this standard, Nb = 4. In Section 5.2: Key Expansion, $Nb$ has been used to calculate the ...
Amal K's user avatar
  • 111
0 votes
2 answers
293 views

Bringing a key to 256 bit by a hash algorithm

For example, if I use Rijndael for encryption, I have to specify a key of a certain length. For user convenience, I want the user to be able to use a key of any length. Then, to get the key to the ...
Luqus's user avatar
  • 37
0 votes
1 answer
208 views

AES MixColumn Polynomial Transformation [duplicate]

I just read about the AES MixColumn step, which can be calculated as: $$b(x)=c(x)a(x) \pmod{X^4 +1}$$ $a(x)$ is the column to encode and $c(x)=3x^3+x^2+x+2$ My question is: how did they calculate $c(x)...
Job Valère's user avatar
6 votes
1 answer
852 views

Why was Rijndael the only cipher to have a variable number of rounds?

Rijndael was the only AES candidate which defined a different number of rounds for their 128, 192, and 256-bit versions (10, 12, and 14, respectively). The others had a fixed number of rounds (32 for ...
forest's user avatar
  • 15.4k
1 vote
0 answers
74 views

Generation of Rijndael S-box [duplicate]

I'm an electrical engineering student and was doing a brief research regarding the round transformations of the AES-128 and came across the Wikipedia article describing the generation of the ...
ratbald_meyer_1995's user avatar
1 vote
1 answer
172 views

Security analysis of Rijndael (AES)

I was studying the Rijndael Block Cipher for an assignment. I am looking for a (layman-ish) explanation as to why the cipher is secure. Googling did not seem to be give any good explanations. The ...
hello's user avatar
  • 113
7 votes
2 answers
2k views

Need help understanding math behind Rijndael S-Box

in Rijndael SubBytes() step all bytes of input block are substituted based on a lookup table S-Box. S-Box is initialized by taking all elements of $GF(2^8)$, ...
Ach113's user avatar
  • 199
1 vote
1 answer
476 views

32bit AES equals to 8bit AES?

I am looking into an article about 32bit CPU/MCU software implementation of AES and there are some weird changes over there. Like shift-rows. It seems that the shift-rows in the 32bit implementation ...
KHSX's user avatar
  • 41
2 votes
1 answer
401 views

Why are polynomials chosen with coefficients in $GF(2^{8})$ in Section 4.3 of NIST FIPS 197 for implementing AES?

I was trying to understand AES (Rijndael) from a very mathematical perspective. I'm quite new to abstract algebra and Galois Fields. I understood that we are considering a byte (8 bits) as a ...
Aravind A's user avatar
  • 1,060
0 votes
0 answers
101 views

Clarification on polynomial used in Rijndael MixColumns implementation

I'm seeing the fundamental function in open source code for Rijndael MixColumns implementation. (Picture below) If i translate the 8'h1b correctly, it is represent the polynomial of $x^4+x^3+x+1$. ...
Pi-Turn's user avatar
  • 93
3 votes
1 answer
335 views

AES S-box and Nothing Up My Sleeve

Cryptographic primitives should have nothing-up-my-sleeve property to prove their designers don't have an advantage in using them versus the general public. For example, Blowfish is using binary ...
Paul Miller's user avatar
1 vote
1 answer
272 views

Why are AES keys increments of 64-bits?

Why are AES keys increments of 64-bits? Rijndael, which subsequently became AES, allowed key increments in 32-bits (128, 160, 192, 224, and 256 bits). However, AES made it 128, 192, or 256. My guess ...
Student's user avatar
  • 111
1 vote
1 answer
358 views

What are easy yet fool proof ways of ensuring that AES encryption algorithm works like it should and no bugs/developer mistakes have sneaked in?

As a developer when it comes to encryption, there is an insane amount of weakness/mistakes/bugs that the programmer can add to the encryption algorithm. So a pretty general question to the crypto pro’...
CoffeDev's user avatar
  • 123
-1 votes
2 answers
416 views

Which character / byte to use to divide AES ciphertext into chuncks?

I am implementing a cross platform AES cipher. Everything works fine except for super large file, those I encrypt by for example taking first 1kb of the file generating a cipher message (all chunks ...
CoffeDev's user avatar
  • 123
-1 votes
1 answer
65 views

Rijndaelcipher mix column query

I quote a wikipedi para that says The operation consists in the modular multiplication of two four-term polynomials whose coefficients are elements of ${\displaystyle \operatorname {GF} (2^{8})} $. ...
user311790's user avatar
5 votes
1 answer
2k views

AES reverse Rijndael key schedule with decryption round keys

I want to get the original encryption key (32 byte) of AES 256 (CBC) implementation. The implementation has the values of the inversed round keys values hard coded into the decryption function. I ...
Francesco's user avatar
0 votes
0 answers
436 views

Is it possible to recover the key to a decrypted file? [duplicate]

Is it possible to recover the key to a decrypted file if you have the initialization vector and it uses RijndaelManaged in CBC mode? If so how? The file I want to recover the key from is a xml that ...
lovemyencryptedxml's user avatar
0 votes
0 answers
91 views

Calculating the inverse for a Rijndael s-box [duplicate]

I want to calculate a Rijndael S-box but something went wrong. How can I calculate the inverse? In the following is my approach: given: $f(x)=x^8+x^4+x^3+x+1 \rightarrow$ binary: 100011011 0x12 = ...
Larsus's user avatar
  • 33
2 votes
1 answer
101 views

What is the difference between the 23 bi-affine and the 39 fully quadratic equations of the rijndael sbox?

In Cryptanalysis of Block Ciphers with Overdefined Systems of Equations Nicolas Courtois and Josef Pieprzyk define 23 so called bi-affine equations (in Appendix A of the paper) between the input x and ...
ph_0's user avatar
  • 145
19 votes
2 answers
3k views

Can neural cryptanalysis be applied to AES?

In this Wikipedia article about Neural cryptography (section applications) it states: In 1995, Sebastien Dourlens applied neural networks to cryptanalyze DES by allowing the networks to learn how ...
AleksanderCH's user avatar
  • 6,502
17 votes
2 answers
2k views

Is there a contingency plan in the event of a catastrophic attack on AES?

NIST selected Rijndael in 2000 to be AES. In a paper from the Serpent authors, they mention that there was the possibility of choosing a second cipher as a backup in the case of any severe breaks: ...
forest's user avatar
  • 15.4k
0 votes
1 answer
5k views

Any side effects of switching from Rijndael to AES in a .net application?

Our company would like to update our .Net apps so that they can run on Windows machines that require FIPS compliance. Currently we are using the System.Security.Cryptography.Rijndael class. I changed ...
jascur2's user avatar
2 votes
0 answers
206 views

How can the Rijndael SBox be written as a linearized polynomial?

In Cryptanalysis of Block Ciphers with Overdefined Systems of Equations Nicolas Courtois and Josef Pieprzyk state (in Appendix A) that the Rijndael SBox can be written as a "linearized polynomial" $S(...
ph_0's user avatar
  • 145
6 votes
1 answer
738 views

Who said "32 round Rijndael" in the third AES Conference

This is a historical question. In the third AES Conference of NIST (AES3), April 13-14, 2000, New York, near the end of the conference, one representative for each of the last 5 candidates sit on a ...
kelalaka's user avatar
  • 49.3k
2 votes
0 answers
2k views

Risks using .NET RijndaelManaged with static Key and IV

A company I'm consulting for has a (quite old) home grown web SSO solution based on an encrypted cookie. The auth flow looks more or less like this: User hits protected page on integrated site Site ...
Ryan Bolger's user avatar
5 votes
1 answer
7k views

Is Rfc2898DeriveBytes random? C#

I am trying to wrap my head around encryption in .NET. I am trying to implement a simple solution in ASP.NET Core to encrypt a cookie containing some non-meaningful numbers to outsiders. I need to be ...
Sha's user avatar
  • 153
5 votes
1 answer
167 views

Implications of identical round keys in AES (Rijndael)

When reading up on the Rijndael key schedule, I learned that the master key itself is used as a round key directly before the key schedule generates additional round keys. When a 256-bit key is used, ...
forest's user avatar
  • 15.4k
-1 votes
2 answers
4k views

AES S-box input and output question

I am new to cryptography. I am looking to understand how to answer this question from my class: Find below the S-box of AES. Given the input 01010011 in binary, calculate the output.
Randal's user avatar
  • 29
6 votes
1 answer
204 views

Replacing a block cipher's key schedule with a stream cipher

Take Rijndael (AES) of block size 128 and reformulate it with a tweakable number of rounds and no key schedule. Suppose we obtain: Rijndael128(r, k) where r is ...
user avatar
0 votes
1 answer
301 views

How to find the right additive polynomial in inverse affine transformation in AES

Addition polynomial affine transformation rijndael is (x^7 + x^6 + x^2 + x) The affine transformation represented in A(x) A(x) = (x^7 + x^6 + x^2 + x) + a(x)(x^7 + x^6 + x^5 + x^4 + 1)mod x^8 + 1 ...
Mohamed Abdelkawy's user avatar
2 votes
1 answer
1k views

AES S-Box implementation: from a byte-by-byte to 2-bytes-by-2bytes?

The S-Box in AES encryption is a byte substitution step. Is it possible to perform the substitution 2 bytes at a time, rather than 1 byte? What are the challenges/trade-offs involved?
Debayan's user avatar
  • 21
2 votes
1 answer
9k views

AES key expansion for 192-bit

In AES-192 key expansion there are 12 rounds and 52 keys. I am not sure why 52 keys are derived since each block consist of 4 rows and 6 columns (192 bit keys). So if the block is 4 x 4 then we ...
Johnny's user avatar
  • 123
2 votes
1 answer
1k views

AES - Finite Field Multiplication on 8 Bit Platform

Section 4.1.1 "Finite Field Multiplication"(page 53) of "The Design of Rijndael", it states How the equation 4.1 has been formed and transformed into equation 4.2? In section 2.1.6 "Polynomials ...
crypt's user avatar
  • 2,492
4 votes
1 answer
4k views

AES Mix Column Transformation

Section 3.4.3 "The MixColumns Step"(page 39) of "The Design of Rijndael", it states The columns of the state are considered as polynomials over $\operatorname{GF}(2^8)$ and multiplied modulo $x^4 ...
crypt's user avatar
  • 2,492
7 votes
1 answer
9k views

Confusion and Diffusion in the AES functions

I am pondering, how each of the four functions that a full AES round does consist of (Add Round Key, Substitute Bytes, Shift Rows and Mix Columns) add to the confusion and diffusion of the full AES. ...
mat's user avatar
  • 2,528
4 votes
1 answer
621 views

How does the Rijndael 192/256 bits block size mix column works?

I am quite comfortable about the 128 bits block size mix column operation, the maths behind it and how to implement it. However, what about the 192 and 256 bits block size? I can't find any paper ...
Pro7ech's user avatar
  • 43
1 vote
1 answer
3k views

Node.js/OpenSSL crypto library equivalent of a Rijndael implementation

I have a Rijndael function that I've implemented as a JavaScript port of a C reference implementation in a technical specification for the MILENAGE algorithm (ETSI TS 135 206 V14.0.0 (2017-04)). My ...
Ates Goral's user avatar
0 votes
0 answers
44 views

Amount of key expansion rounds in AES [duplicate]

I am currently in the process of learning how AES actually works and that works great as of now but when it comes to the Rijndael's key schedule I have a question. From what I have read, I have to ...
user avatar
2 votes
1 answer
592 views

Why did they choose $x^4+1$ for the MixColumns step in Rijndael/AES?

In The Design of Rijndael page 39, It describe the design criteria for MixColumns step Dimensions. The transformation is a bricklayer transformation operatingon 4-byte columns. Linearity. The ...
Rikeijin's user avatar
  • 211
3 votes
1 answer
699 views

Prove the branch of number of Advanced Encryption Standard

In the Advanced Encryption Standard (AES) document: page 27 section 7.3.1, It defines branch number. It said " Let F be a linear transformation acting on byte vectors and let the byte weight ...
Rikeijin's user avatar
  • 211
3 votes
1 answer
2k views

Construction of S-box in AES

In my introductory cryptography class. There is a line describe the construction of S-box in AES "The S-box of AES is constructed by combining a function $h(x)=x^{254}$ defined on $GF(256)$ with an ...
Rikeijin's user avatar
  • 211
2 votes
1 answer
781 views

How are Rijndael's S-Boxes generated?

Wikipedia: Rijndael's Forward S-box I'm writing C Code to generate S-boxes but I'm stuck. Would you mind explaining one entry of the S-box? (say for x = 0x2). ...
Mithil's user avatar
  • 23