OlmLibrary

expect object OlmLibrary

Functions

Link copied to clipboard
expect fun account(): OlmAccountPointer
Link copied to clipboard
expect fun account_forget_old_fallback_key(account: OlmAccountPointer)
Link copied to clipboard
expect fun account_generate_fallback_key(account: OlmAccountPointer, random: ByteArray?): ULong
expect fun account_generate_fallback_key_random_length(account: OlmAccountPointer): ULong
Link copied to clipboard
expect fun account_generate_one_time_keys(account: OlmAccountPointer, numberOfKeys: ULong, random: ByteArray?): ULong
expect fun account_generate_one_time_keys_random_length(account: OlmAccountPointer, numberOfKeys: ULong): ULong
Link copied to clipboard
expect fun account_identity_keys(account: OlmAccountPointer, identityKeys: ByteArray): ULong
Link copied to clipboard
expect fun account_identity_keys_length(account: OlmAccountPointer): ULong
Link copied to clipboard
expect fun account_last_error(account: OlmAccountPointer): String?
Link copied to clipboard
expect fun account_mark_keys_as_published(account: OlmAccountPointer): ULong
Link copied to clipboard
expect fun account_max_number_of_one_time_keys(account: OlmAccountPointer): ULong
Link copied to clipboard
expect fun account_one_time_keys(account: OlmAccountPointer, oneTimeKeys: ByteArray): ULong
Link copied to clipboard
expect fun account_one_time_keys_length(account: OlmAccountPointer): ULong
Link copied to clipboard
expect fun account_sign(account: OlmAccountPointer, message: ByteArray, signature: ByteArray): ULong
Link copied to clipboard
expect fun account_signature_length(account: OlmAccountPointer): ULong
Link copied to clipboard
expect fun account_unpublished_fallback_key(account: OlmAccountPointer, fallbackKey: ByteArray): ULong
Link copied to clipboard
expect fun account_unpublished_fallback_key_length(account: OlmAccountPointer): ULong
Link copied to clipboard
expect fun clear_account(account: OlmAccountPointer): ULong
Link copied to clipboard
expect fun clear_inbound_group_session(session: OlmInboundGroupSessionPointer): ULong
Link copied to clipboard
expect fun clear_outbound_group_session(session: OlmOutboundGroupSessionPointer): ULong
Link copied to clipboard
expect fun clear_pk_decryption(decryption: OlmPkDecryptionPointer): ULong
Link copied to clipboard
expect fun clear_pk_encryption(encryption: OlmPkEncryptionPointer): ULong
Link copied to clipboard
expect fun clear_pk_signing(sign: OlmPkSigningPointer): ULong
Link copied to clipboard
expect fun clear_sas(sas: OlmSASPointer): ULong
Link copied to clipboard
expect fun clear_session(session: OlmSessionPointer): ULong
Link copied to clipboard
expect fun clear_utility(utility: OlmUtilityPointer): ULong
Link copied to clipboard
expect fun create_account(account: OlmAccountPointer, random: ByteArray?): ULong
Link copied to clipboard
expect fun create_account_random_length(account: OlmAccountPointer): ULong
Link copied to clipboard
expect fun create_inbound_session(session: OlmSessionPointer, account: OlmAccountPointer, oneTimeKeyMessage: ByteArray): ULong
Link copied to clipboard
expect fun create_inbound_session_from(session: OlmSessionPointer, account: OlmAccountPointer, theirIdentityKey: ByteArray, oneTimeKeyMessage: ByteArray): ULong
Link copied to clipboard
expect fun create_outbound_session(session: OlmSessionPointer, account: OlmAccountPointer, theirIdentityKey: ByteArray, theirOneTimeKey: ByteArray, random: ByteArray?): ULong
Link copied to clipboard
expect fun create_outbound_session_random_length(session: OlmSessionPointer): ULong
Link copied to clipboard
expect fun create_sas(sas: OlmSASPointer, random: ByteArray?): ULong
Link copied to clipboard
expect fun create_sas_random_length(sas: OlmSASPointer): ULong
Link copied to clipboard
expect fun decrypt(session: OlmSessionPointer, messageType: ULong, message: ByteArray, plainText: ByteArray): ULong
Link copied to clipboard
expect fun decrypt_max_plaintext_length(session: OlmSessionPointer, messageType: ULong, message: ByteArray): ULong
Link copied to clipboard
expect fun ed25519_verify(utility: OlmUtilityPointer, key: ByteArray, message: ByteArray, signature: ByteArray): ULong
Link copied to clipboard
expect fun encrypt(session: OlmSessionPointer, plainText: ByteArray, random: ByteArray?, message: ByteArray): ULong
Link copied to clipboard
expect fun encrypt_message_length(session: OlmSessionPointer, plainTextLength: ULong): ULong
Link copied to clipboard
expect fun encrypt_message_type(session: OlmSessionPointer): ULong
Link copied to clipboard
expect fun encrypt_random_length(session: OlmSessionPointer): ULong
Link copied to clipboard
expect fun error(): ULong
Link copied to clipboard
expect fun export_inbound_group_session(session: OlmInboundGroupSessionPointer, key: ByteArray, messageIndex: UInt): ULong
Link copied to clipboard
expect fun export_inbound_group_session_length(session: OlmInboundGroupSessionPointer): ULong
Link copied to clipboard
Link copied to clipboard
expect fun group_decrypt(session: OlmInboundGroupSessionPointer, message: ByteArray, plainText: ByteArray, messageIndex: MutableWrapper<UInt>): ULong
Link copied to clipboard
expect fun group_decrypt_max_plaintext_length(session: OlmInboundGroupSessionPointer, message: ByteArray): ULong
Link copied to clipboard
expect fun group_encrypt(session: OlmOutboundGroupSessionPointer, plainText: ByteArray, message: ByteArray): ULong
Link copied to clipboard
expect fun group_encrypt_message_length(session: OlmOutboundGroupSessionPointer, plainTextLength: ULong): ULong
Link copied to clipboard
expect fun import_inbound_group_session(session: OlmInboundGroupSessionPointer, key: ByteArray): ULong
Link copied to clipboard
expect fun inbound_group_session(): OlmInboundGroupSessionPointer
Link copied to clipboard
expect fun inbound_group_session_first_known_index(session: OlmInboundGroupSessionPointer): UInt
Link copied to clipboard
expect fun inbound_group_session_id(session: OlmInboundGroupSessionPointer, sessionId: ByteArray): ULong
Link copied to clipboard
expect fun inbound_group_session_id_length(session: OlmInboundGroupSessionPointer): ULong
Link copied to clipboard
expect fun inbound_group_session_is_verified(session: OlmInboundGroupSessionPointer): Int
Link copied to clipboard
expect fun inbound_group_session_last_error(session: OlmInboundGroupSessionPointer): String?
Link copied to clipboard
expect fun init_inbound_group_session(session: OlmInboundGroupSessionPointer, key: ByteArray): ULong
Link copied to clipboard
expect fun init_outbound_group_session(session: OlmOutboundGroupSessionPointer, random: ByteArray?): ULong
expect fun init_outbound_group_session_random_length(session: OlmOutboundGroupSessionPointer): ULong
Link copied to clipboard
expect fun matches_inbound_session(session: OlmSessionPointer, oneTimeKeyMessage: ByteArray): ULong
Link copied to clipboard
expect fun matches_inbound_session_from(session: OlmSessionPointer, theirIdentityKey: ByteArray, oneTimeKeyMessage: ByteArray): ULong
Link copied to clipboard
expect fun outbound_group_session(): OlmOutboundGroupSessionPointer
Link copied to clipboard
expect fun outbound_group_session_id(session: OlmOutboundGroupSessionPointer, sessionId: ByteArray): ULong
Link copied to clipboard
expect fun outbound_group_session_id_length(session: OlmOutboundGroupSessionPointer): ULong
Link copied to clipboard
expect fun outbound_group_session_key(session: OlmOutboundGroupSessionPointer, key: ByteArray): ULong
Link copied to clipboard
expect fun outbound_group_session_key_length(session: OlmOutboundGroupSessionPointer): ULong
Link copied to clipboard
expect fun outbound_group_session_last_error(session: OlmOutboundGroupSessionPointer): String?
Link copied to clipboard
expect fun outbound_group_session_message_index(session: OlmOutboundGroupSessionPointer): UInt
Link copied to clipboard
expect fun pickle_account(account: OlmAccountPointer, key: ByteArray, pickled: ByteArray): ULong
Link copied to clipboard
expect fun pickle_account_length(account: OlmAccountPointer): ULong
Link copied to clipboard
expect fun pickle_inbound_group_session(session: OlmInboundGroupSessionPointer, key: ByteArray, pickled: ByteArray): ULong
Link copied to clipboard
expect fun pickle_inbound_group_session_length(session: OlmInboundGroupSessionPointer): ULong
Link copied to clipboard
expect fun pickle_outbound_group_session(session: OlmOutboundGroupSessionPointer, key: ByteArray, pickled: ByteArray): ULong
Link copied to clipboard
expect fun pickle_outbound_group_session_length(session: OlmOutboundGroupSessionPointer): ULong
Link copied to clipboard
expect fun pickle_pk_decryption(decryption: OlmPkDecryptionPointer, key: ByteArray, pickled: ByteArray): ULong
Link copied to clipboard
expect fun pickle_pk_decryption_length(decryption: OlmPkDecryptionPointer): ULong
Link copied to clipboard
expect fun pickle_session(session: OlmSessionPointer, key: ByteArray, pickled: ByteArray): ULong
Link copied to clipboard
expect fun pickle_session_length(session: OlmSessionPointer): ULong
Link copied to clipboard
expect fun pk_ciphertext_length(encryption: OlmPkEncryptionPointer, plainTextLength: ULong): ULong
Link copied to clipboard
expect fun pk_decrypt(decryption: OlmPkDecryptionPointer, ephemeralKey: ByteArray, mac: ByteArray, cipherText: ByteArray, plainText: ByteArray): ULong
Link copied to clipboard
expect fun pk_decryption(): OlmPkDecryptionPointer
Link copied to clipboard
expect fun pk_decryption_last_error(decryption: OlmPkDecryptionPointer): String?
Link copied to clipboard
expect fun pk_encrypt(encryption: OlmPkEncryptionPointer, plainText: ByteArray, cipherText: ByteArray, mac: ByteArray, ephemeralKey: ByteArray, random: ByteArray?): ULong
Link copied to clipboard
expect fun pk_encrypt_random_length(encryption: OlmPkEncryptionPointer): ULong
Link copied to clipboard
expect fun pk_encryption(): OlmPkEncryptionPointer
Link copied to clipboard
expect fun pk_encryption_last_error(encryption: OlmPkEncryptionPointer): String?
Link copied to clipboard
expect fun pk_encryption_set_recipient_key(encryption: OlmPkEncryptionPointer, publicKey: ByteArray): ULong
Link copied to clipboard
expect fun pk_get_private_key(decryption: OlmPkDecryptionPointer, privateKey: ByteArray): ULong
Link copied to clipboard
expect fun pk_key_from_private(decryption: OlmPkDecryptionPointer, pubkey: ByteArray, privkey: ByteArray): ULong
Link copied to clipboard
expect fun pk_key_length(): ULong
Link copied to clipboard
expect fun pk_mac_length(encryption: OlmPkEncryptionPointer): ULong
Link copied to clipboard
expect fun pk_max_plaintext_length(decryption: OlmPkDecryptionPointer, cipherTextLength: ULong): ULong
Link copied to clipboard
Link copied to clipboard
expect fun pk_sign(sign: OlmPkSigningPointer, message: ByteArray, signature: ByteArray): ULong
Link copied to clipboard
Link copied to clipboard
expect fun pk_signing(): OlmPkSigningPointer
Link copied to clipboard
expect fun pk_signing_key_from_seed(sign: OlmPkSigningPointer, pubkey: ByteArray, seed: ByteArray): ULong
Link copied to clipboard
expect fun pk_signing_last_error(sign: OlmPkSigningPointer): String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
expect fun remove_one_time_keys(account: OlmAccountPointer, session: OlmSessionPointer): ULong
Link copied to clipboard
expect fun sas(): OlmSASPointer
Link copied to clipboard
expect fun sas_calculate_mac(sas: OlmSASPointer, input: ByteArray, info: ByteArray, mac: ByteArray): ULong
Link copied to clipboard
expect fun sas_calculate_mac_fixed_base64(sas: OlmSASPointer, input: ByteArray, info: ByteArray, mac: ByteArray): ULong
Link copied to clipboard
expect fun sas_calculate_mac_ULong_kdf(sas: OlmSASPointer, input: ByteArray, info: ByteArray, mac: ByteArray): ULong
Link copied to clipboard
expect fun sas_generate_bytes(sas: OlmSASPointer, info: ByteArray, output: ByteArray): ULong
Link copied to clipboard
expect fun sas_get_pubkey(sas: OlmSASPointer, pubkey: ByteArray): ULong
Link copied to clipboard
expect fun sas_is_their_key_set(sas: OlmSASPointer): Int
Link copied to clipboard
expect fun sas_last_error(sas: OlmSASPointer): String?
Link copied to clipboard
expect fun sas_mac_length(sas: OlmSASPointer): ULong
Link copied to clipboard
expect fun sas_pubkey_length(sas: OlmSASPointer): ULong
Link copied to clipboard
expect fun sas_set_their_key(sas: OlmSASPointer, theirKey: ByteArray): ULong
Link copied to clipboard
expect fun session(): OlmSessionPointer
Link copied to clipboard
expect fun session_describe(session: OlmSessionPointer, description: ByteArray)
Link copied to clipboard
expect fun session_has_received_message(session: OlmSessionPointer): Int
Link copied to clipboard
expect fun session_id(session: OlmSessionPointer, id: ByteArray): ULong
Link copied to clipboard
expect fun session_id_length(session: OlmSessionPointer): ULong
Link copied to clipboard
expect fun session_last_error(session: OlmSessionPointer): String?
Link copied to clipboard
expect fun sha256(utility: OlmUtilityPointer, input: ByteArray, output: ByteArray): ULong
Link copied to clipboard
expect fun sha256_length(utility: OlmUtilityPointer): ULong
Link copied to clipboard
expect fun unpickle_account(account: OlmAccountPointer, key: ByteArray, pickled: ByteArray): ULong
Link copied to clipboard
expect fun unpickle_inbound_group_session(session: OlmInboundGroupSessionPointer, key: ByteArray, pickled: ByteArray): ULong
Link copied to clipboard
expect fun unpickle_outbound_group_session(session: OlmOutboundGroupSessionPointer, key: ByteArray, pickled: ByteArray): ULong
Link copied to clipboard
expect fun unpickle_pk_decryption(decryption: OlmPkDecryptionPointer, key: ByteArray, pickled: ByteArray, pubkey: ByteArray): ULong
Link copied to clipboard
expect fun unpickle_session(session: OlmSessionPointer, key: ByteArray, pickled: ByteArray): ULong
Link copied to clipboard
expect fun utility(): OlmUtilityPointer
Link copied to clipboard
expect fun utility_last_error(utility: OlmUtilityPointer): String?