From: Herbert Xu <herbert@gondor.apana.org.au>
To: Paul Louvel <paul.louvel@bootlin.com>
Cc: linux-crypto@vger.kernel.org,
"David S. Miller" <davem@davemloft.net>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Jian Pan <jian.pan@se.com>
Subject: Re: ECDSA key parsing in crypto drivers
Date: Wed, 2 Sep 2026 18:35:36 +1000 [thread overview]
Message-ID: <apff2HnJS3IjlT4p@gondor.apana.org.au> (raw)
In-Reply-To: <41bb0b65-3a30-4922-9aef-10f73c654852@bootlin.com>
On Mon, Aug 31, 2026 at 02:08:02PM +0200, Paul Louvel wrote:
>
> > My question is: which ASN.1 schema should be used? Should a client of the
> > crypto API know in advance which format the driver expects? Also, for RSA,
> > there are helpers for parsing private and public keys: rsa_parse_priv_key() and
> > rsa_parse_pub_key(). These helpers use the kernel's ASN.1 decoder. Would it
> > make sense to have such helpers for ECDSA?
The driver needs to match the generic C implementation of the
same algorithm.
Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2026-09-02 8:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-31 9:09 ECDSA key parsing in crypto drivers Paul Louvel
2026-08-31 12:08 ` Paul Louvel
2026-09-02 8:35 ` Herbert Xu [this message]
2026-09-02 11:58 ` Paul Louvel
2026-09-03 3:50 ` Herbert Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=apff2HnJS3IjlT4p@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=davem@davemloft.net \
--cc=jian.pan@se.com \
--cc=linux-crypto@vger.kernel.org \
--cc=miquel.raynal@bootlin.com \
--cc=paul.louvel@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox