Tag Info

37

The key space of a cryptographic algorithm whose key length is $n$ is given by $2^n$ No. There is confusion between: keyspace (or key space) $\mathcal K$, which is the set of possible keys. keyspace size (or size of the keyspace) $\|\mathcal K\|$, which is the number of possible keys (an integer). key length (or key size) in bit, which can be defined as ...

9

In the substitution cipher, the answer lies in the permutations, a key is one of the all possible permutations of the alphabet (keyspace), i.e. each letter is substituted with another. Therefore, for a key of an alphabet with 26 characters, the first letter can have the 26, the second can have 25, etc. and the last letter can get only one letter for ...

5

The key of your misunderstanding is the following sentence: Assuming the key length is 26 The conceptual mistake you made is that you forgot the unit: Does "26" mean "26 bits", "26 decimal digits", "26 bytes" or even "26 GiB"? It should be obvious that there is a huge difference between "26 bits" and "26 GiB". ... and you forgot the unit "bits" in the ...

3

the key space should be 5 Something is $5$, but that's not the key space. The key space is the set $\{\mathtt{K1},\mathtt{K2},\mathtt{K3},\mathtt{K4},\mathtt{K5}\}$. We'll note it $\mathcal K$. The size of the key space (or key space size for short) $\|\mathcal K\|$ is $5$. The size of the key (or key size for short) in bits, that we'll note $k$, is the ...

2

No, likely this won't work. Almost all HSM's will only accept wrapping keys of a type that is compatible with the encryption / wrapping algorithm. Commonly it is impossible to get to the value of the key as well, so that won't save you. Sometimes you can wrap a key to export it and then re-import it again. Then you might be able to create a new AES key from ...

2

What would 226 represent? That would represent each letter being on or off which doesn't make much sense. With a substitution cipher, think of there being 26 choices for the letter to respresent A, 25 choices for the letter to represent B (when you've already used one letter for A), 24 for the letter to represent C (because two letters are used for A and ...

Only top voted, non community-wiki answers of a minimum length are eligible