Package list libcryptx-perl / 9c7bef2
update doc: Support for password protected PEM keys ed25519/x25519 Karel Miko 1 year, 8 months ago
2 changed file(s) with 32 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
306306 #or
307307 my $public_pem = $pk->export_key_pem('public');
308308
309 Support for password protected PEM keys
310
311 my $private_pem = $pk->export_key_pem('private', $password);
312 #or
313 my $private_pem = $pk->export_key_pem('private', $password, $cipher);
314
315 # supported ciphers: 'DES-CBC'
316 # 'DES-EDE3-CBC'
317 # 'SEED-CBC'
318 # 'CAMELLIA-128-CBC'
319 # 'CAMELLIA-192-CBC'
320 # 'CAMELLIA-256-CBC'
321 # 'AES-128-CBC'
322 # 'AES-192-CBC'
323 # 'AES-256-CBC' (DEFAULT)
324
309325 =head2 export_key_jwk
310326
311327 Exports public/private keys as a JSON Web Key (JWK).
263263 #or
264264 my $public_pem = $pk->export_key_pem('public');
265265
266 Support for password protected PEM keys
267
268 my $private_pem = $pk->export_key_pem('private', $password);
269 #or
270 my $private_pem = $pk->export_key_pem('private', $password, $cipher);
271
272 # supported ciphers: 'DES-CBC'
273 # 'DES-EDE3-CBC'
274 # 'SEED-CBC'
275 # 'CAMELLIA-128-CBC'
276 # 'CAMELLIA-192-CBC'
277 # 'CAMELLIA-256-CBC'
278 # 'AES-128-CBC'
279 # 'AES-192-CBC'
280 # 'AES-256-CBC' (DEFAULT)
281
266282 =head2 export_key_jwk
267283
268284 Exports public/private keys as a JSON Web Key (JWK).