NAME

Crypt::OpenSSL3::BigNum - Big Numbers

VERSION

version 0.002

DESCRIPTION

This class represents an arbitrarily large number. This is mainly useful when dealing with algorihtms based on such large numbers, such as RSA and Diffie-Hellman.

METHODS

new

abs_is_word

add

add_word

are_coprime

bin2bn

bn2bin

bn2binpad

bn2dec

bn2hex

bn2lebinpad

bn2mpi

bn2nativepad

check_prime

clear

clear_bit

cmp

copy

dec2bn

div

div_word

dup

exp

gcd

generate_prime

get_word

hex2bn

is_bit_set

is_odd

is_one

is_word

is_zero

lebin2bn

lshift

lshift1

mask_bits

mod

mod_add

mod_exp

mod_mul

mod_sqr

mod_sqrt

mod_sub

mod_word

mpi2bn

mul

mul_word

native2bn

nnmod

num_bits

num_bytes

print

rand

rand_ex

rshift

rshift1

secure_new

set_word

signed_bin2bn

signed_bn2bin

signed_bn2lebin

signed_bn2native

signed_lebin2bn

signed_native2bn

sqr

sub

sub_word

ucmp

CONSTANTS

RAND_BOTTOM_ANY
RAND_BOTTOM_ODD
RAND_TOP_ANY
RAND_TOP_ONE
RAND_TOP_TWO

AUTHOR

Leon Timmermans <fawaka@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2025 by Leon Timmermans.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.