Class Sas
Key agreement of SAS verification: send PublicKey, then Establish(string) with theirs.
Implements
Inherited Members
Namespace: Uniform.Matrix.Protocol.Crypto
Assembly: Uniform.Matrix.Protocol.Crypto.dll
Syntax
public sealed class Sas : IDisposable
Properties
| Edit this page View SourcePublicKey
Our ephemeral public key, base64.
Declaration
public string PublicKey { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceCreate()
Start a SAS with a fresh key pair.
Declaration
public static Sas Create()
Returns
| Type | Description |
|---|---|
| Sas |
Dispose()
Wipe the secret if not established.
Declaration
public void Dispose()
Establish(string)
Complete the key exchange with theirKey; this object cannot be used afterwards.
Declaration
public EstablishedSas Establish(string theirKey)
Parameters
| Type | Name | Description |
|---|---|---|
| string | theirKey |
Returns
| Type | Description |
|---|---|
| EstablishedSas |