Score:-1

What is the time and space complexity of the AES S-boxes?

us flag

What are the time and space complexity of the AES S-boxes? Could someone please explain how these are determined?

kelalaka avatar
in flag
Constant since there is no $n$ to consider. This might be a homework question. One should talk about the memory requirements that really depend on how they are implemented and the number of operations that still depend on how they are inplemented.
Score:3
in flag

Time $O(1)$ Memory $O(1)$ We can implement S box with a lookup, or as a circuit or recreate the original GF polynom used to generate it. In all cases it's a fixed size, it wouldn't be AES otherwise. And with no n. to discuss the time and memory are constant.

As a more general note complexity notations are problematic in cryptography, also breaking AES via bruteforce is technically $O(1)$ so we often talk about number of operations, and say things like $2^{256}$ operations, while often keeping it vague what the operation is. Sometimes it is invocation of the cryptographic primitive which makes it clear and we can count, but often we do something else and what is the opertaions we are counting becomes murky.

SAI Peregrinus avatar
si flag
Even more general version of your second paragraph: almost every cryptographic function has a finite maximum input size. Big-O notation deals with functions' behavior in the limit as the input size goes to infinity, and does not apply to functions with limited input size.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.