Topic: How to determine that wolfssl is supported ECC P-256 algorithm

I don't know how to determine that wolfssl is supported ECC P-256 algorithm in the source code.
Thank you in advance.

Share

Re: How to determine that wolfssl is supported ECC P-256 algorithm

Hello bohuynh315

Welcome to the wolfSSL Forums. Can you tell us a bit about what you are working on and the high-level overview of the project to help us better classify this inquiry? Thank you in advance!

You can use the wolfSSL_get_ciphers API to get a list of the currently available ciphers. Here is an example:
https://github.com/wolfSSL/wolfssl/blob … #L267-L274

Thanks,
Eric - wolfSSL Support

Re: How to determine that wolfssl is supported ECC P-256 algorithm

Hi embhorn

Thank you for replying.

I am using wolfSSL to create TLS protocol between client and certain server.
The CA certificate is ECC-P256 as a public key cryptography.

I am wondering if my current wolfSSL supports ECC-P256.
Could you guide me how to check it ?

The version I am using is 3.15.7

Share

Re: How to determine that wolfssl is supported ECC P-256 algorithm

Yes, v3.15.7 supports ECC-P256 by default.
https://github.com/wolfSSL/wolfssl/blob … #L188-L189

Re: How to determine that wolfssl is supported ECC P-256 algorithm

Thank you for your information.

Share

6 (edited by bohuynh315 2024-05-28 03:42:33)

Re: How to determine that wolfssl is supported ECC P-256 algorithm

Hi embhorn,

I have another question not related to this topic.
I want to set minimum RSA key size of 2048 bits in compiled wolfSSL.
Could you guide me how to do that.
- Which marco I have to define ?
- Which file should I have to place that marco ?
- Do I have to compile wolfSSL again ?

Many thanks.

Share

Re: How to determine that wolfssl is supported ECC P-256 algorithm

Where you put the define depends on how you are building the library. If you are using the --enable-usersettings option, than add this to user_settings.h
#define RSA_MIN_SIZE 2048

Else you can add it on the configure line with:
./configure CFLAGS="-DRSA_MIN_SIZE=2048"

Yes you will need to rebuild the library.