source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/openssl/bn.rb@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 637 bytes
Line 
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
21module OpenSSL
22 class BN
23 include Comparable
24 end # BN
25end # OpenSSL
26
27##
28# Add double dispatch to Integer
29#
30class Integer
31 def to_bn
32 OpenSSL::BN::new(self)
33 end
34end # Integer
35
Note: See TracBrowser for help on using the repository browser.