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
Mandvfor 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
timeitmagic command, please refer to this link (https://ipython.org/ipython-doc/dev/interactive/magics.html#magic-timeit) Mandvcould be generated usingload("preparation.sage")or you could set the value by hand.- Please refer to
preparation.sageto identifyMandv's type.