Howto read a mpi point from buffer?

Stef Bon stefbon at gmail.com
Sat Jun 10 19:55:35 CEST 2017


2017-06-10 7:32 GMT+02:00 Stef Bon <stefbon at gmail.com>:
> Hi,
>
> I'm implementing the ed25519 pubkey method in my application using libgcrypt.
> Earlier I'v added rsa and dss.
>
> I cannot find a function to read a mpi point. Is there one?
>

The file I want to read is the public key stored by openssh, where the "q"
(elliptic curve point octet string) of the key:

string "ed25519"
string "q"

(and also the private key, but this is using the same technique).

Stef



More information about the Gcrypt-devel mailing list