opensslrsa_link.c revision 6098d364b690cb9dabf96e9664c4689c8559bd2e
823N/A * $Id: opensslrsa_link.c,v 1.20 2008/09/24 02:46:22 marka Exp $
823N/A#include "dst_internal.h"
823N/A#include "dst_openssl.h"
823N/A#include "dst_parse.h"
5175N/Astatic isc_result_t
5175N/A return (ISC_R_NOMEMORY);
983N/A return (ISC_R_FAILURE);
5175N/A return (ISC_R_NOMEMORY);
5175N/A return (ISC_R_NOMEMORY);
5175N/A return (ISC_R_SUCCESS);
5175N/Astatic isc_result_t
5175N/A return (ISC_R_FAILURE);
5175N/A return (ISC_R_SUCCESS);
983N/Astatic isc_result_t
878N/A return (ISC_R_NOSPACE);
3853N/A return (ISC_R_FAILURE);
878N/A return (ISC_R_NOSPACE);
983N/A return (ISC_R_SUCCESS);
983N/Astatic isc_result_t
878N/A return (DST_R_VERIFYFAILURE);
878N/A return (ISC_R_SUCCESS);
878N/Astatic isc_boolean_t
5175N/Astatic isc_result_t
1065N/A BN_set_bit(e, 0);
5175N/A BN_set_bit(e, 0);
5175N/A return (ISC_R_SUCCESS);
5175N/A return (ISC_R_NOMEMORY);
#if USE_EVP
#if USE_EVP
return (ISC_R_SUCCESS);
static isc_boolean_t
#if USE_EVP
return (ISC_TRUE);
#if USE_EVP
static isc_result_t
isc_region_t r;
unsigned int e_bytes;
unsigned int mod_bytes;
#if USE_EVP
#if USE_EVP
#if USE_EVP
return (ISC_R_NOSPACE);
err:
#if USE_EVP
return (ret);
static isc_result_t
isc_region_t r;
unsigned int e_bytes;
#if USE_EVP
if (r.length == 0)
return (ISC_R_SUCCESS);
return (DST_R_INVALIDPUBLICKEY);
r.length--;
if (e_bytes == 0) {
return (DST_R_INVALIDPUBLICKEY);
return (DST_R_INVALIDPUBLICKEY);
#if USE_EVP
return (ISC_R_NOMEMORY);
return (ISC_R_SUCCESS);
static isc_result_t
#if USE_EVP
return (DST_R_NULLKEY);
return (DST_R_NULLKEY);
goto fail;
fail:
#if USE_EVP
return (result);
static isc_result_t
return (ret);
case TAG_RSA_ENGINE:
case TAG_RSA_LABEL:
if (e == NULL)
#if USE_EVP
return (ISC_R_SUCCESS);
#if USE_EVP
case TAG_RSA_ENGINE:
case TAG_RSA_LABEL:
case TAG_RSA_PIN:
case TAG_RSA_MODULUS:
case TAG_RSA_PUBLICEXPONENT:
case TAG_RSA_PRIVATEEXPONENT:
case TAG_RSA_PRIME1:
case TAG_RSA_PRIME2:
case TAG_RSA_EXPONENT1:
case TAG_RSA_EXPONENT2:
case TAG_RSA_COEFFICIENT:
#if USE_EVP
return (ISC_R_SUCCESS);
err:
#if USE_EVP
return (ret);
static isc_result_t
const char *pin)
if (e == NULL)
#if USE_EVP
return (ISC_R_SUCCESS);
err:
return (ret);
return (ISC_R_SUCCESS);