Notes 20110124 CIS 6650 Computer Security

From SnOwy - Ed's Wiki Notebook

Jump to: navigation, search

Contents

Sieve of Erastothenes

for the assignment

The number of primes up to a certain integer

Group

Number Theory

Quasi-Inverses

Finding solutions for mod algebra

Example 2

Powers of an Element

i     0 1 2 3 4 5 6 7
3^i%7 1 3 2 6 4 5 1 3

Fermat's Little Theorem

      1 2 3 4
1^i%5 1 1 1 1
2^i%5 2 4 3 1
3^i%5 3 4 2 1
4^i%5 4 1 4 1

Fast Exponentiation

  | 1 | 0 | 1 |
3 | 3 | 9 | 3 |
        | 1 0  0  1  0  1
3^i%100 | 3 9 81 83 89 63

Assignment

Chinese Remainder Theorem

a1 = 2, a2 = 3, a3 = 4
n1 = 3, n2 = 5, n3 = 7
m1 = 35, m2 = 21, m3 = 15
m1inv = 2, m2inv = 1, m3inv = 1
c1 = 70, 21, 15
a = 70(2) + 21(3) + 15(4) (mod 105)
a = 35 + 18 + 53

Charlie's Method

(1, 0, 2)S(3, 5, 7)

Administrivia

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox