|
Ruby
2.1.3p242(2014-09-19revision47630)
|
#include "ossl.h"
Go to the source code of this file.
Macros | |
| #define | WrapBN(klass, obj, bn) |
| #define | GetBN(obj, bn) |
| #define | SafeGetBN(obj, bn) |
| #define | BIGNUM_BOOL1(func) |
| #define | BIGNUM_1c(func) |
| #define | BIGNUM_2(func) |
| #define | BIGNUM_2c(func) |
| #define | BIGNUM_3c(func) |
| #define | BIGNUM_BIT(func) |
| #define | BIGNUM_SHIFT(func) |
| #define | BIGNUM_SELF_SHIFT(func) |
| #define | BIGNUM_RAND(func) |
| #define | BIGNUM_RAND_RANGE(func) |
| #define | BIGNUM_NUM(func) |
| #define | BIGNUM_CMP(func) |
Functions | |
| VALUE | ossl_bn_new (const BIGNUM *bn) |
| BIGNUM * | GetBNPtr (VALUE obj) |
| static VALUE | ossl_bn_alloc (VALUE klass) |
| static VALUE | ossl_bn_initialize (int argc, VALUE *argv, VALUE self) |
| static VALUE | ossl_bn_to_s (int argc, VALUE *argv, VALUE self) |
| static VALUE | ossl_bn_to_i (VALUE self) |
| static VALUE | ossl_bn_to_bn (VALUE self) |
| static VALUE | ossl_bn_coerce (VALUE self, VALUE other) |
| BIGNUM_1c (sqr) | |
| BIGNUM_3c (mod_add) | |
| static VALUE | ossl_bn_s_generate_prime (int argc, VALUE *argv, VALUE klass) |
| static VALUE | ossl_bn_copy (VALUE self, VALUE other) |
| static VALUE | ossl_bn_eql (VALUE self, VALUE other) |
| static VALUE | ossl_bn_is_prime (int argc, VALUE *argv, VALUE self) |
| static VALUE | ossl_bn_is_prime_fasttest (int argc, VALUE *argv, VALUE self) |
| void | Init_ossl_bn () |
Variables | |
| VALUE | cBN |
| VALUE | eBNError |
| BN_CTX * | ossl_bn_ctx |
| #define BIGNUM_1c | ( | func | ) |
| #define BIGNUM_2 | ( | func | ) |
Referenced by BIGNUM_1c().
| #define BIGNUM_2c | ( | func | ) |
Referenced by BIGNUM_1c().
| #define BIGNUM_3c | ( | func | ) |
| #define BIGNUM_BIT | ( | func | ) |
| #define BIGNUM_BOOL1 | ( | func | ) |
| #define BIGNUM_CMP | ( | func | ) |
| #define BIGNUM_NUM | ( | func | ) |
| #define BIGNUM_RAND | ( | func | ) |
| #define BIGNUM_RAND_RANGE | ( | func | ) |
| #define BIGNUM_SELF_SHIFT | ( | func | ) |
| #define BIGNUM_SHIFT | ( | func | ) |
| #define GetBN | ( | obj, | |
| bn | |||
| ) |
Definition at line 21 of file ossl_bn.c.
Referenced by BIGNUM_1c(), GetBNPtr(), ossl_bn_initialize(), ossl_bn_to_i(), and ossl_bn_to_s().
| #define SafeGetBN | ( | obj, | |
| bn | |||
| ) |
| #define WrapBN | ( | klass, | |
| obj, | |||
| bn | |||
| ) |
Definition at line 14 of file ossl_bn.c.
Referenced by GetBNPtr(), ossl_bn_alloc(), and ossl_bn_new().
| BIGNUM_1c | ( | sqr | ) |
Definition at line 339 of file ossl_bn.c.
References BIGNUM_2, BIGNUM_2c, eBNError, GetBN, GetBNPtr(), NULL, and ossl_raise().
| BIGNUM* GetBNPtr | ( | VALUE | obj | ) |
Definition at line 58 of file ossl_bn.c.
References cBN, eBNError, GetBN, NULL, ossl_raise(), rb_eTypeError, rb_obj_is_kind_of(), rb_String(), RTEST, StringValuePtr, T_BIGNUM, T_FIXNUM, T_NIL, TYPE, and WrapBN.
Referenced by BIGNUM_1c(), num_to_asn1integer(), and ossl_dh_compute_key().
| void Init_ossl_bn | ( | void | ) |
Definition at line 287 of file ossl_bn.c.
References cBN, NULL, ossl_bn_to_i(), ossl_bn_to_s(), ossl_raise(), rb_assoc_new(), rb_eTypeError, rb_obj_is_kind_of(), RTEST, T_BIGNUM, T_FIXNUM, T_STRING, and TYPE.
Definition at line 114 of file ossl_bn.c.
References ALLOCV_END, ALLOCV_N, BDIGIT, bin, buf, cBN, eBNError, FIX2LONG, GetBN, labs(), NULL, NUM2INT, ossl_raise(), rb_eArgError, rb_obj_is_kind_of(), rb_scan_args(), RB_TYPE_P, RBIGNUM_DIGITS, RBIGNUM_LENINT, RBIGNUM_SIGN, RSTRING_LENINT, RSTRING_PTR, RTEST, SIZEOF_BDIGITS, StringValue, T_BIGNUM, and T_FIXNUM.
Definition at line 664 of file ossl_bn.c.
References rb_check_frozen.
Definition at line 43 of file ossl_bn.c.
References cBN, eBNError, NULL, ossl_raise(), and WrapBN.
Referenced by asn1integer_to_num(), ossl_dh_get_params(), ossl_dsa_get_params(), and ossl_rsa_get_params().
Definition at line 263 of file ossl_bn.c.
References eBNError, GetBN, NULL, ossl_raise(), Qtrue, and rb_cstr_to_inum().
Referenced by ossl_bn_coerce().
Definition at line 219 of file ossl_bn.c.
References buf, eBNError, GetBN, NULL, NUM2INT, ossl_buf2str(), ossl_raise(), rb_eArgError, rb_long2int, rb_scan_args(), rb_str_new(), RSTRING_PTR, and strlen().
Referenced by ossl_bn_coerce().
| VALUE cBN |
Definition at line 36 of file ossl_bn.c.
Referenced by GetBNPtr(), ossl_bn_coerce(), ossl_bn_initialize(), and ossl_bn_new().
| VALUE eBNError |
Definition at line 37 of file ossl_bn.c.
Referenced by BIGNUM_1c(), GetBNPtr(), ossl_bn_alloc(), ossl_bn_initialize(), ossl_bn_new(), ossl_bn_to_i(), and ossl_bn_to_s().
1.8.2