I have come across the following sentence in my cryptography class regarding asymmetric cryptography:
Number $x$ is any number from $\mathbb{Z}_{30}$.
What does the symbol $\mathbb{Z}_{30}$ means?
I have come across the following sentence in my cryptography class regarding asymmetric cryptography:
Number $x$ is any number from $\mathbb{Z}_{30}$.
What does the symbol $\mathbb{Z}_{30}$ means?
Probably "the integers modulo 30".
$\mathbb Z_{30} = \{0,1,2,3,4,5,........,27,28,29\}$ [1]
With modular arithmetic. That is $a, b\in \mathbb Z_{30}$ then
$a+b = \begin{cases} a+b & \text{if }a+b <30\\a+b-30 &\text{if} a+ b \ge 30\end{cases}$
$a\cdot b = \begin{cases} a\cdot b & \text{if }a\cdot b <30\\a+b-30*k &\text{if } k*30 \le a\cdot b - k*30 < 30(k+1)\end{cases}$
$a-b = \begin{cases} a-b & \text{if }a-b \ge 0\\a-b+30 &\text{if} a- b < 0\end{cases}$
Division is not a basic operation.
This is often called "remainder" arithmetic because you are doing arithmetic because it is exactly normal arithmetic but where you are only concerned with the remainders of things after you divide by $30$.
That is: "$57$ is really $27$ when we take the remainder; and $62$ is really $2$ when we take the remainder; so $57*62$ is really $27*2 = 54$ and $54$ is really $24$ when we take the remainder so $57*62\equiv 54 \pmod{30}$".
=======
[1] This is actually ..... well, one way of thinking about it.... In abstract mathematics this explanation is .. an oversimplification. The following is a more common interpretations. It's a bit more subtle and theoretically quite different. But they are equivalent and in practice, tend to be the same:
$\mathbb Z_{30}$ is a way of splitting all the numbers into thirty sets. The thirty sets are $[0], [1],.......,[29]$ where each set $[k] = \{$ all integers that have $k$ as a remainder when you divide by $30\}$.
So $21$ is not just the number, twenty-one, it is actually the set of all numbers that have $21$ as a remainder... $\{....-39,-9,21,51,81,.....\}$.
And you can add and multiply these sets together.
$$\{......,-39,-9,21,51,81,.....\} + \{......,-46,-16,14, 44,74...\} = \{....,-55, -25,5,35,65,.....\}$$. Or in other words: $21 + 14 = 35= 30+5=5$.
And $$21\times 14 = \{......,-39,-9,21,51,81,.....\} \times \{......,-46,-16,14, 44,74...\}= \{...., -66,-36,-6,24,54,.....,264,294,324,......\}$$. Or in other words $21\times 14 = 294 = 9*30 + 24 = 24$.
But it's just easier to think of it as "remainder" arithmetic. And in practice it is exactly the same thing.
........