/***
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);
int x509_decode_subject_public_key_info_2(const unsigned char *in, unsigned long inlen,
const unsigned long *oid,
void *parameters, unsigned long *parameters_len);