Hello,
> I create ec key pair with secp160r2 curve and I need to achieve information
> from public key in der format  as:
> EC Public Key:
>                 pub: 
>                     04:66:6d:59:b1:fb:53:c1:c9:98:c1:2c:71:73:1d:
>                     3a:36:a3:7c:d9:95:ca:de:ee:96:c1:56:c8:d7:c7:
>                     85:2b:39:b5:fe:fd:1f:a3:ce:18:c7
>                 ASN1 OID: secp160r2 
> 
> What is the meaning of the section pub. It si modulus or not ? 
No, this is point on elliptic curve with (uncompressed - 04)
coordinates:
        x = 66:6d:59:b1:fb:53:c1:c9:98:c1:2c:71:73:1d:3a:36:a3:7c:d9:95:
        y = ca:de:ee:96:c1:56:c8:d7:c7:85:2b:39:b5:fe:fd:1f:a3:ce:18:c7
This point is constructed by multiplication private key (random number
from [1, n-1] where n - order) and generator (g):
        P = d*g
 
> I read that public key has more parameters as curve,ECPoint and another. How
> can I separate section ASN1 OID: secp160r2 ?
OID secp160r2 precisely defines elliptic curve parameters like:
        p,a,b,n,h,s,g
If you want to see this values add "-param_enc explicit" option to
command which display this public key.

Best regards,
-- 
Marek Marcola <[EMAIL PROTECTED]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to