class OpenSSL::BN

Defined in:

openssl_ext/bn.cr

Constant Summary

BN_RAND_BOTTOM_ANY = 0
BN_RAND_BOTTOM_ODD = 1
BN_RAND_TOP_ANY = -1
BN_RAND_TOP_ONE = 0
BN_RAND_TOP_TWO = 1

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(bn : Pointer(LibCrypto::Bignum)) #

[View source]
def self.new(num : UInt64) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.from_bin(integer : Bytes) #

[View source]
def self.from_dec(integer : String) #

[View source]
def self.from_hex(integer : String) #

[View source]
def self.one #

[View source]
def self.rand #

[View source]
def self.zero #

[View source]

Instance Method Detail

def finalize #

[View source]
def print #

[View source]
def size #

[View source]
def to_bin #

[View source]
def to_dec #

[View source]
def to_hex #

[View source]
def to_mpi #

[View source]
def to_unsafe : Pointer(LibCrypto::Bignum) #

[View source]