[−][src]Function libthemis_sys::themis_secure_message_encrypt
pub unsafe extern "C" fn themis_secure_message_encrypt(
private_key: *const u8,
private_key_length: usize,
public_key: *const u8,
public_key_length: usize,
message: *const u8,
message_length: usize,
encrypted_message: *mut u8,
encrypted_message_length: *mut usize
) -> themis_status_t
@brief encrypt message to secure message @param [in] private_key private key @param [in] private_key_length length of private_key @param [in] public_key peer public key @param [in] public_key_length length of public_key @param [in] message message to encrypt @param [in] message_length length of message @param [out] encrypted_message buffer for encrypted message. May be set to NULL to determine expected length of encrypted message @param [in, out] encrypted_message_length length of encrypted_message @return THEMIS_SUCCESS on success or an error code on failure @note If encrypted_message is NULL or encrypted_message_length is not enough to store the encrypted message then THEMIS_BUFFER_TOO_SMALL will be returned and encrypted_message_length will contain the length of the buffer needed to store the encrypted message.