Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2020-12-15 22:20:26 +01:00
parent 891a862eb8
commit 56ba08a7af
Signed by: y0rune
GPG Key ID: F204C385F57EB348
5 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.mpv *.mpv
*.mkv *.mkv
*.mp4 *.mp4
*.jpg

View File

@ -83,7 +83,7 @@ end
def sumaPunktow(a,b,p,x1,y1,x2,y2) def sumaPunktow(a,b,p,x1,y1,x2,y2)
# P + Q = R # P + Q = R
if (x1 != x2) && (y1 != y2) if (x1 != x2)
lambda = (((y2 - y1) % p) * reciprocal_Phi_p((x2 - x1),p)) % p lambda = (((y2 - y1) % p) * reciprocal_Phi_p((x2 - x1),p)) % p
x3 = (betterExponentiation(lambda,2,p) - (x1 % p) - (x2 % p)) % p x3 = (betterExponentiation(lambda,2,p) - (x1 % p) - (x2 % p)) % p
y3 = (lambda * (x1 - x3) - y1) % p y3 = (lambda * (x1 - x3) - y1) % p

BIN
8-lab/lab4_kryptoalgo.pdf Normal file

Binary file not shown.

1
module2.rb Symbolic link
View File

@ -0,0 +1 @@
6/krzywa.rb