module ECDSA::Math

Defined in:

ecdsa/math.cr

Class Method Summary

Class Method Detail

def self.bit_length(integer) #

[View source]
def self.hash(base : Bytes | String) : String #

[View source]
def self.mod_exp(a : BigInt, exp : BigInt, mod : BigInt) #

[View source]
def self.mod_inverse(a : BigInt, n : BigInt) : BigInt #

[View source]
def self.mod_sqrt(a : BigInt, n : BigInt) : BigInt #

[View source]
def self.normalize_digest(hexdigest : String, bit_length : Int) : BigInt #

[View source]
def self.random(n1 : BigInt, n2 : BigInt) : BigInt #

[View source]
def self.sha3_256(base : Bytes | String) : String #

[View source]