Преглед изворни кода

support generating a private/public key pair by running this...

Need to think a bit more as it requires the test library, which isn't
immediately available...

Likely need to make this a proper package and put the library there..
main
John-Mark Gurney пре 1 година
родитељ
комит
77cd0a6558
1 измењених фајлова са 6 додато и 0 уклоњено
  1. +6
    -0
      syote_comms.py

+ 6
- 0
syote_comms.py Прегледај датотеку

@@ -225,6 +225,12 @@ def comms_process_wrap(state, input):

return outbuf._from()

if __name__ == '__main__':
key = X25519.gen()

print(key.getpriv().hex())
print(key.getpub().hex())

class TestX25519(unittest.TestCase):
PUBLIC_BYTES = EC_PUBLIC_BYTES
PRIVATE_BYTES = EC_PRIVATE_BYTES


Loading…
Откажи
Сачувај