Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /opt/alt/ruby33/share/ruby/openssl//bn.rb
# frozen_string_literal: true
#--
#
# = Ruby-space definitions that completes C-space funcs for BN
#
# = Info
# 'OpenSSL for Ruby 2' project
# Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz>
# All rights reserved.
#
# = Licence
# This program is licensed under the same licence as Ruby.
# (See the file 'LICENCE'.)
#++
module OpenSSL
class BN
include Comparable
def pretty_print(q)
q.object_group(self) {
q.text ' '
q.text to_i.to_s
}
end
end # BN
end # OpenSSL
##
#--
# Add double dispatch to Integer
#++
class Integer
# Casts an Integer as an OpenSSL::BN
#
# See `man bn` for more info.
def to_bn
OpenSSL::BN::new(self)
end
end # Integer
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 13 2025 08:35:34 | root / linksafe | 0755 | |
| | | | | |
bn.rb | 0.69 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
buffering.rb | 10.154 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
cipher.rb | 1.703 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
digest.rb | 1.543 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
hmac.rb | 2.496 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
marshal.rb | 0.555 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
pkcs5.rb | 0.599 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
pkey.rb | 14.764 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
ssl.rb | 17.518 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
version.rb | 0.068 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |
x509.rb | 11.601 KB | April 24 2025 07:57:44 | root / linksafe | 0644 | |