Package list libcryptx-perl / 052be88
ECC doc update Karel Miko 3 years ago
2 changed file(s) with 24 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
33 - new Crypt::Digest::Keccak(224|256|384|512)
44 - new sign_hash_rfc7518 + verify_hash_rfc7518 (Crypt::PK::ECC)
55 - improved import of pkcs#8 private keys (Crypt::PK::ECC)
6 - improved export allowing "compressed" variants (Crypt::PK::ECC)
67 - fix #28 Apple's APNS pkcs8 auth key import fails (Crypt::PK::ECC)
78 - fix cpantesters failure (5.8.1 related)
89
621621 lBQ9T/RsLLc+PmpB1+7yPAR+oR5gZn3kJQ==
622622 -----END EC PRIVATE KEY-----
623623
624 =item * EC private keys with curve defined by OID + compressed form (supported since: CryptX-0.059)
625
626 -----BEGIN EC PRIVATE KEY-----
627 MFcCAQEEIBG1c3z52T8XwMsahGVdOZWgKCQJfv+l7djuJjgetdbDoAoGCCqGSM49
628 AwEHoSQDIgADoBUyo8CQAFPeYPvv78ylh5MwFZjTCLQeb042TjiMJxE=
629 -----END EC PRIVATE KEY-----
630
624631 =item * EC private keys in password protected PEM format
625632
626633 -----BEGIN EC PRIVATE KEY-----
651658 -----BEGIN PUBLIC KEY-----
652659 MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEoBUyo8CQAFPeYPvv78ylh5MwFZjT
653660 CLQeb042TjiMJxG+9DLFmRSMlBQ9T/RsLLc+PmpB1+7yPAR+oR5gZn3kJQ==
661 -----END PUBLIC KEY-----
662
663 =item * EC public keys with curve defined by OID + public point in compressed form (supported since: CryptX-0.059)
664
665 -----BEGIN PUBLIC KEY-----
666 MDkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDIgADoBUyo8CQAFPeYPvv78ylh5MwFZjT
667 CLQeb042TjiMJxE=
654668 -----END PUBLIC KEY-----
655669
656670 =item * PKCS#8 private keys with all curve parameters
673687 lEHQYjWya2YnHaPq/iMFa7A=
674688 -----END PRIVATE KEY-----
675689
676 =item * PKCS#8 encrypted private keys
690 =item * PKCS#8 encrypted private keys - password protected keys (supported since: CryptX-0.059)
677691
678692 -----BEGIN ENCRYPTED PRIVATE KEY-----
679693 MIGYMBwGCiqGSIb3DQEMAQMwDgQINApjTa6oFl0CAggABHi+59l4d4e6KtG9yci2
757771 #or
758772 my $public_der = $pk->export_key_der('public_short');
759773
774 Since CryptX-0.59 C<export_key_der> can also export keys in "compressed" format
775 that defines curve by OID + stores public point in compressed form.
776
777 my $private_pem = $pk->export_key_der('private_compressed');
778 #or
779 my $public_pem = $pk->export_key_der('public_compressed');
780
760781 =head2 export_key_pem
761782
762783 my $private_pem = $pk->export_key_pem('private');
770791 #or
771792 my $public_pem = $pk->export_key_pem('public_short');
772793
773 Since CryptX-0.58 C<export_key_pem> can also export keys in "compressed" format
794 Since CryptX-0.59 C<export_key_pem> can also export keys in "compressed" format
774795 that defines curve by OID + stores public point in compressed form.
775796
776797 my $private_pem = $pk->export_key_pem('private_compressed');