secp256r1 65 byte key size in packet capture

Lokesh Chakka <[email protected]>
Newsgroups gmane.comp.encryption.openssl.user
Message-ID <CACh--sh04z6=spDP4GqySs5-E73TjBcajQwyYVGEsCF44Bswgg@mail.gmail.com>
hello,

I'm trying to generate public/private keys with following commands:

openssl ecparam -name secp256r1 -genkey -out pvtkey.pem
openssl ec -in pvtkey.pem -pubout

I'm seeing the sizeof private key as 164 bytes and public key as 124 bytes.

In a wireshark capture( attached ), I'm seeing key length as 65 bytes.

Can someone help me understand why the difference?

Thanks & Regards
--
Lokesh Chakka.
Screenshot from 2024-06-19 13-42-38.png (image/png, 20.4 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.