summaryrefslogtreecommitdiff
path: root/lib/x509/key_decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x509/key_decode.c')
-rw-r--r--lib/x509/key_decode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/x509/key_decode.c b/lib/x509/key_decode.c
index 89ca157ed2..a5bae51c0e 100644
--- a/lib/x509/key_decode.c
+++ b/lib/x509/key_decode.c
@@ -101,9 +101,9 @@ int
_gnutls_x509_read_ecc_pubkey(uint8_t * der, int dersize,
gnutls_pk_params_st * params)
{
-/* Eventhough RFC5480 defines the public key to be an ECPoint (i.e. OCTET STRING),
- * it is actually copied in raw there. Why do they use ASN.1 anyway?
- */
+ /* RFC5480 defines the public key to be an ECPoint (i.e. OCTET STRING),
+ * Then it says that the OCTET STRING _value_ is converted to BIT STRING.
+ * That means that the value we place there is the raw X9.62 one. */
return _gnutls_ecc_ansi_x963_import(der, dersize,
&params->params[ECC_X],
&params->params[ECC_Y]);