CryptoDit/speed.h
2026-01-31 16:45:53 +01:00

25 lines
649 B
C

#ifndef H_SPEED
#define H_SPEED
#define TYPE_SPEED_ALL 0x1
#define TYPE_SPEED_RSA 0x2
#define TYPE_SPEED_ELLIPTIC 0x3
#include <stdio.h>
#include <string.h>
#include <openssl/rsa.h>
#include <openssl/bn.h>
#include <openssl/err.h>
#include <openssl/pem.h>
#include <openssl/ec.h>
int speed(char **, int);
static int check_arguments_speed(char **, const int, int *, size_t *, int *);
static int speed_generate_rsa_keys(size_t, const int);
static void print_key(BIO *);
static int speed_generate_elliptic_keys(size_t, const int);
static int ec_get_pub_key(const EC_KEY *, const EC_POINT *);
static unsigned long getms();
#endif