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.14 by root, Wed Aug 11 23:02:08 2021 UTC vs.
Revision 1.15 by root, Wed Aug 11 23:14:08 2021 UTC

209many messages, faster. 209many messages, faster.
210 210
211=head1 Key Exchange 211=head1 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
214(But not identical) to Curve25519. For this, both sides generate a keypair 214to Curve25519, which should be compatible to other implementations of
215and send their public key to the other side. Then both sides can generate 215Curv25519, depending on how the resulting shared secret is hashed.
216the same shared secret using this function: 216
217To do this, both sides generate a keypair and send their public key to the
218other side. Then both sides can generate the same shared secret using this
219function:
217 220
218=over 221=over
219 222
220=item $shared_secret = Crypt::Ed25519::key_exchange $other_public_key, $own_private_key 223=item $shared_secret = Crypt::Ed25519::key_exchange $other_public_key, $own_private_key
221 224
222Return the 32 octet shared secret generated from the given public and 225Return the 32 octet shared secret generated from the given public and
226private key.
227
228The resulting C<$shared_key> should be hashed before use (for example, by
229using it in a KDF such as HKDF).
230
223private key. See SYNOPSIS for an actual example. 231See SYNOPSIS for an actual example.
224 232
225=back 233=back
226 234
227=head1 SUPPORT FOR THE PERL MULTICORE SPECIFICATION 235=head1 SUPPORT FOR THE PERL MULTICORE SPECIFICATION
228 236

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines