Re: Why were edwards curves given distinct key types, aren't they EC keys?

2019-03-16 Thread Sam Roberts
That helps a lot, thanks. On Sat, Mar 16, 2019 at 8:05 AM Nicola wrote: > > Well, they just don't have their individual type either: they are just > `EVP_PKEY`s, with `EVP_PKEY` being the top level API in libcrypto for > public key cryptography. > The difference with `RSA_KEY`, `DSA_KEY`, `EC_KEY

Re: Why were edwards curves given distinct key types, aren't they EC keys?

2019-03-16 Thread Nicola
Well, they just don't have their individual type either: they are just `EVP_PKEY`s, with `EVP_PKEY` being the top level API in libcrypto for public key cryptography. The difference with `RSA_KEY`, `DSA_KEY`, `EC_KEY` (that can be encapsulated in a generic `EVP_PKEY` object) is that Ed* keys don't s

Re: Why were edwards curves given distinct key types, aren't they EC keys?

2019-03-16 Thread Sam Roberts
That helps a lot, I can see why they are different enough from EC key types to be distinct. It still leaves me wondering whe two edwards curves have key types distinct from each other? Why aren't they both EVP_PKEY_ED? (or something of the like) Cheers, Sam

Re: Why were edwards curves given distinct key types, aren't they EC keys?

2019-03-15 Thread Nicola
It depends on the way they are defined: Ed25519 and Ed448 are standardized as twisted edward curves, while traditional curves in the EC module are defined in short weirstrass form. The set of parameters describing the curves and their equation form are different: - for Edwards curves you have an e

Re: Why were edwards curves given distinct key types, aren't they EC keys?

2019-03-15 Thread Erwann Abalea via openssl-users
Maybe because EVP_PKEY_EC designates an ECDSA key, that an EdDSA key is not generated the same way (particularly the public part), and that the encodings are different? Cordialement, Erwann Abalea Le 15/03/2019 19:20, « openssl-users au nom de Sam Roberts » a écrit : It seems like they

Why were edwards curves given distinct key types, aren't they EC keys?

2019-03-15 Thread Sam Roberts
It seems like they are EC keys, with specific curve designs, and that also have some algorithms designed specifically for them, like EdDSA -- though it looks like that alg is being generalized to other curve types (https://tools.ietf.org/html/rfc8032#ref-EDDSA2). What about them makes it necessary