From 90d0072165cc5c6888f14462392a211de0c4b232 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 3 Sep 2020 19:58:10 +0900 Subject: [PATCH] scd: Add handling of "Algorithm Information" DO. * cd/app-openpgp.c (data_objects): Add 0x00FA. (do_getattr): Add KEY-ATTR-INFO. -- See the section 4.4.3.11 Algorithm Information in the OpenPGP card functional specification version 3.4.1. Signed-off-by: NIIBE Yutaka --- scd/app-openpgp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 13fdd894f..2a77a5de8 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -121,6 +121,7 @@ static struct { { 0x00D7, 0, 0x6E, 1, 0, 0, 0, 0, "UIF for Decryption"}, { 0x00D8, 0, 0x6E, 1, 0, 0, 0, 0, "UIF for Authentication"}, { 0x00F9, 0, 0, 1, 0, 0, 0, 0, "KDF data object"}, + { 0x00FA, 0, 0, 0, 0, 0, 0, 0, "Algorithm Information"}, { 0 } }; @@ -1084,6 +1085,7 @@ do_getattr (app_t app, ctrl_t ctrl, const char *name) { "MANUFACTURER", 0x0000, -8 }, { "UIF", 0x0000, -9 }, /* Shortcut for all UIF */ { "KEY-STATUS", 0x00DE, 6 }, + { "KEY-ATTR-INFO", 0x00FA, 7 }, { NULL, 0 } }; int idx, i, rc;