Skip to content

sharing p256 public key accross different systems. #905

Answered by tarcieri
DAT4 asked this question in Q&A
Discussion options

You must be logged in to vote

The format you're working with appears to be X.509 SubjectPublicKeyInfo (a.k.a. SPKI).

Here's the method for encoding that: EncodePublicKey::to_public_key_der

You'll need to use p256::elliptic_curve::pkcs8::EncodePublicKey to have the required trait in scope.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DAT4
Comment options

Answer selected by DAT4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants