Examination of Extended Megreleshvili Protocol for Multi Party Key Exchange
- Open terminal.
- From root directory, type command
sage
. - Make sure everything is fine.
- Set value for variable:
v
: public vector Matrix in `gf(q)``M
: public matrix Matrix() ingf(q)
r
: natural integer [3,..) example:r=10
- If you don't have
M
andv
for the key exchange code yet, run preparation code by typing in commandload("preparation.sage")
. - Load the algorithm using
load("<key_exchange_code_sage>.sage")
. - Test your algorithm
%timeit <key_exchange_code_sage>(r, M, v)
- In using
timeit
magic command, please refer to this link (https://ipython.org/ipython-doc/dev/interactive/magics.html#magic-timeit) M
andv
could be generated usingload("preparation.sage")
or you could set the value by hand.- Please refer to
preparation.sage
to identifyM
andv
's type.