#UNIT TEST
##MỤC LỤC
| ALL | |
| All messages in the mailbox; the default initial key for | |
| ANDing. | |
| ANSWERED | |
| Messages with the \Answered flag set. | |
| BCC | |
| Messages that contain the specified string in the envelope | |
| structure's BCC field. |
| # Basics of Elliptic Curve Cryptography implementation on Python | |
| import collections | |
| def inv(n, q): | |
| """div on PN modulo a/b mod q as a * inv(b, q) mod q | |
| >>> assert n * inv(n, q) % q == 1 | |
| """ | |
| for i in range(q): | |
| if (n * i) % q == 1: |
| (ping-Qi9wEmSd) ➜ ping python ping.py | |
| ---> 0.000 s: Ping host #000 | |
| ---> 0.000 s: Ping host #001 | |
| ---> 0.000 s: Ping host #002 | |
| <--- 0.369 s: Pinged host #000 in 0.363 s | |
| <--- 0.625 s: Pinged host #002 in 0.624 s | |
| <--- 0.826 s: Pinged host #001 in 0.822 s | |
| ---> 2.006 s: Ping host #001 | |
| <--- 2.917 s: Pinged host #001 in 0.906 s | |
| ---> 3.004 s: Ping host #000 |