C# 클래스 Goedel.Cryptography.Secret

Represents a secret key that may be split into or reformed from a collection of shares.
파일 보기 프로젝트 열기: hallambaker/Mathematical-Mesh 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Key byte[]

공개 메소드들

메소드 설명
Equals ( System obj ) : bool

Test for equality

GetHashCode ( ) : int

Hash code of the current class.

Secret ( KeyShare Shares ) : System

Recreate a secret from the specified shares.

Secret ( byte Key ) : System

Create a secret from the specified key value.

Secret ( int Bits ) : System

Create a new random secret with the specified number of bits.

Secret ( string Shares ) : System

Recreate a secret from shares specified as Base32 encoded strings.

Split ( ) : Goedel.Cryptography.KeyShare[]

Create a set of 2 key shares with a quorum of 2.

Split ( int N ) : Goedel.Cryptography.KeyShare[]

Create a set of N key shares with a quorum of N.

Split ( int N, int K ) : Goedel.Cryptography.KeyShare[]

Create a set of N key shares with a quorum of K.

보호된 메소드들

메소드 설명
Secret ( ) : System

Constructor for use in inherited classes.

비공개 메소드들

메소드 설명
ArrayXOR ( byte Base, byte Mix ) : void
ArrayXOR1 ( byte Base, byte Mix ) : void
Combine ( KeyShare Shares ) : byte[]
CombineN ( KeyShare Shares ) : byte[]
CombineNK ( KeyShare Shares ) : byte[]
GetBytes ( System.Numerics.BigInteger In ) : byte[]
MakePositive ( byte Data ) : System.Numerics.BigInteger
ModInverse ( System.Numerics.BigInteger k, System.Numerics.BigInteger m ) : System.Numerics.BigInteger
PolyMod ( int x, System.Numerics.BigInteger PolyNomial, System.Numerics.BigInteger Modulus ) : System.Numerics.BigInteger

메소드 상세

Equals() 공개 메소드

Test for equality
public Equals ( System obj ) : bool
obj System The secret to test against
리턴 bool

GetHashCode() 공개 메소드

Hash code of the current class.
public GetHashCode ( ) : int
리턴 int

Secret() 보호된 메소드

Constructor for use in inherited classes.
protected Secret ( ) : System
리턴 System

Secret() 공개 메소드

Recreate a secret from the specified shares.
public Secret ( KeyShare Shares ) : System
Shares KeyShare The shares to be recombined.
리턴 System

Secret() 공개 메소드

Create a secret from the specified key value.
public Secret ( byte Key ) : System
Key byte
리턴 System

Secret() 공개 메소드

Create a new random secret with the specified number of bits.
public Secret ( int Bits ) : System
Bits int
리턴 System

Secret() 공개 메소드

Recreate a secret from shares specified as Base32 encoded strings.
public Secret ( string Shares ) : System
Shares string The shares to be recombined.
리턴 System

Split() 공개 메소드

Create a set of 2 key shares with a quorum of 2.
public Split ( ) : Goedel.Cryptography.KeyShare[]
리턴 Goedel.Cryptography.KeyShare[]

Split() 공개 메소드

Create a set of N key shares with a quorum of N.
public Split ( int N ) : Goedel.Cryptography.KeyShare[]
N int
리턴 Goedel.Cryptography.KeyShare[]

Split() 공개 메소드

Create a set of N key shares with a quorum of K.
public Split ( int N, int K ) : Goedel.Cryptography.KeyShare[]
N int Number of key shares to create (max is 32).
K int Quorum of key shares required to reconstruct the secret.
리턴 Goedel.Cryptography.KeyShare[]

프로퍼티 상세

Key 공개적으로 프로퍼티

The Key value
public byte[] Key
리턴 byte[]