C# Class weak_dsa_kg.AuthServer

Mostrar archivo Open project: pakt/crackmes

Public Properties

Property Type Description
fieldSize int
fingerPrintSize int
g System.Numerics.BigInteger
idSize int
my_md5 System.Security.Cryptography.MD5CryptoServiceProvider
p System.Numerics.BigInteger
q System.Numerics.BigInteger
y System.Numerics.BigInteger

Public Methods

Method Description
Verify ( string id, string fingerPrint, string signature ) : bool
deriveData ( string id, string fingerPrint ) : byte[]
dsa_vrf ( System.Numerics.BigInteger h, System.Numerics.BigInteger r, System.Numerics.BigInteger s ) : bool
hash ( MD5CryptoServiceProvider md5, string id, int h_size ) : byte[]

Method Details

Verify() public static method

public static Verify ( string id, string fingerPrint, string signature ) : bool
id string
fingerPrint string
signature string
return bool

deriveData() public static method

public static deriveData ( string id, string fingerPrint ) : byte[]
id string
fingerPrint string
return byte[]

dsa_vrf() public static method

public static dsa_vrf ( System.Numerics.BigInteger h, System.Numerics.BigInteger r, System.Numerics.BigInteger s ) : bool
h System.Numerics.BigInteger
r System.Numerics.BigInteger
s System.Numerics.BigInteger
return bool

hash() public static method

public static hash ( MD5CryptoServiceProvider md5, string id, int h_size ) : byte[]
md5 System.Security.Cryptography.MD5CryptoServiceProvider
id string
h_size int
return byte[]

Property Details

fieldSize public_oe static_oe property

public static int fieldSize
return int

fingerPrintSize public_oe static_oe property

public static int fingerPrintSize
return int

g public_oe static_oe property

public static BigInteger,System.Numerics g
return System.Numerics.BigInteger

idSize public_oe static_oe property

public static int idSize
return int

my_md5 public_oe static_oe property

public static MD5CryptoServiceProvider,System.Security.Cryptography my_md5
return System.Security.Cryptography.MD5CryptoServiceProvider

p public_oe static_oe property

public static BigInteger,System.Numerics p
return System.Numerics.BigInteger

q public_oe static_oe property

public static BigInteger,System.Numerics q
return System.Numerics.BigInteger

y public_oe static_oe property

public static BigInteger,System.Numerics y
return System.Numerics.BigInteger