C# Class libaxolotl.SessionCipher

Mostrar archivo Open project: kwailo888/AxolotlTestApp Class Usage Examples

Public Properties

Property Type Description
SESSION_LOCK Object

Public Methods

Method Description
SessionCipher ( AxolotlStore store, libaxolotl.AxolotlAddress remoteAddress ) : libaxolotl.ecc
SessionCipher ( SessionStore sessionStore, PreKeyStore preKeyStore, SignedPreKeyStore signedPreKeyStore, IdentityKeyStore identityKeyStore, libaxolotl.AxolotlAddress remoteAddress ) : libaxolotl.ecc
decrypt ( libaxolotl.protocol.PreKeyWhisperMessage ciphertext ) : byte[]
decrypt ( libaxolotl.protocol.PreKeyWhisperMessage ciphertext, DecryptionCallback callback ) : byte[]
decrypt ( libaxolotl.protocol.WhisperMessage ciphertext ) : byte[]
decrypt ( libaxolotl.protocol.WhisperMessage ciphertext, DecryptionCallback callback ) : byte[]
encrypt ( byte paddedMessage ) : libaxolotl.protocol.CiphertextMessage
getRemoteRegistrationId ( ) : uint
getSessionVersion ( ) : uint

Private Methods

Method Description
decrypt ( libaxolotl.state.SessionRecord sessionRecord, libaxolotl.protocol.WhisperMessage ciphertext ) : byte[]
decrypt ( libaxolotl.state.SessionState sessionState, libaxolotl.protocol.WhisperMessage ciphertextMessage ) : byte[]
getCiphertext ( uint version, libaxolotl.ratchet.MessageKeys messageKeys, byte plaintext ) : byte[]
getOrCreateChainKey ( libaxolotl.state.SessionState sessionState, ECPublicKey theirEphemeral ) : libaxolotl.ratchet.ChainKey
getOrCreateMessageKeys ( libaxolotl.state.SessionState sessionState, ECPublicKey theirEphemeral, libaxolotl.ratchet.ChainKey chainKey, uint counter ) : libaxolotl.ratchet.MessageKeys
getPlaintext ( uint version, libaxolotl.ratchet.MessageKeys messageKeys, byte cipherText ) : byte[]

Method Details

SessionCipher() public method

public SessionCipher ( AxolotlStore store, libaxolotl.AxolotlAddress remoteAddress ) : libaxolotl.ecc
store AxolotlStore
remoteAddress libaxolotl.AxolotlAddress
return libaxolotl.ecc

SessionCipher() public method

public SessionCipher ( SessionStore sessionStore, PreKeyStore preKeyStore, SignedPreKeyStore signedPreKeyStore, IdentityKeyStore identityKeyStore, libaxolotl.AxolotlAddress remoteAddress ) : libaxolotl.ecc
sessionStore SessionStore
preKeyStore PreKeyStore
signedPreKeyStore SignedPreKeyStore
identityKeyStore IdentityKeyStore
remoteAddress libaxolotl.AxolotlAddress
return libaxolotl.ecc

decrypt() public method

public decrypt ( libaxolotl.protocol.PreKeyWhisperMessage ciphertext ) : byte[]
ciphertext libaxolotl.protocol.PreKeyWhisperMessage
return byte[]

decrypt() public method

public decrypt ( libaxolotl.protocol.PreKeyWhisperMessage ciphertext, DecryptionCallback callback ) : byte[]
ciphertext libaxolotl.protocol.PreKeyWhisperMessage
callback DecryptionCallback
return byte[]

decrypt() public method

public decrypt ( libaxolotl.protocol.WhisperMessage ciphertext ) : byte[]
ciphertext libaxolotl.protocol.WhisperMessage
return byte[]

decrypt() public method

public decrypt ( libaxolotl.protocol.WhisperMessage ciphertext, DecryptionCallback callback ) : byte[]
ciphertext libaxolotl.protocol.WhisperMessage
callback DecryptionCallback
return byte[]

encrypt() public method

public encrypt ( byte paddedMessage ) : libaxolotl.protocol.CiphertextMessage
paddedMessage byte
return libaxolotl.protocol.CiphertextMessage

getRemoteRegistrationId() public method

public getRemoteRegistrationId ( ) : uint
return uint

getSessionVersion() public method

public getSessionVersion ( ) : uint
return uint

Property Details

SESSION_LOCK public_oe static_oe property

public static Object SESSION_LOCK
return Object