From: Timo T. <no...@gi...> - 2019-04-25 12:53:25
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 0e25c1d2a62a7bb461d34a650ab1d3b1d8d74a66 https://github.com/OpenSC/OpenSC/commit/0e25c1d2a62a7bb461d34a650ab1d3b1d8d74a66 Author: Timo Teräs <tim...@ik...> Date: 2019-04-25 (Thu, 25 Apr 2019) Changed paths: M src/libopensc/card-myeid.c Log Message: ----------- MyEID: detect card from ATR historical data instead of full ATR This will simplify the matching code, and match prototype cards. Signed-off-by: Timo Teräs <tim...@ik...> Commit: 3f832ca6da9f1659c23bd74c9db62a352c96dfa1 https://github.com/OpenSC/OpenSC/commit/3f832ca6da9f1659c23bd74c9db62a352c96dfa1 Author: Timo Teräs <tim...@ik...> Date: 2019-04-25 (Thu, 25 Apr 2019) Changed paths: M src/libopensc/card-myeid.c M src/pkcs15init/pkcs15-myeid.c Log Message: ----------- MyEID: implement support for 4K RSA keys (MyEID 4.5+) MyEID starting version 4.5 supports 4K RSA keys. The card also now supports proper APDU chainging (for sending large APDUs) and receiving large responses via GET_RESPONSE splitting. This updates the following: * detection code properly announces 3K and 4K RSA support when available * APDU chaining is used when possible * use ISO GET_RESPONSE handling for large responses * max_recv_size is set to 256 which it always was supposed to be as the old cards respond with that large responses too * use the 2K signing kludge only on cards that need it * unwrap and decipher code paths unified to the extent possible Signed-off-by: Timo Teräs <tim...@ik...> Commit: 3688dfe2382cfaf091fe3da17d7495013ca94e4a https://github.com/OpenSC/OpenSC/commit/3688dfe2382cfaf091fe3da17d7495013ca94e4a Author: Timo Teräs <tim...@ik...> Date: 2019-04-25 (Thu, 25 Apr 2019) Changed paths: M src/libopensc/card-myeid.c Log Message: ----------- MyEID: simplify key component loading Encode the component ID to be key type and component ID. This allows each combination to be unique and direct mapping to card component ID type in the code by just taking the low byte. This simplifies the code, and reduces confusion as there is now only one #define for each component. Signed-off-by: Timo Teräs <tim...@ik...> Compare: https://github.com/OpenSC/OpenSC/compare/3d22d04113d7...3688dfe2382c |