mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_bn.c: More documentation.
* ext/openssl/lib/ossl_{pkey,pkey_ec}.[ch]: Add elliptic curves. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eed46ac633
commit
8b95ee24de
7 changed files with 1477 additions and 4 deletions
|
@ -40,7 +40,7 @@ VALUE eBNError;
|
|||
* Public
|
||||
*/
|
||||
VALUE
|
||||
ossl_bn_new(BIGNUM *bn)
|
||||
ossl_bn_new(const BIGNUM *bn)
|
||||
{
|
||||
BIGNUM *newbn;
|
||||
VALUE obj;
|
||||
|
@ -100,6 +100,12 @@ ossl_bn_alloc(VALUE klass)
|
|||
return obj;
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* BN.new => aBN
|
||||
* BN.new(bn) => aBN
|
||||
* BN.new(string, 0 | 2 | 10 | 16) => aBN
|
||||
*/
|
||||
static VALUE
|
||||
ossl_bn_initialize(int argc, VALUE *argv, VALUE self)
|
||||
{
|
||||
|
@ -189,6 +195,10 @@ ossl_bn_to_s(int argc, VALUE *argv, VALUE self)
|
|||
return str;
|
||||
}
|
||||
|
||||
/*
|
||||
* call-seq:
|
||||
* bn.to_i => integer
|
||||
*/
|
||||
static VALUE
|
||||
ossl_bn_to_i(VALUE self)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue