Ruby  1.9.3p551(2014-11-13revision48407)
Functions | Variables
ossl_pkey.c File Reference
#include "ossl.h"

Go to the source code of this file.

Functions

void ossl_generate_cb (int p, int n, void *arg)
 
VALUE ossl_pkey_new (EVP_PKEY *pkey)
 
VALUE ossl_pkey_new_from_file (VALUE filename)
 
static VALUE ossl_pkey_new_from_data (int argc, VALUE *argv, VALUE self)
 
EVP_PKEY * GetPKeyPtr (VALUE obj)
 
EVP_PKEY * GetPrivPKeyPtr (VALUE obj)
 
EVP_PKEY * DupPKeyPtr (VALUE obj)
 
EVP_PKEY * DupPrivPKeyPtr (VALUE obj)
 
static VALUE ossl_pkey_alloc (VALUE klass)
 
static VALUE ossl_pkey_initialize (VALUE self)
 
static VALUE ossl_pkey_sign (VALUE self, VALUE digest, VALUE data)
 
static VALUE ossl_pkey_verify (VALUE self, VALUE digest, VALUE sig, VALUE data)
 
void Init_ossl_pkey ()
 

Variables

VALUE mPKey
 
VALUE cPKey
 
VALUE ePKeyError
 
ID id_private_q
 

Function Documentation

EVP_PKEY* DupPKeyPtr ( VALUE  obj)

Definition at line 159 of file ossl_pkey.c.

References SafeGetPKey.

Referenced by ossl_client_cert_cb().

EVP_PKEY* DupPrivPKeyPtr ( VALUE  obj)

Definition at line 170 of file ossl_pkey.c.

References id_private_q, NULL, ossl_raise(), Qtrue, rb_eArgError, rb_funcall(), and SafeGetPKey.

EVP_PKEY* GetPKeyPtr ( VALUE  obj)
EVP_PKEY* GetPrivPKeyPtr ( VALUE  obj)
void Init_ossl_pkey ( void  )
void ossl_generate_cb ( int  p,
int  n,
void arg 
)

Definition at line 25 of file ossl_pkey.c.

References ary, INT2NUM(), rb_ary_new2(), rb_ary_store(), and rb_yield().

Referenced by dh_generate(), dsa_generate(), and rsa_generate().

static VALUE ossl_pkey_alloc ( VALUE  klass)
static

Definition at line 187 of file ossl_pkey.c.

References ePKeyError, NULL, obj, ossl_raise(), and WrapPKey.

Referenced by Init_ossl_pkey().

static VALUE ossl_pkey_initialize ( VALUE  self)
static

Definition at line 208 of file ossl_pkey.c.

References cPKey, ossl_raise(), rb_eNotImpError, and rb_obj_is_instance_of().

Referenced by Init_ossl_pkey().

VALUE ossl_pkey_new ( EVP_PKEY *  pkey)
static VALUE ossl_pkey_new_from_data ( int  argc,
VALUE argv,
VALUE  self 
)
static
VALUE ossl_pkey_new_from_file ( VALUE  filename)
static VALUE ossl_pkey_sign ( VALUE  self,
VALUE  digest,
VALUE  data 
)
static
static VALUE ossl_pkey_verify ( VALUE  self,
VALUE  digest,
VALUE  sig,
VALUE  data 
)
static

Variable Documentation

VALUE cPKey
VALUE ePKeyError
ID id_private_q

Definition at line 19 of file ossl_pkey.c.

Referenced by DupPrivPKeyPtr(), GetPrivPKeyPtr(), Init_ossl_pkey(), and ossl_pkey_sign().

VALUE mPKey

Definition at line 16 of file ossl_pkey.c.

Referenced by Init_ossl_dh(), Init_ossl_dsa(), Init_ossl_pkey(), and Init_ossl_rsa().