Ver a proveniência

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 há 1 ano
ascendente
cometimento
77cd0a6558
1 ficheiros alterados com 6 adições e 0 eliminações
  1. +6
    -0
      syote_comms.py

+ 6
- 0
syote_comms.py Ver ficheiro

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


Carregando…
Cancelar
Guardar