Property | Type | Description | |
---|---|---|---|
DHEWithCertificateAndCAsInHash | WriteOnceIdempotent |
||
DHEWithCertificateAndCAsOutHash | WriteOnceIdempotent |
||
DHEWithCertificateHash | WriteOnceIdempotent |
||
RDHE | WriteOnceIdempotent |
||
RemoteCookie | WriteOnceIdempotent |
||
TIMEOUT | int |
Property | Type | Description | |
---|---|---|---|
_active | bool | ||
_called_enable | int | ||
_called_start | int | ||
_current_epoch | int | ||
_current_sh | Brunet.SecurityHandler | ||
_dh | Mono.Security.Cryptography.DiffieHellman | ||
_hash_verified | bool | ||
_last_called_request_update | System.DateTime | ||
_last_epoch | int | ||
_last_update | System.DateTime | ||
_ldhe | byte[] | ||
_local_cert | WriteOnceX509 | ||
_remote_cert | WriteOnceX509 | ||
_spi | int |
Method | Description | |
---|---|---|
Close ( string reason ) : bool |
This closes the SA and cleans up its state.
|
|
Enable ( ) : void |
Enables the SA if it has been properly setup.
|
|
PeerSecAssociation ( ISender sender, Brunet.CertificateHandler ch, int spi ) : Brunet | ||
Reset ( ) : void | ||
Start ( ) : bool | ||
ToString ( ) : string | ||
TryReset ( ) : bool |
This is called when we want to reset the state of the SA after an equivalent time of two timeouts has occurred.
|
|
VerifyRequest ( MemBlock hash ) : bool |
Verifies the hash with the DHEWithCertificateHash.
|
|
VerifyResponse ( MemBlock hash ) : bool |
Verifies the hash to the DHEWithCertificateAndCAsOutHash.
|
Method | Description | |
---|---|---|
HandleIncoming ( MemBlock data, MemBlock &app_data ) : bool |
All incoming data filters through here.
|
|
HandleOutgoing ( ICopyable app_data, ICopyable &data ) : bool |
All outgoing data filters through here.
|
|
UpdateSH ( object o, |
This method listens for the SH to request an update and passes the message to the RequestUpdate event.
|
protected HandleIncoming ( MemBlock data, MemBlock &app_data ) : bool | ||
data | MemBlock | |
app_data | MemBlock | |
return | bool |
protected HandleOutgoing ( ICopyable app_data, ICopyable &data ) : bool | ||
app_data | ICopyable | |
data | ICopyable | |
return | bool |
public PeerSecAssociation ( ISender sender, Brunet.CertificateHandler ch, int spi ) : Brunet | ||
sender | ISender | |
ch | Brunet.CertificateHandler | |
spi | int | |
return | Brunet |
protected UpdateSH ( object o, |
||
o | object | |
ea | ||
return | void |
public VerifyRequest ( MemBlock hash ) : bool | ||
hash | MemBlock | |
return | bool |
public VerifyResponse ( MemBlock hash ) : bool | ||
hash | MemBlock | |
return | bool |
public WriteOnceIdempotent |
||
return | WriteOnceIdempotent |
public WriteOnceIdempotent |
||
return | WriteOnceIdempotent |
public WriteOnceIdempotent |
||
return | WriteOnceIdempotent |
protected SecurityHandler,Brunet _current_sh | ||
return | Brunet.SecurityHandler |
protected DiffieHellman,Mono.Security.Cryptography _dh | ||
return | Mono.Security.Cryptography.DiffieHellman |
protected DateTime,System _last_called_request_update | ||
return | System.DateTime |