LibsignalProtocol (libsignal_protocol v0.1.0)
View SourceElixir wrapper for the Signal Protocol library. Provides a clean, idiomatic interface for secure messaging.
Summary
Functions
Creates a new session for a recipient.
Returns {:ok, session}
on success or {:error, reason}
on failure.
Decrypts a message using the given session.
Returns {:ok, decrypted_message}
on success or {:error, reason}
on failure.
Encrypts a message using the given session.
Returns {:ok, encrypted_message}
on success or {:error, reason}
on failure.
Initializes the Signal Protocol library.
Returns :ok
on success or {:error, reason}
on failure.
Functions
Creates a new session for a recipient.
Returns {:ok, session}
on success or {:error, reason}
on failure.
Decrypts a message using the given session.
Returns {:ok, decrypted_message}
on success or {:error, reason}
on failure.
Encrypts a message using the given session.
Returns {:ok, encrypted_message}
on success or {:error, reason}
on failure.
@spec init() :: :ok | {:error, String.t()}
Initializes the Signal Protocol library.
Returns :ok
on success or {:error, reason}
on failure.