ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Crypt-Ed25519/Ed25519.pm
(Generate patch)

Comparing Crypt-Ed25519/Ed25519.pm (file contents):
Revision 1.15 by root, Wed Aug 11 23:14:08 2021 UTC vs.
Revision 1.16 by root, Wed Aug 11 23:15:25 2021 UTC

38 38
39 # verify, but croak on failure 39 # verify, but croak on failure
40 Crypt::Ed25519:eddsa_verify_croak $message, $pubkey, $signature; 40 Crypt::Ed25519:eddsa_verify_croak $message, $pubkey, $signature;
41 41
42 ############################################ 42 ############################################
43 # Key exchange 43 # Curve25519 key exchange
44 44
45 # side A: 45 # side A:
46 ($pubkey_a, $privkey_a) = Crypt::Ed25519::generate_keypair; 46 ($pubkey_a, $privkey_a) = Crypt::Ed25519::generate_keypair;
47 # send $pubkey to side B 47 # send $pubkey to side B
48 48
206derive the public key as needed. On the other hand, signing using the 206derive the public key as needed. On the other hand, signing using the
207private key is faster than using the secret key, so converting the secret 207private key is faster than using the secret key, so converting the secret
208key to a public/private key pair allows you to sign a small message, or 208key to a public/private key pair allows you to sign a small message, or
209many messages, faster. 209many messages, faster.
210 210
211=head1 Key Exchange 211=head1 Curve25519 Key Exchange
212 212
213As an extension to Ed25519, this module implements a key exchange similar 213As an extension to Ed25519, this module implements a key exchange similar
214to Curve25519, which should be compatible to other implementations of 214to Curve25519, which should be compatible to other implementations of
215Curv25519, depending on how the resulting shared secret is hashed. 215Curv25519, depending on how the resulting shared secret is hashed.
216 216

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines