Jakub Jelen
5f7c91e54f
pkcs15-isoApplet: Avoid uninitialized reads
...
Thanks coverity
CID 365817
2021-02-25 09:08:52 +01:00
Jakub Jelen
1dbe4b5a5b
isoApplet: Prevent reading uninitialized values
...
CID 365823
Thanks coverity
2021-02-25 09:08:52 +01:00
Luka Logar
a10b661f99
IsoApplet: Fix uninitialized public key oid during key generation
2020-06-05 14:48:50 +02:00
Peter Marschall
5abe99d228
fix typos
...
Mass-typo fixing, almost exclusively in comments and text strings.
While at it also fixed a few (very few) grammar errors.
2018-04-15 09:34:45 +02:00
Frank Morgner
f4946df4e9
fixed dead assignments
2017-11-09 12:42:29 +01:00
Ludovic Rousseau
ed30d4ebb7
pkcs15-isoApplet.c: fix compiler warning
...
pkcs15-isoApplet.c:268:38: warning: address of 'df->path' will always evaluate
to 'true' [-Wpointer-bool-conversion]
if(!pin || !pin_len || !df || !&df->path)
~ ~~~~^~~~
2016-02-29 20:19:42 +01:00
Frank Morgner
7120a9b549
Merge pull request #554 from frankmorgner/fixes
...
Some more fixes for problems reported by Coverity scan
2015-09-25 11:13:17 +02:00
Philip Wendland
09fb1e71a9
IsoApplet: add PIN to pincache upon creation
2015-09-18 17:02:45 +02:00
Frank Morgner
63a9ad79b6
Assumes that p15card->card are set
...
The check for NULL was bogus anyway
2015-09-17 22:24:33 +02:00
Frank Morgner
8a225eb42b
Avoids potential NULL pointer deref
2015-09-17 22:24:33 +02:00
Doug Engert
ee23d28654
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
2015-04-25 12:21:39 +02:00
Philip Wendland
e258cec13e
IsoApplet: Add nistp224, secp192k1 and secp256k1 curves
...
secp*k1 curves are only supported applet version >= 0.6.0 because of an issue
with encoding ECC public keys with small parameters.
2015-03-29 13:34:58 +02:00
Philip Wendland
74aeb8c923
IsoApplet: register supported EC curve *per curve*
2015-02-22 23:08:18 +01:00
Philip Wendland
59eeacb74b
IsoApplet: react to removal of sc_pkcs15_ec_parameters in fa923831f8
2015-02-20 22:07:49 +01:00
Philip Wendland
da05fa2a47
IsoApplet: try to fix EC parameters when importing private keys from file
2015-02-20 21:55:35 +01:00
Philip Wendland
44d724b012
IsoApplet: fix more (comment) alignment issues with tabstop=8
2015-02-20 21:55:35 +01:00
Philip Wendland
5628a06353
IsoApplet: Align comments with spaces instead of tabs
...
Better view with tabstop=8.
2015-02-20 21:55:35 +01:00
Philip Wendland
e3cc851b72
IsoApplet: EC key-gen rework and refactorings
...
Rework the EC key generation mechanism to send the curve parameters to
the card. In earlier versions, the applet had a copy of the curve
parameters and there was a different algorithm reference for every
curve. This is unfeasible when trying to support a larger number of
curves because of size limitations of the applet.
This commit additionally includes some refactorings that should not
change the functionality.
2015-02-20 21:55:33 +01:00
Philip Wendland
48bd6b0964
Add support for the IsoApplet (Java Card applet)
...
The IsoApplet can be found here:
https://github.com/philipWendland/IsoApplet
Add read/write support for this applet, including RSA and
ECC support.
2015-02-20 21:55:26 +01:00