Pārlūkot izejas kodu

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 pirms 1 gada
vecāks
revīzija
77cd0a6558
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. +6
    -0
      syote_comms.py

+ 6
- 0
syote_comms.py Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt