Rev | Line | |
---|
[18425] | 1 | =begin
|
---|
| 2 | = $RCSfile$ -- Ruby-space definitions that completes C-space funcs for BN
|
---|
| 3 |
|
---|
| 4 | = Info
|
---|
| 5 | 'OpenSSL for Ruby 2' project
|
---|
| 6 | Copyright (C) 2002 Michal Rokos <[email protected]>
|
---|
| 7 | All rights reserved.
|
---|
| 8 |
|
---|
| 9 | = Licence
|
---|
| 10 | This program is licenced under the same licence as Ruby.
|
---|
| 11 | (See the file 'LICENCE'.)
|
---|
| 12 |
|
---|
| 13 | = Version
|
---|
| 14 | $Id: bn.rb 11708 2007-02-12 23:01:19Z shyouhei $
|
---|
| 15 | =end
|
---|
| 16 |
|
---|
| 17 | ##
|
---|
| 18 | # Should we care what if somebody require this file directly?
|
---|
| 19 | #require 'openssl'
|
---|
| 20 |
|
---|
| 21 | module OpenSSL
|
---|
| 22 | class BN
|
---|
| 23 | include Comparable
|
---|
| 24 | end # BN
|
---|
| 25 | end # OpenSSL
|
---|
| 26 |
|
---|
| 27 | ##
|
---|
| 28 | # Add double dispatch to Integer
|
---|
| 29 | #
|
---|
| 30 | class Integer
|
---|
| 31 | def to_bn
|
---|
| 32 | OpenSSL::BN::new(self)
|
---|
| 33 | end
|
---|
| 34 | end # Integer
|
---|
| 35 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.