pkcs15-tool: print EC key label
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5326 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
e8f6a3e407
commit
771aeb32af
@ -492,7 +492,7 @@ static void print_prkey_info(const struct sc_pkcs15_object *obj)
|
|||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
struct sc_pkcs15_prkey_info *prkey = (struct sc_pkcs15_prkey_info *) obj->data;
|
struct sc_pkcs15_prkey_info *prkey = (struct sc_pkcs15_prkey_info *) obj->data;
|
||||||
const char *types[] = { "", "RSA", "DSA", "GOSTR3410" };
|
const char *types[] = { "", "RSA", "DSA", "GOSTR3410", "EC", "", "", "" };
|
||||||
const char *usages[] = {
|
const char *usages[] = {
|
||||||
"encrypt", "decrypt", "sign", "signRecover",
|
"encrypt", "decrypt", "sign", "signRecover",
|
||||||
"wrap", "unwrap", "verify", "verifyRecover",
|
"wrap", "unwrap", "verify", "verifyRecover",
|
||||||
@ -506,7 +506,7 @@ static void print_prkey_info(const struct sc_pkcs15_object *obj)
|
|||||||
const unsigned int af_count = NELEMENTS(access_flags);
|
const unsigned int af_count = NELEMENTS(access_flags);
|
||||||
char guid[39];
|
char guid[39];
|
||||||
|
|
||||||
printf("Private %s Key [%s]\n", types[3 & obj->type], obj->label);
|
printf("Private %s Key [%s]\n", types[7 & obj->type], obj->label);
|
||||||
print_common_flags(obj);
|
print_common_flags(obj);
|
||||||
printf("\tUsage : [0x%X]", prkey->usage);
|
printf("\tUsage : [0x%X]", prkey->usage);
|
||||||
for (i = 0; i < usage_count; i++)
|
for (i = 0; i < usage_count; i++)
|
||||||
|
Loading…
Reference in New Issue
Block a user