… | |
… | |
115 | source of key material, you can simply generate 32 octets from it |
115 | source of key material, you can simply generate 32 octets from it |
116 | and use this as your secret key. |
116 | and use this as your secret key. |
117 | |
117 | |
118 | $public_key = Crypt::Ed25519::eddsa_public_key $secret_key |
118 | $public_key = Crypt::Ed25519::eddsa_public_key $secret_key |
119 | Takes a secret key generated by "Crypt::Ed25519::eddsa_secret_key" |
119 | Takes a secret key generated by "Crypt::Ed25519::eddsa_secret_key" |
120 | and returns the corresponding $public_key. The derivation ios |
120 | and returns the corresponding $public_key. The derivation is |
121 | deterministic, i.e. the $public_key generated for a specific |
121 | deterministic, i.e. the $public_key generated for a specific |
122 | $secret_key is always the same. |
122 | $secret_key is always the same. |
123 | |
123 | |
124 | This public key corresponds to the public key in the Ed25519 API |
124 | This public key corresponds to the public key in the Ed25519 API |
125 | above. |
125 | above. |
… | |
… | |
156 | derive the public key as needed. On the other hand, signing using the |
156 | derive the public key as needed. On the other hand, signing using the |
157 | private key is faster than using the secret key, so converting the |
157 | private key is faster than using the secret key, so converting the |
158 | secret key to a public/private key pair allows you to sign a small |
158 | secret key to a public/private key pair allows you to sign a small |
159 | message, or many messages, faster. |
159 | message, or many messages, faster. |
160 | |
160 | |
|
|
161 | SUPPORT FOR THE PERL MULTICORE SPECIFICATION |
|
|
162 | This module supports the perl multicore specification |
|
|
163 | (<http://perlmulticore.schmorp.de/>) for key generation (usually the |
|
|
164 | slowest operation), and all signing and verification functions. |
|
|
165 | |
161 | IMPLEMENTATIOIN |
166 | IMPLEMENTATIOIN |
162 | This module currently uses "Nightcracker's Ed25519" implementation, but |
167 | This module currently uses "Nightcracker's Ed25519" implementation, |
|
|
168 | which is unmodified except for some portability fixes and static |
163 | the interface is kept implementation-agnostic to allow usage of other |
169 | delcarations, but the interface is kept implementation-agnostic to allow |
164 | implementations in the future. |
170 | usage of other implementations in the future. |
165 | |
171 | |
166 | AUTHOR |
172 | AUTHOR |
167 | Marc Lehmann <schmorp@schmorp.de> |
173 | Marc Lehmann <schmorp@schmorp.de> |
168 | http://sfotware.schmorp.de/pkg/Crypt-Ed25519.html |
174 | http://sfotware.schmorp.de/pkg/Crypt-Ed25519.html |
169 | |
175 | |