opensc/src/libopensc
Frank Morgner fd20ffe608
optimize bin/hex low parsing level functions (#1646)
* optimize sc_hex_to_bin

* optimize sc_bin_to_hex

* added documentation

closes https://github.com/OpenSC/OpenSC/pull/1643

thanks to carblue <ka6613-496@online.de>
2019-04-04 12:52:08 +02:00
..
Makefile.am Remove un-lincenced header file 2019-03-13 21:19:26 +01:00
Makefile.mak acos5: removed incomplete driver 2019-03-13 21:17:54 +01:00
apdu.c don't force the max buffer size with Le=0 2019-01-15 07:31:20 +01:00
asn1.c fixed misuse of realloc 2019-01-30 21:57:59 +01:00
asn1.h asn1: tagnum size has not exceed 3 bytes 2016-03-10 10:13:27 +01:00
authentic.h libopensc: authentIC: use macros; use common CPLC data type 2011-05-13 12:57:18 +00:00
aux-data.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
aux-data.h fix typos 2018-04-15 09:34:45 +02:00
base64.c make casting explicit 2015-11-01 13:18:39 +01:00
card-akis.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-asepcos.c fixed use of garbage value 2019-02-14 09:22:23 +01:00
card-atrust-acos.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-authentic.c fixed use of uninitialized values 2019-02-14 09:22:23 +01:00
card-belpic.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-cac-common.c Restore minimal CAC1 driver for legacy cards (#1502) 2018-10-30 17:27:28 +01:00
card-cac-common.h Restore minimal CAC1 driver for legacy cards (#1502) 2018-10-30 17:27:28 +01:00
card-cac.c use const qualifier for sc_simpletlv_read/put_tag 2019-01-30 21:57:59 +01:00
card-cac1.c fixed Null pointer argument in call to memcpy 2019-02-14 09:22:23 +01:00
card-cardos.c Remove postecert and infocamere support because no longer issued (#1584) 2019-01-30 22:01:24 +01:00
card-coolkey.c replaced SC_FUNC_RETURN with LOG_FUNC_RETURN 2018-12-06 09:26:42 +01:00
card-default.c honour HAVE_CONFIG_H 2015-04-22 23:55:33 +02:00
card-dnie.c removed untested use of SC_SEC_OPERATION_AUTHENTICATE 2019-03-13 21:17:54 +01:00
card-entersafe.c always log APDUs with SC_LOG_DEBUG_NORMAL 2018-12-06 09:26:42 +01:00
card-epass2003.c Remove dead code 2018-10-01 23:07:34 +02:00
card-flex.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-gemsafeV1.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-gids.c fix overlapping memcpy 2019-03-18 23:33:24 +01:00
card-gids.h First support for GIDS card 2016-02-19 00:12:16 +01:00
card-gpk.c fixed use of garbage value 2019-02-14 09:22:23 +01:00
card-iasecc.c fixed unused assignments 2019-02-14 09:22:23 +01:00
card-incrypto34.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-isoApplet.c refactored sc_get_challenge 2018-05-23 14:20:28 +02:00
card-itacns.c removed untested use of SC_SEC_OPERATION_AUTHENTICATE 2019-03-13 21:17:54 +01:00
card-jcop.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-jpki.c Mark driver-specific global sc_atr_table structures as const 2018-08-22 22:50:30 +02:00
card-masktech.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-mcrd.c Merge pull request #1633 from metsma/esteid 2019-03-25 14:31:02 +01:00
card-miocos.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-muscle.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-myeid.c Select MyEID applet with AID in myeid_init() to ensure that it is selected before sending other commands. 2019-01-15 07:32:03 +01:00
card-npa.c replaced SC_FUNC_RETURN with LOG_FUNC_RETURN 2018-12-06 09:26:42 +01:00
card-npa.h allow compilation with --disable-shared 2018-11-01 00:17:22 +01:00
card-oberthur.c avoid allocation of 0 bytes 2019-02-14 09:22:23 +01:00
card-openpgp.c fixed 333714 Uninitialized scalar variable 2019-03-06 00:42:38 +01:00
card-piv.c fixed https://github.com/OpenSC/OpenSC/issues/1581 2019-01-30 21:57:59 +01:00
card-rtecp.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-rutoken.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-sc-hsm.c sc-hsm: require T=1 connection 2019-03-05 13:47:45 +01:00
card-sc-hsm.h sc-hsm: require T=1 connection 2019-03-05 13:47:45 +01:00
card-setcos.c fixed unused assignments 2019-02-14 09:22:23 +01:00
card-starcos.c fixed unused check 2019-01-20 23:02:21 +01:00
card-tcos.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
card-westcos.c fixed memory leaks during card initialization 2019-01-30 21:57:59 +01:00
card.c Change u8 *data to const because sc_apdu unsigned char *data is const 2019-04-03 22:15:54 +02:00
cardctl.h OpenPGP Card v3 ECC support (#1506) 2019-01-30 22:00:36 +01:00
cards.h acos5: removed incomplete driver 2019-03-13 21:17:54 +01:00
ccid-types.h Added support for PIN commands via escape commands 2017-03-20 21:28:48 +01:00
compression.c fixed sc_decompress_zlib_alloc return code 2019-02-14 09:22:23 +01:00
compression.h First support for GIDS card 2016-02-19 00:12:16 +01:00
ctbcs.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
ctbcs.h fix typos 2018-04-15 09:34:45 +02:00
ctx.c acos5: removed incomplete driver 2019-03-13 21:17:54 +01:00
cwa-dnie.c fix typos 2018-04-15 09:34:45 +02:00
cwa-dnie.h Add dnie_free_apdu_buffers into dnie_sm_free_wrapped_apdu. 2017-04-20 11:04:02 +02:00
cwa14890.c Always allocate resp buffer in DNIe. 2018-05-23 14:22:28 +02:00
cwa14890.h fix typos 2018-04-15 09:34:45 +02:00
dir.c Make sure card's strings are Nul terminated 2019-03-13 21:17:00 +01:00
ef-atr.c Fix log messages format and parameter issues flagged by GCC 2017-03-27 11:05:16 +02:00
ef-gdo.c fixed out of bounds reads 2018-08-14 15:50:13 +02:00
errors.c fixed typo 2018-08-23 10:14:25 +02:00
errors.h Added bounds checking to sc_simpletlv_read_tag() 2018-08-14 15:50:13 +02:00
gp.c Reuse gp_select_aid 2018-08-23 20:37:38 +02:00
gp.h Reuse gp_select_aid 2018-08-23 20:37:38 +02:00
iasecc-sdo.c fixed dead assignment 2019-02-14 09:22:23 +01:00
iasecc-sdo.h fix typos 2018-04-15 09:34:45 +02:00
iasecc-sm.c refactored sc_get_challenge 2018-05-23 14:20:28 +02:00
iasecc.h removed unused reference to sm_iasecc_rsa_generate 2013-09-29 18:52:38 +02:00
internal-winscard.h fixed compilation with XCode 10 2018-10-24 10:34:43 +02:00
internal.h OpenPGP Card v3 ECC support (#1506) 2019-01-30 22:00:36 +01:00
iso7816.c iso7816_read_binary: do not assume that 6282 is returned with data 2019-04-01 12:51:00 +02:00
iso7816.h parse Extended Length Information in EF.ATR/INFO 2016-07-19 14:30:38 +02:00
itacns.h New card driver: Italian CNS/CIE (eID) 2010-08-16 00:56:27 +00:00
jpki.h login state preservation for JPKI card 2017-02-06 14:22:14 +01:00
libopensc.exports implemented sc_format_apdu_ex 2019-03-05 13:54:13 +01:00
log.c tools: fixed colors if -v is specified 2019-01-15 07:30:46 +01:00
log.h replace SC_FUNC_CALLED with LOG_FUNC_CALLED 2018-12-06 09:26:42 +01:00
muscle-filesystem.c fixed possible NULL pointer dereference 2019-02-14 09:22:23 +01:00
muscle-filesystem.h Header file cleanup. 2010-03-04 08:14:36 +00:00
muscle.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
muscle.h use size_t for a length instead of int 2015-10-14 22:56:53 +02:00
opensc.dll.manifest Windows: Added support for notifications 2017-08-02 19:03:16 +02:00
opensc.h optimize bin/hex low parsing level functions (#1646) 2019-04-04 12:52:08 +02:00
p15card-helper.c replaced SC_FUNC_RETURN with LOG_FUNC_RETURN 2018-12-06 09:26:42 +01:00
p15card-helper.h Header file cleanup. 2010-03-04 08:14:36 +00:00
pace.h Added (external) card driver for German ID card 2017-03-20 21:28:48 +01:00
padding.c padding: Do not set wrong flags if the raw capability is not available 2018-12-18 14:50:08 +01:00
pkcs15-actalis.c Fixed Potential leak of memory 2019-02-14 09:22:23 +01:00
pkcs15-algo.c don't debug pointers 2018-12-06 09:26:42 +01:00
pkcs15-atrust-acos.c Initialize PIN logged_in field for cards that do not support PIN info 2016-09-01 02:03:42 +02:00
pkcs15-cac.c replace sc_debug_hex with sc_log_hex 2018-12-06 09:26:42 +01:00
pkcs15-cache.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
pkcs15-cert.c opensc.conf: Configure handling of private_certificate 2019-03-13 21:18:57 +01:00
pkcs15-coolkey.c replaced SC_FUNC_RETURN with LOG_FUNC_RETURN 2018-12-06 09:26:42 +01:00
pkcs15-data.c Make sure card's strings are Nul terminated 2019-03-13 21:17:00 +01:00
pkcs15-din-66291.c sc_bin_to_hex returns a Nul terminated string 2019-03-13 21:17:00 +01:00
pkcs15-dnie.c NULL parameter check moved to sc_file_free() 2017-01-10 12:46:44 +01:00
pkcs15-esinit.c fixed dead assignment 2017-11-09 12:42:29 +01:00
pkcs15-esteid.c Use strdup and fix all casts 2019-04-01 12:53:33 +02:00
pkcs15-gemsafeGPK.c sc_bin_to_hex returns a Nul terminated string 2019-03-13 21:17:00 +01:00
pkcs15-gemsafeV1.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
pkcs15-gids.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-iasecc.c fix typos 2018-04-15 09:34:45 +02:00
pkcs15-itacns.c fixed use of garbage value 2019-02-14 09:22:23 +01:00
pkcs15-jpki.c add public keys 2017-08-02 10:27:06 +02:00
pkcs15-oberthur.c replaced SC_FUNC_RETURN with LOG_FUNC_RETURN 2018-12-06 09:26:42 +01:00
pkcs15-openpgp.c sc_bin_to_hex returns a Nul terminated string 2019-03-13 21:17:00 +01:00
pkcs15-pin.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-piv.c replaced SC_FUNC_RETURN with LOG_FUNC_RETURN 2018-12-06 09:26:42 +01:00
pkcs15-prkey.c fixed error handling 2019-03-13 21:17:00 +01:00
pkcs15-pteid.c pteid: order objects by address (supersede #949) (#954) 2017-02-09 20:54:06 +01:00
pkcs15-pubkey.c fixed error handling 2019-03-13 21:17:00 +01:00
pkcs15-sc-hsm.c Add support for SmartCard-HSM 4K (V3.0) 2018-08-31 13:42:44 +02:00
pkcs15-sec.c replaced SC_TEST_RET with LOG_TEST_RET 2018-12-06 09:26:42 +01:00
pkcs15-skey.c Code cleanup and minor corrections according to review. pkcs15-lib: Extractable keys are now marked as native. Check return value of check_key_compatibility in more explicit way to avoid misunderstandings. 2018-10-31 10:36:41 +02:00
pkcs15-starcert.c Changed outdated "STARCOS SPK 2.3" name to "STARCOS". 2018-09-28 16:50:39 +02:00
pkcs15-syn.c Remove postecert and infocamere support because no longer issued (#1584) 2019-01-30 22:01:24 +01:00
pkcs15-syn.h Remove postecert and infocamere support because no longer issued (#1584) 2019-01-30 22:01:24 +01:00
pkcs15-tccardos.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
pkcs15-tcos.c sc_bin_to_hex returns a Nul terminated string 2019-03-13 21:17:00 +01:00
pkcs15-westcos.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
pkcs15.c opensc.conf: Configure handling of private_certificate 2019-03-13 21:18:57 +01:00
pkcs15.h opensc.conf: Configure handling of private_certificate 2019-03-13 21:18:57 +01:00
reader-cryptotokenkit.m always log APDUs with SC_LOG_DEBUG_NORMAL 2018-12-06 09:26:42 +01:00
reader-ctapi.c always log APDUs with SC_LOG_DEBUG_NORMAL 2018-12-06 09:26:42 +01:00
reader-openct.c always log APDUs with SC_LOG_DEBUG_NORMAL 2018-12-06 09:26:42 +01:00
reader-pcsc.c Remove readers when smart card service stops 2019-03-07 21:51:02 +02:00
reader-tr03119.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
reader-tr03119.h EAC: Clearify naming of functions and data 2018-02-20 22:16:51 +01:00
sc-ossl-compat.h Remove postecert and infocamere support because no longer issued (#1584) 2019-01-30 22:01:24 +01:00
sc.c optimize bin/hex low parsing level functions (#1646) 2019-04-04 12:52:08 +02:00
sec.c replace sc_debug with sc_log 2018-12-06 09:26:42 +01:00
simpletlv.c use const qualifier for sc_simpletlv_read/put_tag 2019-01-30 21:57:59 +01:00
simpletlv.h use const qualifier for sc_simpletlv_read/put_tag 2019-01-30 21:57:59 +01:00
sm.c Add ECC support and solve wrong Length status codes with SM card 2017-10-16 14:57:52 +02:00
sm.h fixed compilation without OpenSSL 2018-11-13 15:50:17 +01:00
types.h implemented sc_format_apdu_ex 2019-03-05 13:54:13 +01:00