The processing of the X509 subjectPublickeyInfo was moved from pkcs15-cert.c to pkcs15-pubkey.c A new routine sc_pkcs15_pubkey_from_spki is used to decode the algorithm, any parameters and the public key.
A new routing sc_pkcs15_pubkey_from_spki_filename can also be used to read from a disk file the same information, that OpenSSL can write as an EVP_PKEY. The piv driver with EC support will use these changes when EC support is added. It can get the algorithm its parameters, and the RSA or EC public key. One issue is the use of the term "pubkey" throughout OpenSC, as most of OpenSC still only supports RSA, and with RSA there are no algorithm parameters. PKCS11, PKCS15, and each algorithm refer to pubkey differently. -- Douglas E. Engert <deeng...@anl.gov> Argonne National Laboratory 9700 South Cass Avenue Argonne, Illinois 60439 (630) 252-5444 _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel