Topic: public and private keys of size less than 72 bytes

I have the PFX file that currently generates the Digital signature, private key and public key. However, the generated RSA keys from the PFX files are 256 bytes in length.

I want to have the public and private keys of less than 72 bytes in size.

Is there any option that i can generate the keys(less than 72 bytes) using the PFX file. if this is not possible, please provide any alternate ways to achieve this objective.

is there a way to generate keys from PFX file using ECC instead of RSA?

Share

Re: public and private keys of size less than 72 bytes

Hi akimoorthy,

Yes, you will definitely need ECC to achieve this size.  You will want to use 256-bit ECC to generate a public key less than 72 bytes in size.  Note that while the key itself will be smaller than 72 bytes, you are using a PFX file (PKCS#12) which will add some overhead.  For minimal size, consider using a DER file, which will only contain the key itself.

Here is a full example of how to generate an ECC keypair and export it to .der files: https://github.com/wolfSSL/wolfssl-exam … y-export.c

Share

Re: public and private keys of size less than 72 bytes

Public and private keys smaller than 72 bytes are generally considered weak for modern cryptographic standards, as larger key sizes provide stronger protection against potential attacks. Following updated security practices is important when implementing encryption systems.
Similarly, in marketing, visibility matters many brands use high traffic placements like Hessa Street lampposts along Hessa Street to maximize daily audience reach.

Share