OlmLibraryWrapper

object OlmLibraryWrapper : Library

Functions

Link copied to clipboard
external fun olm_account(memory: Pointer?): OlmAccountPointer?
Link copied to clipboard
external fun olm_account_fallback_key(account: OlmAccountPointer?, fallback_key: Pointer?, fallback_key_size: NativeSize): NativeSize
Link copied to clipboard
external fun olm_account_generate_fallback_key(account: OlmAccountPointer?, random: Pointer?, random_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_account_generate_one_time_keys(account: OlmAccountPointer?, number_of_keys: NativeSize, random: Pointer?, random_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_account_identity_keys(account: OlmAccountPointer?, identity_keys: Pointer?, identity_key_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_account_one_time_keys(account: OlmAccountPointer?, one_time_keys: Pointer?, one_time_keys_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_account_sign(account: OlmAccountPointer?, message: Pointer?, message_length: NativeSize, signature: Pointer?, signature_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun olm_create_account(account: OlmAccountPointer?, random: Pointer?, random_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_create_inbound_session(session: OlmSessionPointer?, account: OlmAccountPointer?, one_time_key_message: Pointer?, message_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_create_inbound_session_from(session: OlmSessionPointer?, account: OlmAccountPointer?, their_identity_key: Pointer?, their_identity_key_length: NativeSize, one_time_key_message: Pointer?, message_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_create_outbound_session(session: OlmSessionPointer?, account: OlmAccountPointer?, their_identity_key: Pointer?, their_identity_key_length: NativeSize, their_one_time_key: Pointer?, their_one_time_key_length: NativeSize, random: Pointer?, random_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_create_sas(sas: OlmSASPointer?, random: Pointer?, random_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_decrypt(session: OlmSessionPointer?, message_type: NativeSize, message: Pointer?, message_length: NativeSize, plaintext: Pointer?, max_plaintext_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_decrypt_max_plaintext_length(session: OlmSessionPointer?, message_type: NativeSize, message: Pointer?, message_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_ed25519_verify(utility: OlmUtilityPointer?, key: Pointer?, key_length: NativeSize, message: Pointer?, message_length: NativeSize, signature: Pointer?, signature_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_encrypt(session: OlmSessionPointer?, plaintext: Pointer?, plaintext_length: NativeSize, random: Pointer?, random_length: NativeSize, message: Pointer?, message_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_encrypt_message_length(session: OlmSessionPointer?, plaintext_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun olm_error(): NativeSize
Link copied to clipboard
external fun olm_export_inbound_group_session(session: OlmInboundGroupSessionPointer?, key: Pointer?, key_length: NativeSize, message_index: Int): NativeSize
Link copied to clipboard
external fun olm_get_library_version(major: IntByReference, minor: IntByReference, patch: IntByReference)
Link copied to clipboard
external fun olm_group_decrypt(session: OlmInboundGroupSessionPointer?, message: Pointer?, message_length: NativeSize, plaintext: Pointer?, max_plaintext_length: NativeSize, message_index: IntByReference?): NativeSize
Link copied to clipboard
external fun olm_group_decrypt_max_plaintext_length(session: OlmInboundGroupSessionPointer?, message: Pointer?, message_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_group_encrypt(session: OlmOutboundGroupSessionPointer?, plaintext: Pointer?, plaintext_length: NativeSize, message: Pointer?, message_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_import_inbound_group_session(session: OlmInboundGroupSessionPointer?, session_key: Pointer?, session_key_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_inbound_group_session_id(session: OlmInboundGroupSessionPointer?, id: Pointer?, id_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_init_inbound_group_session(session: OlmInboundGroupSessionPointer?, session_key: Pointer?, session_key_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_init_outbound_group_session(session: OlmOutboundGroupSessionPointer?, random: Pointer?, random_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_matches_inbound_session(session: OlmSessionPointer?, one_time_key_message: Pointer?, message_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_matches_inbound_session_from(session: OlmSessionPointer?, their_identity_key: Pointer?, their_identity_key_length: NativeSize, one_time_key_message: Pointer?, message_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_outbound_group_session_id(session: OlmOutboundGroupSessionPointer?, id: Pointer?, id_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_outbound_group_session_key(session: OlmOutboundGroupSessionPointer?, key: Pointer?, key_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_pickle_account(account: OlmAccountPointer?, key: Pointer?, key_length: NativeSize, pickled: Pointer?, pickled_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_pickle_inbound_group_session(session: OlmInboundGroupSessionPointer?, key: Pointer?, key_length: NativeSize, pickled: Pointer?, pickled_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_pickle_outbound_group_session(session: OlmOutboundGroupSessionPointer?, key: Pointer?, key_length: NativeSize, pickled: Pointer?, pickled_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_pickle_pk_decryption(decryption: OlmPkDecryptionPointer?, key: Pointer?, key_length: NativeSize, pickled: Pointer?, pickled_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_pickle_session(session: OlmSessionPointer?, key: Pointer?, key_length: NativeSize, pickled: Pointer?, pickled_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_pk_ciphertext_length(encryption: OlmPkEncryptionPointer?, plaintext_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_pk_decrypt(decryption: OlmPkDecryptionPointer?, ephemeral_key: Pointer?, ephemeral_key_length: NativeSize, mac: Pointer?, mac_length: NativeSize, cipherText: Pointer?, cipherText_length: NativeSize, plaintext: Pointer?, max_plaintext_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_pk_decryption(memory: Pointer?): OlmPkDecryptionPointer?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun olm_pk_encrypt(encryption: OlmPkEncryptionPointer?, plaintext: Pointer?, plaintext_length: NativeSize, cipherText: Pointer?, cipherText_length: NativeSize, mac: Pointer?, mac_length: NativeSize, ephemeral_key: Pointer?, ephemeral_key_size: NativeSize, random: Pointer?, random_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_pk_encryption(memory: Pointer?): OlmPkEncryptionPointer?
Link copied to clipboard
Link copied to clipboard
external fun olm_pk_encryption_set_recipient_key(encryption: OlmPkEncryptionPointer?, _key: Pointer?, _key_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_pk_get_private_key(decryption: OlmPkDecryptionPointer?, private_key: Pointer?, private_key_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_pk_key_from_private(decryption: OlmPkDecryptionPointer?, pubkey: Pointer?, pubkey_length: NativeSize, privkey: Pointer?, privkey_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun olm_pk_max_plaintext_length(decryption: OlmPkDecryptionPointer?, cipherText_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_pk_sign(sign: OlmPkSigningPointer?, message: Pointer?, message_length: NativeSize, signature: Pointer?, signature_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_pk_signing(memory: Pointer?): OlmPkSigningPointer?
Link copied to clipboard
external fun olm_pk_signing_key_from_seed(sign: OlmPkSigningPointer?, pubkey: Pointer?, pubkey_length: NativeSize, seed: Pointer?, seed_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun olm_sas(memory: Pointer?): OlmSASPointer?
Link copied to clipboard
external fun olm_sas_calculate_mac(sas: OlmSASPointer?, input: Pointer?, input_length: NativeSize, info: Pointer?, info_length: NativeSize, mac: Pointer?, mac_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_sas_calculate_mac_fixed_base64(sas: OlmSASPointer?, input: Pointer?, input_length: NativeSize, info: Pointer?, info_length: NativeSize, mac: Pointer?, mac_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_sas_calculate_mac_long_kdf(sas: OlmSASPointer?, input: Pointer?, input_length: NativeSize, info: Pointer?, info_length: NativeSize, mac: Pointer?, mac_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_sas_generate_bytes(sas: OlmSASPointer?, info: Pointer?, info_length: NativeSize, output: Pointer?, output_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_sas_get_pubkey(sas: OlmSASPointer?, pubkey: Pointer?, pubkey_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun olm_sas_set_their_key(sas: OlmSASPointer?, their_key: Pointer?, their_key_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_sas_size(): NativeSize
Link copied to clipboard
external fun olm_session(memory: Pointer?): OlmSessionPointer?
Link copied to clipboard
external fun olm_session_describe(session: OlmSessionPointer?, buf: Pointer?, buflen: NativeSize)
Link copied to clipboard
Link copied to clipboard
external fun olm_session_id(session: OlmSessionPointer?, id: Pointer?, id_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
external fun olm_sha256(utility: OlmUtilityPointer?, input: Pointer?, input_length: NativeSize, output: Pointer?, output_length: NativeSize): NativeSize
Link copied to clipboard
Link copied to clipboard
external fun olm_unpickle_account(account: OlmAccountPointer?, key: Pointer?, key_length: NativeSize, pickled: Pointer?, pickled_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_unpickle_inbound_group_session(session: OlmInboundGroupSessionPointer?, key: Pointer?, key_length: NativeSize, pickled: Pointer?, pickled_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_unpickle_outbound_group_session(session: OlmOutboundGroupSessionPointer?, key: Pointer?, key_length: NativeSize, pickled: Pointer?, pickled_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_unpickle_pk_decryption(decryption: OlmPkDecryptionPointer?, key: Pointer?, key_length: NativeSize, pickled: Pointer?, pickled_length: NativeSize, pubkey: Pointer?, pubkey_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_unpickle_session(session: OlmSessionPointer?, key: Pointer?, key_length: NativeSize, pickled: Pointer?, pickled_length: NativeSize): NativeSize
Link copied to clipboard
external fun olm_utility(memory: Pointer?): OlmUtilityPointer?
Link copied to clipboard
Link copied to clipboard