|
Ruby
2.5.0dev(2017-10-22revision60238)
|
Go to the source code of this file.
Data Structures | |
| struct | ossl_generate_cb_arg |
Macros | |
| #define | OSSL_PKEY_SET_PRIVATE(obj) rb_iv_set((obj), "private", Qtrue) |
| #define | OSSL_PKEY_SET_PUBLIC(obj) rb_iv_set((obj), "private", Qfalse) |
| #define | OSSL_PKEY_IS_PRIVATE(obj) (rb_iv_get((obj), "private") == Qtrue) |
| #define | NewPKey(klass) TypedData_Wrap_Struct((klass), &ossl_evp_pkey_type, 0) |
| #define | SetPKey(obj, pkey) |
| #define | GetPKey(obj, pkey) |
| #define | OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, _name, _get) |
| #define | OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3) |
| #define | OSSL_PKEY_BN_DEF_GETTER2(_keytype, _type, _group, a1, a2) |
| #define | OSSL_PKEY_BN_DEF_SETTER3(_keytype, _type, _group, a1, a2, a3) |
| #define | OSSL_PKEY_BN_DEF_SETTER2(_keytype, _type, _group, a1, a2) |
| #define | OSSL_PKEY_BN_DEF_SETTER_OLD(_keytype, _type, _group, _name) |
| #define | OSSL_PKEY_BN_DEF3(_keytype, _type, _group, a1, a2, a3) |
| #define | OSSL_PKEY_BN_DEF2(_keytype, _type, _group, a1, a2) |
| #define | DEF_OSSL_PKEY_BN(class, keytype, name) |
Functions | |
| int | ossl_generate_cb_2 (int p, int n, BN_GENCB *cb) |
| void | ossl_generate_cb_stop (void *ptr) |
| VALUE | ossl_pkey_new (EVP_PKEY *) |
| EVP_PKEY * | GetPKeyPtr (VALUE) |
| EVP_PKEY * | DupPKeyPtr (VALUE) |
| EVP_PKEY * | GetPrivPKeyPtr (VALUE) |
| void | Init_ossl_pkey (void) |
| VALUE | ossl_rsa_new (EVP_PKEY *) |
| void | Init_ossl_rsa (void) |
| VALUE | ossl_dsa_new (EVP_PKEY *) |
| void | Init_ossl_dsa (void) |
| VALUE | ossl_dh_new (EVP_PKEY *) |
| void | Init_ossl_dh (void) |
| VALUE | ossl_ec_new (EVP_PKEY *) |
| void | Init_ossl_ec (void) |
| #define DEF_OSSL_PKEY_BN | ( | class, | |
| keytype, | |||
| name | |||
| ) |
| #define GetPKey | ( | obj, | |
| pkey | |||
| ) |
Definition at line 31 of file ossl_pkey.h.
Referenced by DupPKeyPtr(), and GetPKeyPtr().
| #define NewPKey | ( | klass | ) | TypedData_Wrap_Struct((klass), &ossl_evp_pkey_type, 0) |
Definition at line 22 of file ossl_pkey.h.
| #define OSSL_PKEY_BN_DEF2 | ( | _keytype, | |
| _type, | |||
| _group, | |||
| a1, | |||
| a2 | |||
| ) |
Definition at line 228 of file ossl_pkey.h.
| #define OSSL_PKEY_BN_DEF3 | ( | _keytype, | |
| _type, | |||
| _group, | |||
| a1, | |||
| a2, | |||
| a3 | |||
| ) |
Definition at line 221 of file ossl_pkey.h.
| #define OSSL_PKEY_BN_DEF_GETTER0 | ( | _keytype, | |
| _type, | |||
| _name, | |||
| _get | |||
| ) |
Definition at line 91 of file ossl_pkey.h.
| #define OSSL_PKEY_BN_DEF_GETTER2 | ( | _keytype, | |
| _type, | |||
| _group, | |||
| a1, | |||
| a2 | |||
| ) |
Definition at line 116 of file ossl_pkey.h.
| #define OSSL_PKEY_BN_DEF_GETTER3 | ( | _keytype, | |
| _type, | |||
| _group, | |||
| a1, | |||
| a2, | |||
| a3 | |||
| ) |
Definition at line 108 of file ossl_pkey.h.
| #define OSSL_PKEY_BN_DEF_SETTER2 | ( | _keytype, | |
| _type, | |||
| _group, | |||
| a1, | |||
| a2 | |||
| ) |
Definition at line 153 of file ossl_pkey.h.
| #define OSSL_PKEY_BN_DEF_SETTER3 | ( | _keytype, | |
| _type, | |||
| _group, | |||
| a1, | |||
| a2, | |||
| a3 | |||
| ) |
Definition at line 122 of file ossl_pkey.h.
| #define OSSL_PKEY_BN_DEF_SETTER_OLD | ( | _keytype, | |
| _type, | |||
| _group, | |||
| _name | |||
| ) |
Definition at line 180 of file ossl_pkey.h.
| #define OSSL_PKEY_IS_PRIVATE | ( | obj | ) | (rb_iv_get((obj), "private") == Qtrue) |
Definition at line 20 of file ossl_pkey.h.
| #define OSSL_PKEY_SET_PRIVATE | ( | obj | ) | rb_iv_set((obj), "private", Qtrue) |
Definition at line 18 of file ossl_pkey.h.
| #define OSSL_PKEY_SET_PUBLIC | ( | obj | ) | rb_iv_set((obj), "private", Qfalse) |
Definition at line 19 of file ossl_pkey.h.
| #define SetPKey | ( | obj, | |
| pkey | |||
| ) |
Definition at line 24 of file ossl_pkey.h.
| EVP_PKEY* DupPKeyPtr | ( | VALUE | ) |
Definition at line 229 of file ossl_pkey.c.
References EVP_PKEY_up_ref, and GetPKey.
| EVP_PKEY* GetPKeyPtr | ( | VALUE | ) |
Definition at line 206 of file ossl_pkey.c.
References GetPKey.
| EVP_PKEY* GetPrivPKeyPtr | ( | VALUE | ) |
Definition at line 216 of file ossl_pkey.c.
References rb_funcallv.
| void Init_ossl_dh | ( | void | ) |
Definition at line 576 of file ossl_pkey_dh.c.
References cDH, cPKey, eDHError, eOSSLError, ePKeyError, mOSSL, mPKey, rb_cObject, rb_define_class_under(), rb_define_module_under(), and rb_define_singleton_method().
| void Init_ossl_dsa | ( | void | ) |
Definition at line 609 of file ossl_pkey_dsa.c.
References cDSA, cPKey, eDSAError, eOSSLError, ePKeyError, mOSSL, mPKey, rb_cObject, rb_define_class_under(), rb_define_module_under(), and rb_define_singleton_method().
| void Init_ossl_ec | ( | void | ) |
Definition at line 1665 of file ossl_pkey_ec.c.
References cEC, cEC_GROUP, cEC_POINT, cPKey, eEC_GROUP, eEC_POINT, eECError, eOSSLError, ePKeyError, mOSSL, mPKey, rb_cObject, rb_define_class_under(), rb_define_module_under(), and rb_eStandardError.
| void Init_ossl_pkey | ( | void | ) |
Definition at line 389 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 Init_ossl_rsa | ( | void | ) |
Definition at line 690 of file ossl_pkey_rsa.c.
References cPKey, cRSA, eOSSLError, ePKeyError, eRSAError, mOSSL, mPKey, rb_cObject, rb_define_class_under(), rb_define_module_under(), and rb_define_singleton_method().
| VALUE ossl_dh_new | ( | EVP_PKEY * | ) |
Definition at line 58 of file ossl_pkey_dh.c.
| VALUE ossl_dsa_new | ( | EVP_PKEY * | ) |
Definition at line 72 of file ossl_pkey_dsa.c.
| VALUE ossl_ec_new | ( | EVP_PKEY * | ) |
Definition at line 87 of file ossl_pkey_ec.c.
| int ossl_generate_cb_2 | ( | int | p, |
| int | n, | ||
| BN_GENCB * | cb | ||
| ) |
Definition at line 24 of file ossl_pkey.c.
References BN_GENCB_get_arg, INT2NUM, rb_ary_new2, rb_ary_store(), rb_protect(), rb_yield(), ossl_generate_cb_arg::state, ossl_generate_cb_arg::stop, and ossl_generate_cb_arg::yield.
| void ossl_generate_cb_stop | ( | void * | ptr | ) |
Definition at line 50 of file ossl_pkey.c.
References ossl_generate_cb_arg::stop.
| VALUE ossl_pkey_new | ( | EVP_PKEY * | ) |
Definition at line 107 of file ossl_pkey.c.
References rb_protect().
| VALUE ossl_rsa_new | ( | EVP_PKEY * | ) |
Definition at line 73 of file ossl_pkey_rsa.c.
| VALUE cDH |
Definition at line 29 of file ossl_pkey_dh.c.
Referenced by Init_ossl_dh().
| VALUE cDSA |
Definition at line 43 of file ossl_pkey_dsa.c.
Referenced by Init_ossl_dsa().
| VALUE cEC |
Definition at line 43 of file ossl_pkey_ec.c.
Referenced by Init_ossl_ec().
| VALUE cEC_GROUP |
Definition at line 45 of file ossl_pkey_ec.c.
Referenced by Init_ossl_ec().
| VALUE cEC_POINT |
Definition at line 47 of file ossl_pkey_ec.c.
Referenced by Init_ossl_ec().
| 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 cRSA |
Definition at line 44 of file ossl_pkey_rsa.c.
Referenced by Init_ossl_rsa().
| VALUE eDHError |
Definition at line 30 of file ossl_pkey_dh.c.
Referenced by Init_ossl_dh().
| VALUE eDSAError |
Definition at line 44 of file ossl_pkey_dsa.c.
Referenced by Init_ossl_dsa().
| VALUE eEC_GROUP |
Definition at line 46 of file ossl_pkey_ec.c.
Referenced by Init_ossl_ec().
| VALUE eEC_POINT |
Definition at line 48 of file ossl_pkey_ec.c.
Referenced by Init_ossl_ec().
| VALUE eECError |
Definition at line 44 of file ossl_pkey_ec.c.
Referenced by Init_ossl_ec().
| 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(), and Init_ossl_rsa().
| VALUE eRSAError |
Definition at line 45 of file ossl_pkey_rsa.c.
Referenced by Init_ossl_rsa().
| 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 65 of file ossl_pkey.c.
1.8.13