Re: [openssl-users] Encrypting using EC public key

2017-01-16 Thread Viktor Dukhovni
> On Jan 16, 2017, at 4:35 AM, Matt Caswell wrote: > > OpenSSL only supports ECDH (for key exchange) and ECDSA (for digital > signatures) for elliptic curve keys, i.e. there are no ec encryption > algorithms available. That said, IIRC CMS supports EC public keys, by performing off-line ECDH: c

Re: [openssl-users] Encrypting using EC public key

2017-01-16 Thread Matt Caswell
On 15/01/17 03:47, Norm Green wrote: > Is there a way to encrypt a file using the openssl command with an > elliptic curve public key? Here's what I get when I try using OpenSSL > 1.1.0c : OpenSSL only supports ECDH (for key exchange) and ECDSA (for digital signatures) for elliptic curve keys,

[openssl-users] Encrypting using EC public key

2017-01-14 Thread Norm Green
Is there a way to encrypt a file using the openssl command with an elliptic curve public key? Here's what I get when I try using OpenSSL 1.1.0c : normg>./openssl pkeyutl -encrypt -pubin -inkey secp256k1-public-key.pem -in a.txt -out a.txt.enc pkeyutl: Error initializing context 1403392447342