15 lines
530 B
C
15 lines
530 B
C
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: LTCExtensions.h
|
|
Date: 2021-6-24
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
static const int kRsaFlagPublic = 1 << 0;
|
|
static const int kRsaFlagPKCS1 = 1 << 1;
|
|
|
|
int rsa_pkcs8_export(unsigned char *out, unsigned long *outlen, const rsa_key *key, int flags);
|
|
int rsa_basic_export(unsigned char *out, unsigned long *outlen, const rsa_key *key, int flags);
|
|
int rsa_import_ex(const unsigned char *in, unsigned long inlen, rsa_key *key, int flags); |