Functions | Variables

ext/openssl/ossl_pkey.c File Reference

#include "ossl.h"
Include dependency graph for ossl_pkey.c:

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)
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 112 of file ossl_pkey.c.

References SafeGetPKey.

Referenced by ossl_client_cert_cb().

EVP_PKEY* DupPrivPKeyPtr ( VALUE  obj  ) 

Definition at line 123 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 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 140 of file ossl_pkey.c.

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

Referenced by Init_ossl_pkey().

static VALUE ossl_pkey_initialize ( VALUE  self  )  [static]

Definition at line 154 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  ) 
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]

Definition at line 187 of file ossl_pkey.c.

References ePKeyError, GetDigestPtr(), GetPKey, NULL, ossl_raise(), RSTRING_LEN, RSTRING_PTR, and StringValue.

Referenced by Init_ossl_pkey().


Variable Documentation

Definition at line 19 of file ossl_pkey.c.

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

Definition at line 16 of file ossl_pkey.c.

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