Commit Graph

48 Commits

Author SHA1 Message Date
Andrea Franz d28c52a900
explicitly use secure channel and check if open 2019-03-11 13:11:41 +01:00
Andrea Franz db9987efdd
use identifiers.KeycardDefaultInstanceIndex 2019-03-11 12:56:22 +01:00
Andrea Franz 077b96f9ee
add Delete to Installer 2019-03-11 11:49:00 +01:00
Andrea Franz 341eec2a18
check if applet is already installed 2019-03-06 14:31:40 +01:00
Andrea Franz de9b00d646
don't parse ISD 2019-03-06 13:45:32 +01:00
Andrea Franz 53e3def34c
check if card scp version is supported 2019-03-06 13:39:24 +01:00
Andrea Franz 7354d52c0a
check if card is blocked 2019-03-06 12:55:57 +01:00
Andrea Franz 5f7af0f5e1
remove card manager AID in select and install for load 2019-03-06 12:48:12 +01:00
Andrea Franz 3c0ece1eec
add identifiers package 2019-03-06 11:30:21 +01:00
Andrea Franz 013787f399
add globalplatform.CommandSet 2019-03-06 10:45:52 +01:00
Andrea Franz 10c8e16065
add blocksCount to LoadCommandStream 2019-03-06 10:44:42 +01:00
Andrea Franz 53689712e6
use SCP02Keys instead of KeyProvider 2019-03-06 10:43:37 +01:00
Andrea Franz 6e8ec0271b
rename KeyProvider struct to SCP02Keys 2019-03-06 10:41:22 +01:00
Andrea Franz 36b7321e70
rename keyprovider to scp02_keys 2019-03-06 10:40:02 +01:00
Andrea Franz 2b0ff91b13
rename APDUWrapper to SCP02Wrapper 2019-03-05 12:00:23 +01:00
Andrea Franz f81dc83bb3
rename to keycard-go 2019-03-01 18:44:07 +01:00
Andrea Franz 6e7e217179
implement applet secure channel 2018-11-07 11:34:03 +01:00
Andrea Franz b813e1743f
add info command 2018-11-06 12:54:11 +01:00
Andrea Franz 828b7be733
rename pkg to hardware-wallet-go 2018-11-06 10:25:54 +01:00
Andrea Franz 8a55f77d42
update imported packages 2018-10-19 14:46:54 +02:00
Andrea Franz bb9fddd181
skip security checkes on smartcard scp02 algorithm using des 2018-10-19 14:46:54 +02:00
Andrea Franz f10e19e4c2
fix lint warning and add missing files 2018-10-19 14:46:54 +02:00
Andrea Franz 8d061e2c60
add comments to all packages 2018-10-19 14:46:54 +02:00
Andrea Franz 02de35c254
move channels structs to globalplatform pkg 2018-10-19 14:46:54 +02:00
Andrea Franz d5c83615d6
add docs to commands 2018-10-19 14:46:54 +02:00
Andrea Franz 010ab44d06
add GetStatus command 2018-10-19 14:46:54 +02:00
Andrea Franz ec500a3ab6
fix commands to work with both T=0 and T=1 2018-10-19 14:46:54 +02:00
Andrea Franz 415fe350bf
add load command 2018-10-19 14:46:54 +02:00
Andrea Franz d5b7793219
add P1ExternalAuthenticateCMAC constant 2018-10-19 14:46:54 +02:00
Andrea Franz fd2a1eda27
add install for install command 2018-10-19 14:46:54 +02:00
Andrea Franz 48ad7291b4
add install for load command 2018-10-19 14:46:54 +02:00
Andrea Franz f718e4accc
add delete command to installation process 2018-10-19 14:46:54 +02:00
Andrea Franz 7971bc3e09
fix mac full 3DES iv generation 2018-10-19 14:46:54 +02:00
Andrea Franz 2f4bf27ce0
fix crypto pkg tests 2018-10-19 14:46:54 +02:00
Andrea Franz 50bfda60e0
add tlv formatting to delete data 2018-10-19 14:46:54 +02:00
Andrea Franz c55b6e1593
add delete command 2018-10-19 14:46:54 +02:00
Andrea Franz 5ddbdb3386
add GetResponse command 2018-10-19 14:46:54 +02:00
Andrea Franz 8721418cd7
add external auth command 2018-10-19 14:46:54 +02:00
Andrea Franz 0ef7630270
fix icv encryption in apdu wrapper 2018-10-19 14:46:54 +02:00
Andrea Franz 7b24b7bc42
add APDUWrapper and test 2018-10-19 14:46:54 +02:00
Andrea Franz 3e3af578eb
add session 2018-10-19 14:46:54 +02:00
Andrea Franz 83941f7016
add MacFull3DES function 2018-10-19 14:46:54 +02:00
Andrea Franz e40519c7da
add VerifyCryptogram function 2018-10-19 14:46:54 +02:00
Andrea Franz e81db1f0bd
add appendDESPadding function 2018-10-19 14:46:54 +02:00
Andrea Franz a2e6eec5b2
add crypto pkg and DeriveKey func 2018-10-19 14:46:54 +02:00
Andrea Franz fa35b117ff
add hexutils pkg 2018-10-19 14:46:54 +02:00
Andrea Franz a9f7cb5bce
add initialize update command 2018-10-19 14:46:54 +02:00
Andrea Franz 739696e6f9
add Select command 2018-10-19 14:46:54 +02:00