Alessio Di Mauro
4849e494be
Add retired key definitions to libykpiv.
...
Include retired keys in import_key's check.
2015-11-20 15:44:19 +01:00
Alessio Di Mauro
6269280578
Add import private key to libykpiv.
2015-11-19 18:30:58 +01:00
Alessio Di Mauro
b6d4238856
Initial work on doing padding internally
2015-11-19 18:30:58 +01:00
Klas Lindfors
8eb7595d42
add list-readers action to tool
...
also refactor ykpiv_list_readers() a bit
2015-09-08 12:26:42 +02:00
Klas Lindfors
1a9e62cec8
drop ykpiv_connect2() and add ykpiv_list_readers()
2015-09-07 15:54:57 +02:00
Klas Lindfors
b770155cbb
Merge branch 'devel/p384' into ykcs11
...
Conflicts:
NEWS
configure.ac
lib/ykpiv.c
lib/ykpiv.h
tool/util.c
tool/util.h
2015-09-07 14:32:37 +02:00
Klas Lindfors
aabe4fb20e
Merge branch 'master' into ykcs11
...
Conflicts:
lib/ykpiv.c
lib/ykpiv.h
2015-08-20 09:30:49 +02:00
Alessio Di Mauro
7ce5ea4dc2
Added sign_data2 to libykpiv to disable padding.
2015-08-03 16:22:58 +02:00
Alessio Di Mauro
de7e1ed000
Added basic version of login.
2015-07-14 16:51:08 +02:00
Alessio Di Mauro
dae7297050
Major refactor and vendor abstraction.
2015-07-14 14:13:02 +02:00
Klas Lindfors
2e91cd0f5b
Merge branch 'master' into devel/p384
2015-07-08 15:09:11 +02:00
Klas Lindfors
3b080dca45
relicense to 2-clause BSD license
2015-07-01 16:34:20 +02:00
Alessio Di Mauro
2b2fe1f9fa
Added basic version of slot info functions.
2015-06-30 11:14:36 +02:00
Klas Lindfors
80e6fe525a
change IS_XXKEY macros to be YKPIV_IS_XX
2015-06-30 07:33:39 +02:00
Klas Lindfors
600b302c1d
add touch for set-mgm-key
2015-06-25 12:32:01 +02:00
Klas Lindfors
ca6a355b5d
add touch tlv for generate and import-key
2015-06-25 12:04:05 +02:00
Klas Lindfors
be8f37924d
pin policy code for generate and import-key
2015-06-24 15:25:59 +02:00
Klas Lindfors
a73d708c25
add support for retired key objects
...
slots 82-95
2015-06-24 13:06:01 +02:00
Klas Lindfors
1541362866
add macros for IS_ECKEY and IS_RSAKEY, also fix tag on ECCP384
2015-06-24 13:06:00 +02:00
Klas Lindfors
f17d09f19c
start adding secp384r1
2015-06-24 13:06:00 +02:00
Klas Lindfors
3d0ff7b969
add a test-decipher command
...
test-decipher will for rsa do public encrypt on a random string and let
the key decrypt
for ec it will generate a new ec key and do ecdh and confirm it gets the
same answer back
2015-05-19 14:22:26 +02:00
Klas Lindfors
b66f81b324
replace ykpiv_parse_key() with ykpiv_hex_decode()
2014-06-27 15:06:44 +02:00
Klas Lindfors
a1c2e4e8d1
refactor writing object to it's own library function
...
ykpiv_save_object(), use that for writing certs
2014-06-26 08:02:44 +02:00
Klas Lindfors
b8ecc6cda2
refactor so ykpiv_sign_data() takes size_t input
2014-06-25 15:41:20 +02:00
Klas Lindfors
ba9ee75b3f
stop exporting ykpiv_send_data()
2014-06-25 15:38:53 +02:00
Klas Lindfors
9b5ede8530
change around and let ykpiv_sign_data() pad
2014-06-25 10:47:32 +02:00
Klas Lindfors
c5696d4b45
rework some stuff to size_t
2014-06-24 15:02:26 +02:00
Klas Lindfors
05a30e1da5
add ykpiv_fetch_object() to library
2014-06-24 14:35:59 +02:00
Klas Lindfors
d5222c10b7
add macros for piv objects
2014-06-24 14:07:15 +02:00
Klas Lindfors
31d9d0d680
add ykpiv_verify to the library
2014-06-23 09:57:10 +02:00
Klas Lindfors
052b80830a
make constants for more instructions
2014-06-18 13:28:28 +02:00
Klas Lindfors
a97010d5e3
add ykpiv_get_version() function
2014-06-17 15:26:48 +02:00
Klas Lindfors
880c8a0061
move sign_data() function to library
2014-06-17 15:11:02 +02:00
Klas Lindfors
f468146311
add ykpiv_disconnect()
2014-06-17 10:55:46 +02:00
Klas Lindfors
931cc5f35a
include ykpiv-version.h in ykpiv.h
2014-06-17 10:34:05 +02:00
Klas Lindfors
d1b2062721
add ykpiv_parse_key()
2014-06-17 10:07:49 +02:00
Klas Lindfors
01c844905a
add ykpiv_set_mgmkey()
2014-06-17 09:58:55 +02:00
Klas Lindfors
8eb955bd13
make constants for algorithms, keys and instructions
2014-06-17 09:58:37 +02:00
Klas Lindfors
d62430c2d5
more constness
2014-06-17 09:37:37 +02:00
Klas Lindfors
cb60c782f5
move authenticate to library as ykpiv_authenticate()
2014-06-17 09:34:52 +02:00
Klas Lindfors
6dcb6798e6
let the ykpiv_connect() function select as well
2014-06-17 09:34:52 +02:00
Klas Lindfors
03c028a4ef
get rid of the YKPIV_APDU_* macros
...
transport the starting 4 bytes as an array instead
2014-06-17 09:24:56 +02:00
Klas Lindfors
f1c5302407
break out connect and send data to the library
...
exporting
ykpiv_connect()
ykpiv_send_data()
ykpiv_transfer_data()
2014-06-16 15:00:52 +02:00
Klas Lindfors
0d4dd2fea1
start moving code to the library, and add error codes
2014-06-16 13:19:48 +02:00
Klas Lindfors
fe5632e603
start library structure
2014-06-16 12:35:28 +02:00
Klas Lindfors
1a42870615
start of the ykpiv library
2014-06-16 10:22:05 +02:00