Re: [openssl-users] Using SM2 ECIES in 1.1.1

2018-10-28 Thread Akira Takahashi
Thanks a lot for your advice. Just calling EVP_PKEY_set_alias_type(pkey, EVP_PKEY_SM2) right after loading a key worked perfectly and I was able to reuse the code in pkeyutl since everything else was indeed almost identical to RSA! Best regards, Akira On 10/25/2018 12:14 AM, Matt Caswell wrote

Re: [openssl-users] Using SM2 ECIES in 1.1.1

2018-10-24 Thread Matt Caswell
On 24/10/2018 15:55, Akira Takahashi wrote: > Hi all, > > > Since the version 1.1.1 supports the SM2 public key cryptography suite I > am trying to test its ECIES (found in crypto/sm2/sm2_crypto.c) over > different standardized prime curves i.e. not just sm2p256v1. > > Is there CLI or minimal

[openssl-users] Using SM2 ECIES in 1.1.1

2018-10-24 Thread Akira Takahashi
Hi all, Since the version 1.1.1 supports the SM2 public key cryptography suite I am trying to test its ECIES (found in crypto/sm2/sm2_crypto.c) over different standardized prime curves i.e. not just sm2p256v1. Is there CLI or minimal code snippet to achieve it via the EVP interface? The cur