File: test_openssl_ecc.c

package info (click to toggle)
softhsm2 2.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,496 kB
  • sloc: cpp: 65,881; sh: 4,363; ansic: 2,018; makefile: 655
file content (13 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (3)
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;
}