From: GitHub <no...@gi...> - 2015-04-25 10:26:40
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: ee23d286547d730dc82011857b318186140b31f5 https://github.com/OpenSC/OpenSC/commit/ee23d286547d730dc82011857b318186140b31f5 Author: Doug Engert <dee...@gm...> Date: 2015-04-25 (Sat, 25 Apr 2015) Changed paths: M src/libopensc/pkcs15-prkey.c M src/libopensc/pkcs15-pubkey.c M src/libopensc/pkcs15-sc-hsm.c M src/pkcs15init/pkcs15-isoApplet.c Log Message: ----------- EC field_length changes for non-multiple of 8 bits curves In OpenSC the EC field_length is the number of bits in the field. Most curves have a field_length which is a multiple of 8 bits but there are many that are not. The X and Y points and privateD are stored in octetstrings so there may need to be an extra byte in the octetstring. An OpenSSL BIGNUM will drop leading zero bytes, so its size can not be used to determine the field_length. fix #440 fix #433 |