or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Cryptography and computer security - Tutorial 15.12.2020
Discrete logarithm problem
Baby-step/giant-step algorithm (Shanks's algorithm)
Pohlig-Hellman algorithm
Index calculus algorithm
Exercise 1
Determine the time and space complexities of the exhaustive search and the baby-step/giant-step algorithm for computing the discrete logarithm.
Exhaustive search:
Baby-step/giant-step:
Exercise 2
Find \(\log_{47} 191\) in \(\mathbb{Z}^*_{829}\) using the baby-step/giant-step algorithm.
Computation
Exercise 3
Find \(\log_2 181\) in \(\mathbb{Z}^*_{197}\) using the Pohlig-Hellman algorithm. Then, compute \(\log_{11} 2020\) in \(\mathbb{Z}^*_{15121}\).
Computation
Exercise 4
Find \(\log_5 4389733\) and \(\log_5 1234567\) in \(\mathbb{Z}^*_{9330887}\) using the index calculus method.
Computation
Exercise 5
Find \(\log_{47} 191\) in \(\mathbb{Z}^*_p\) for
\[ \begin{aligned} p \in \{&{} 100000000003, 10000000000000000051, 1000000000000000000117, \\ &{} 10000000000000000000000343, 10000000000000000000000000331\}. \end{aligned} \]
Compare the running times of the baby-step/giant-step, Pohlig-Hellman and index calculus algorithms.