Skip to content

Commit

Permalink
pkcs11-tool: send DER for EC public keys unconditionally
Browse files Browse the repository at this point in the history
- Fixes #1286: "Does it even make sense to write EC keys not in DER?"
- the naming of the define was confusing, anyway
  • Loading branch information
aalba6675 authored and rchan1611 committed Mar 18, 2018
1 parent 7ca16a7 commit 3e75e8f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/tools/pkcs11-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -2632,10 +2632,6 @@ parse_ec_pkey(EVP_PKEY *pkey, int private, struct gostkey_info *gost)
header_len = point-gost->public.value;
memcpy(point, buf, point_len);
gost->public.len = header_len+point_len;
#ifndef EC_POINT_NO_ASN1_OCTET_STRING // workaround for non-compliant cards not expecting DER encoding
gost->public.len -= header_len;
gost->public.value += header_len;
#endif
}

return 0;
Expand Down

0 comments on commit 3e75e8f

Please sign in to comment.