add touch tlv for generate and import-key

This commit is contained in:
Klas Lindfors
2015-06-25 12:04:05 +02:00
parent be8f37924d
commit ca6a355b5d
5 changed files with 35 additions and 5 deletions
+4
View File
@@ -152,6 +152,10 @@ extern "C"
#define YKPIV_PINPOLICY_ONCE 2
#define YKPIV_PINPOLICY_ALWAYS 3
#define YKPIV_TOUCHPOLICY_TAG 0xab
#define YKPIV_TOUCHPOLICY_NEVER 1
#define YKPIV_TOUCHPOLICY_ALWAYS 2
#define IS_ECKEY(a) ((a == YKPIV_ALGO_ECCP256 || a == YKPIV_ALGO_ECCP384))
#define IS_RSAKEY(a) ((a == YKPIV_ALGO_RSA1024 || a == YKPIV_ALGO_RSA2048))