Added the szyfrowanie-krzywej-tmp.rb

This commit is contained in:
Marcin Woźniak 2020-12-12 01:16:55 +01:00
parent dcd6ab195d
commit 45ae34eb5c
Signed by: y0rune
GPG Key ID: F204C385F57EB348
3 changed files with 31 additions and 0 deletions

BIN
6/lab3_kryptoalgo.pdf Normal file

Binary file not shown.

BIN
7-cw/7.pdf Normal file

Binary file not shown.

View File

@ -0,0 +1,31 @@
#!/usr/bin/ruby
# coding: utf-8
###################################
#
# Marcin Woźniak
# s434812
#
###################################
load '../module.rb'
load '../6/krzywa.rb'
def genKeysElGamalKrzywaEliptyczna
p = generate(300)
if primalityTest(p)
krzywa = generatorKrzywej(p)
a = krzywa[0].to_i
b = krzywa[1].to_i
while
# if x < ord = #E(Fp)
# x = SecureRandom.random_number(1..ord)
# end
end
end