aboutsummaryrefslogtreecommitdiffstats
path: root/SoftHSMv2/modules/tests/test_openssl_ecc.c
blob: d1eb22b6f99d4da40021c853f11010ac0f7cf0b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <openssl/ecdsa.h>
#include <openssl/objects.h>
int main()
{
        EC_KEY *ec256, *ec384, *ec521;

        ec256 = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
        ec384 = EC_KEY_new_by_curve_name(NID_secp384r1);
        ec521 = EC_KEY_new_by_curve_name(NID_secp521r1);
        if (ec256 == NULL || ec384 == NULL || ec521 == NULL)
                return 1;
        return 0;
}