Ruby  2.4.2p198(2017-09-14revision59899)
Functions | Variables
openssl_missing.c File Reference
#include <string.h>
#include <openssl/engine.h>
#include <openssl/hmac.h>
#include <openssl/x509_vfy.h>
#include "openssl_missing.h"
Include dependency graph for openssl_missing.c:

Go to the source code of this file.

Functions

EVP_CIPHER_CTX * ossl_EVP_CIPHER_CTX_new (void)
 
void ossl_EVP_CIPHER_CTX_free (EVP_CIPHER_CTX *ctx)
 
int ossl_EVP_CIPHER_CTX_copy (EVP_CIPHER_CTX *out, const EVP_CIPHER_CTX *in)
 
int ossl_HMAC_CTX_copy (HMAC_CTX *out, HMAC_CTX *in)
 
int ossl_EC_curve_nist2nid (const char *name)
 
HMAC_CTX * ossl_HMAC_CTX_new (void)
 
void ossl_HMAC_CTX_free (HMAC_CTX *ctx)
 
void ossl_X509_CRL_get0_signature (const X509_CRL *crl, const ASN1_BIT_STRING **psig, const X509_ALGOR **palg)
 
void ossl_X509_REQ_get0_signature (const X509_REQ *req, const ASN1_BIT_STRING **psig, const X509_ALGOR **palg)
 

Variables

struct {
   const char *   name
 
   int   nid
 
nist_curves []
 

Function Documentation

◆ ossl_EC_curve_nist2nid()

int ossl_EC_curve_nist2nid ( const char *  name)

Definition at line 115 of file openssl_missing.c.

References nid, and nist_curves.

◆ ossl_EVP_CIPHER_CTX_copy()

int ossl_EVP_CIPHER_CTX_copy ( EVP_CIPHER_CTX *  out,
const EVP_CIPHER_CTX *  in 
)

Definition at line 55 of file openssl_missing.c.

References memcpy.

◆ ossl_EVP_CIPHER_CTX_free()

void ossl_EVP_CIPHER_CTX_free ( EVP_CIPHER_CTX *  ctx)

Definition at line 38 of file openssl_missing.c.

◆ ossl_EVP_CIPHER_CTX_new()

EVP_CIPHER_CTX* ossl_EVP_CIPHER_CTX_new ( void  )

Definition at line 26 of file openssl_missing.c.

References NULL.

◆ ossl_HMAC_CTX_copy()

int ossl_HMAC_CTX_copy ( HMAC_CTX *  out,
HMAC_CTX *  in 
)

Definition at line 74 of file openssl_missing.c.

References memcpy.

◆ ossl_HMAC_CTX_free()

void ossl_HMAC_CTX_free ( HMAC_CTX *  ctx)

Definition at line 142 of file openssl_missing.c.

◆ ossl_HMAC_CTX_new()

HMAC_CTX* ossl_HMAC_CTX_new ( void  )

Definition at line 130 of file openssl_missing.c.

References NULL.

◆ ossl_X509_CRL_get0_signature()

void ossl_X509_CRL_get0_signature ( const X509_CRL *  crl,
const ASN1_BIT_STRING **  psig,
const X509_ALGOR **  palg 
)

Definition at line 153 of file openssl_missing.c.

References NULL.

◆ ossl_X509_REQ_get0_signature()

void ossl_X509_REQ_get0_signature ( const X509_REQ *  req,
const ASN1_BIT_STRING **  psig,
const X509_ALGOR **  palg 
)

Definition at line 165 of file openssl_missing.c.

References NULL.

Variable Documentation

◆ name

const char* name

Definition at line 94 of file openssl_missing.c.

◆ nid

int nid

◆ nist_curves

struct { ... } nist_curves[]
Initial value:
= {
{"B-163", NID_sect163r2},
{"B-233", NID_sect233r1},
{"B-283", NID_sect283r1},
{"B-409", NID_sect409r1},
{"B-571", NID_sect571r1},
{"K-163", NID_sect163k1},
{"K-233", NID_sect233k1},
{"K-283", NID_sect283k1},
{"K-409", NID_sect409k1},
{"K-571", NID_sect571k1},
{"P-192", NID_X9_62_prime192v1},
{"P-224", NID_secp224r1},
{"P-256", NID_X9_62_prime256v1},
{"P-384", NID_secp384r1},
{"P-521", NID_secp521r1}
}

Referenced by ossl_EC_curve_nist2nid().