Ruby
3.1.0dev(2021-09-10revisionb76ad15ed0da636161de0243c547ee1e6fc95681)
|
#include "ossl.h"
Go to the source code of this file.
Data Structures | |
struct | pkey_blocking_generate_arg |
Functions | |
VALUE | ossl_pkey_new (EVP_PKEY *pkey) |
EVP_PKEY * | ossl_pkey_read_generic (BIO *bio, VALUE pass) |
void | ossl_pkey_check_public_key (const EVP_PKEY *pkey) |
EVP_PKEY * | GetPKeyPtr (VALUE obj) |
EVP_PKEY * | GetPrivPKeyPtr (VALUE obj) |
EVP_PKEY * | DupPKeyPtr (VALUE obj) |
VALUE | ossl_pkey_export_traditional (int argc, VALUE *argv, VALUE self, int to_der) |
VALUE | ossl_pkey_export_spki (VALUE self, int to_der) |
void | Init_ossl_pkey (void) |
Variables | |
VALUE | mPKey |
VALUE | cPKey |
VALUE | ePKeyError |
const rb_data_type_t | ossl_evp_pkey_type |
EVP_PKEY* DupPKeyPtr | ( | VALUE | obj | ) |
Definition at line 462 of file ossl_pkey.c.
References EVP_PKEY_up_ref, GetPKey, and pkey_blocking_generate_arg::pkey.
EVP_PKEY* GetPKeyPtr | ( | VALUE | obj | ) |
Definition at line 432 of file ossl_pkey.c.
References GetPKey, and pkey_blocking_generate_arg::pkey.
EVP_PKEY* GetPrivPKeyPtr | ( | VALUE | obj | ) |
Definition at line 442 of file ossl_pkey.c.
References GetPKey, OSSL_PKEY_IS_PRIVATE, pkey_blocking_generate_arg::pkey, and rb_respond_to().
void Init_ossl_pkey | ( | void | ) |
Definition at line 1399 of file ossl_pkey.c.
References cPKey, eOSSLError, ePKeyError, mOSSL, mPKey, rb_cObject, rb_define_class_under(), rb_define_module(), rb_define_module_function, rb_define_module_under(), and rb_eStandardError.
void ossl_pkey_check_public_key | ( | const EVP_PKEY * | pkey | ) |
Definition at line 392 of file ossl_pkey.c.
References ePKeyError, NULL, ossl_raise(), pkey_blocking_generate_arg::pkey, and ptr.
Definition at line 695 of file ossl_pkey.c.
References ePKeyError, GetPKey, ossl_membio2str(), ossl_raise(), and pkey_blocking_generate_arg::pkey.
Definition at line 580 of file ossl_pkey.c.
References argc, argv, ePKeyError, GetPKey, NIL_P, NULL, ossl_evp_get_cipherbyname(), ossl_membio2str(), ossl_pem_passwd_cb(), ossl_pem_passwd_value(), ossl_raise(), pkey_blocking_generate_arg::pkey, rb_scan_args(), and snprintf.
VALUE ossl_pkey_new | ( | EVP_PKEY * | pkey | ) |
Definition at line 67 of file ossl_pkey.c.
References rb_protect().
EVP_PKEY* ossl_pkey_read_generic | ( | BIO * | bio, |
VALUE | pass | ||
) |
Definition at line 82 of file ossl_pkey.c.
References NULL, OSSL_BIO_reset, and ossl_pem_passwd_cb().
VALUE cPKey |
Definition at line 16 of file ossl_pkey.c.
Referenced by Init_ossl_dh(), Init_ossl_dsa(), Init_ossl_ec(), Init_ossl_pkey(), and Init_ossl_rsa().
VALUE ePKeyError |
Definition at line 17 of file ossl_pkey.c.
Referenced by Init_ossl_dh(), Init_ossl_dsa(), Init_ossl_ec(), Init_ossl_pkey(), Init_ossl_rsa(), ossl_pkey_check_public_key(), ossl_pkey_export_spki(), and ossl_pkey_export_traditional().
VALUE mPKey |
Definition at line 15 of file ossl_pkey.c.
Referenced by Init_ossl_dh(), Init_ossl_dsa(), Init_ossl_ec(), Init_ossl_pkey(), and Init_ossl_rsa().
const rb_data_type_t ossl_evp_pkey_type |
Definition at line 29 of file ossl_pkey.c.