1. Trang chủ
  2. » Cao đẳng - Đại học

More Number Theory and The RSA Cryptosystem

51 154 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 51
Dung lượng 405,51 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

More Number Theory and The RSA Cryptosystem... Write function gcda,b in Python example... The order of a group element... The order of group elements• Example: Find the order of 3 and 2

Trang 1

More Number Theory

and The RSA Cryptosystem

Trang 2

More number Theory

Trang 3

Write function gcd(a,b)

in Python

example

Trang 4

Exercise

Trang 5

Write

gcdex(a, b, ’s’, ’t’)

in Python

example

Trang 6

Exercise

Trang 7

Multiplicative inverse

Trang 8

• Proof

Trang 10

Exercise

Trang 11

Write

a^(-1) mod b in

Python

Trang 12

Chinese Remainder Theorem

Trang 13

Write function

chrem([a1, …, ar],[m1, …, mr]) in Python

Trang 15

Exercise

Trang 16

The order of a group element

Trang 17

The order of group elements

• Example: Find the order of 3 and 2 in Z7*

Trang 18

• The order of an element g in Z7* must divides 6, ord(g) is in{1, 2, 3, 6}.

• The order of an element g in Z11* must divides 10, ord(g) is in{1, 2, 5, 10}.

Trang 19

Facts

Trang 20

Primitive element

Definition: An element having order p – 1 modulo p is

call a primitive element modulo p

Trang 23

Exercise

Trang 24

Public key cryptosystem

Trang 25

Symmetric key cryptosystem

Trang 26

Public key cryptosystem (PKC)

Trang 27

Remind: One-way function

Trang 28

The RSA cryptosystem

Trang 30

Exercise: show that (xb)a = x (mod n) if x in Zn\ Zn*.

Trang 31

Example

Trang 32

Cryptool it!

Trang 33

The trapdoor in RSA

Trang 34

RSA Parameter generation

Trang 35

• Fast exponentiation

Trang 36

Primality testing

Trang 37

A simple deterministic algorithm

Trang 38

Randomized Algorithm

• They can make random choices during their

execution

• Las Vegas algorithm:

– may fail to give an answer, but if the algorithm does return

an answer, then the answer must be correct.

• Mote Carlo algorithm:

Trang 39

Quadratic residue

Trang 40

Legendre symbol

Trang 42

Jacobi symbol

Trang 43

Example

Trang 44

Compute Jacobi symbol

Trang 47

The Solovay-Strassen Algorithm

Trang 48

The Solovay-Strassen Algorithm properties

• This is a yes-biased Monte Carlo algorithm with

error probability at most ½

• If we run the algorithm m times, the probability that such an integer n is prime is 1 – 2-m

such an integer n is prime is 1 – 2

Write isprime(a) in Python;

Trang 49

Factoring Algorithms

Trang 50

60 = 2 * 2 * 3* 5

Trang 51

The three most effective algorithms

1 The Quadratic Sieve

2 The Elliptic Curve Factoring Algorithm

3 The Number Field Sieve

write ifactor(n) in Python

Ngày đăng: 20/12/2017, 08:50

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN