class ECDSA::Group

Defined in:

ecdsa/group.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : Symbol, p : BigInt, a : BigInt, b : BigInt, gx : BigInt, gy : BigInt, n : BigInt) #

[View source]

Instance Method Detail

def ==(other : ECDSA::Group) #

[View source]
def a : BigInt #

[View source]
def b : BigInt #

[View source]
def create_key_pair(secret_key : BigInt) : NamedTuple(secret_key: BigInt, public_key: Point) #

[View source]
def create_key_pair #

[View source]
def create_public_key(secret_key : BigInt) : Point #

[View source]
def d : Int32 #

[View source]
def g #

[View source]
def gx : BigInt #

[View source]
def gy : BigInt #

[View source]
def infinity #

[View source]
def inverse(n1 : BigInt, n2 : BigInt) #

[View source]
def n : BigInt #

[View source]
def name : Symbol #

[View source]
def p : BigInt #

[View source]
def pre : Array(ECDSA::Point) #

[View source]
def sign(secret_key : BigInt, message : String, temp_key_k : BigInt) : Signature #

[View source]
def sign(secret_key : BigInt, e : BigInt, temp_key_k : BigInt) : Signature #

[View source]
def sign(secret_key : BigInt, message : String) : Signature #

[View source]
def sign(secret_key : BigInt, e : BigInt) : Signature #

[View source]
def verify(public_key : Point, message : String, r : BigInt, s : BigInt) : Bool #

[View source]
def verify(public_key : Point, e : BigInt, r : BigInt, s : BigInt) : Bool #

[View source]
def verify(public_key : Point, message : String, signature : Signature) #

[View source]
def verify(public_key : Point, e : BigInt, signature : Signature) #

[View source]