pub unsafe extern "C" fn group_cipher_encrypt(
cipher: *mut group_cipher,
padded_plaintext: *const u8,
padded_plaintext_len: usize,
encrypted_message: *mut *mut ciphertext_message,
) -> c_intExpand description
Encrypt a message.
@param padded_plaintext The plaintext message bytes, optionally padded to a constant multiple. @param padded_plaintext_len The length of the data pointed to by padded_message @param encrypted_message Set to a ciphertext message encrypted to the group+sender+device tuple.
@retval SG_SUCCESS Success @retval SG_ERR_NO_SESSION if there is no established session for this contact. @retval SG_ERR_INVALID_KEY if there is no valid private key for this session.