.
This commit is contained in:
parent
96b0d4edf7
commit
de079efad5
|
@ -1,9 +1,11 @@
|
|||
(load "ed25519.l")
|
||||
|
||||
(setq SK (range 0 63))
|
||||
(do 10
|
||||
(do 1
|
||||
(setq PK (publickey (head 32 SK)))
|
||||
(println 'PK PK)
|
||||
(setq SK (signature SK (head 32 SK) PK)) )
|
||||
|
||||
(println (L2hex SK))
|
||||
(msg 'ok)
|
||||
(bye)
|
||||
|
|
12
monocypher-ed25519.l
Normal file
12
monocypher-ed25519.l
Normal file
|
@ -0,0 +1,12 @@
|
|||
(load "monocypher-pil.l")
|
||||
(de L2hex (Lst)
|
||||
(lowc
|
||||
(pack
|
||||
(mapcar '((B) (pad 2 (hex B))) Lst) ) ) )
|
||||
(let (SK (range 0 63) Pair)
|
||||
(do 1000
|
||||
(setq Pair (crypto_ed25519_key_pair (head 32 SK)))
|
||||
(setq SK (crypto_ed25519_sign (car Pair) SK)) )
|
||||
(println (L2hex SK)) )
|
||||
(msg 'ok)
|
||||
(bye)
|
Loading…
Reference in a new issue