Class Native


  • public final class Native
    extends java.lang.Object
    • Method Detail

      • keepAlive

        public static void keepAlive​(java.lang.Object obj)
        Keeps an object from being garbage-collected until this call completes. This can be used to keep a Java wrapper around a Rust object handle alive while earlier calls use that Rust object handle. That is, you should call keepAlive after the code where an object must not be garbage-collected. However, most of the time NativeHandleGuard is a better choice, since the lifetime of the guard is clear. Effectively equivalent to Java 9's reachabilityFence(). Uses native because the JVM can't look into the implementation of the method and optimize away the use of obj. (The actual implementation does nothing.)
      • Aes256Ctr32_Destroy

        public static void Aes256Ctr32_Destroy​(long handle)
      • Aes256Ctr32_New

        public static long Aes256Ctr32_New​(byte[] key,
                                           byte[] nonce,
                                           int initialCtr)
      • Aes256Ctr32_Process

        public static void Aes256Ctr32_Process​(long ctr,
                                               byte[] data,
                                               int offset,
                                               int length)
      • Aes256GcmDecryption_Destroy

        public static void Aes256GcmDecryption_Destroy​(long handle)
      • Aes256GcmDecryption_New

        public static long Aes256GcmDecryption_New​(byte[] key,
                                                   byte[] nonce,
                                                   byte[] associatedData)
      • Aes256GcmDecryption_Update

        public static void Aes256GcmDecryption_Update​(long gcm,
                                                      byte[] data,
                                                      int offset,
                                                      int length)
      • Aes256GcmDecryption_VerifyTag

        public static boolean Aes256GcmDecryption_VerifyTag​(long gcm,
                                                            byte[] tag)
      • Aes256GcmEncryption_ComputeTag

        public static byte[] Aes256GcmEncryption_ComputeTag​(long gcm)
      • Aes256GcmEncryption_Destroy

        public static void Aes256GcmEncryption_Destroy​(long handle)
      • Aes256GcmEncryption_New

        public static long Aes256GcmEncryption_New​(byte[] key,
                                                   byte[] nonce,
                                                   byte[] associatedData)
      • Aes256GcmEncryption_Update

        public static void Aes256GcmEncryption_Update​(long gcm,
                                                      byte[] data,
                                                      int offset,
                                                      int length)
      • Aes256GcmSiv_Decrypt

        public static byte[] Aes256GcmSiv_Decrypt​(long aesGcmSiv,
                                                  byte[] ctext,
                                                  byte[] nonce,
                                                  byte[] associatedData)
      • Aes256GcmSiv_Destroy

        public static void Aes256GcmSiv_Destroy​(long handle)
      • Aes256GcmSiv_Encrypt

        public static byte[] Aes256GcmSiv_Encrypt​(long aesGcmSivObj,
                                                  byte[] ptext,
                                                  byte[] nonce,
                                                  byte[] associatedData)
      • Aes256GcmSiv_New

        public static long Aes256GcmSiv_New​(byte[] key)
      • AuthCredentialPresentation_CheckValidContents

        public static void AuthCredentialPresentation_CheckValidContents​(byte[] obj)
      • AuthCredentialPresentation_GetRedemptionTime

        public static int AuthCredentialPresentation_GetRedemptionTime​(byte[] presentation)
      • AuthCredentialPresentation_GetUuidCiphertext

        public static byte[] AuthCredentialPresentation_GetUuidCiphertext​(byte[] presentation)
      • AuthCredentialResponse_CheckValidContents

        public static void AuthCredentialResponse_CheckValidContents​(byte[] obj)
      • AuthCredential_CheckValidContents

        public static void AuthCredential_CheckValidContents​(byte[] obj)
      • CryptographicHash_Destroy

        public static void CryptographicHash_Destroy​(long handle)
      • CryptographicHash_Finalize

        public static byte[] CryptographicHash_Finalize​(long hash)
      • CryptographicHash_New

        public static long CryptographicHash_New​(java.lang.String algo)
      • CryptographicHash_Update

        public static void CryptographicHash_Update​(long hash,
                                                    byte[] input)
      • CryptographicHash_UpdateWithOffset

        public static void CryptographicHash_UpdateWithOffset​(long hash,
                                                              byte[] input,
                                                              int offset,
                                                              int len)
      • CryptographicMac_Destroy

        public static void CryptographicMac_Destroy​(long handle)
      • CryptographicMac_Finalize

        public static byte[] CryptographicMac_Finalize​(long mac)
      • CryptographicMac_New

        public static long CryptographicMac_New​(java.lang.String algo,
                                                byte[] key)
      • CryptographicMac_Update

        public static void CryptographicMac_Update​(long mac,
                                                   byte[] input)
      • CryptographicMac_UpdateWithOffset

        public static void CryptographicMac_UpdateWithOffset​(long mac,
                                                             byte[] input,
                                                             int offset,
                                                             int len)
      • DecryptionErrorMessage_Deserialize

        public static long DecryptionErrorMessage_Deserialize​(byte[] data)
      • DecryptionErrorMessage_Destroy

        public static void DecryptionErrorMessage_Destroy​(long handle)
      • DecryptionErrorMessage_ExtractFromSerializedContent

        public static long DecryptionErrorMessage_ExtractFromSerializedContent​(byte[] bytes)
      • DecryptionErrorMessage_ForOriginalMessage

        public static long DecryptionErrorMessage_ForOriginalMessage​(byte[] originalBytes,
                                                                     int originalType,
                                                                     long originalTimestamp,
                                                                     int originalSenderDeviceId)
      • DecryptionErrorMessage_GetDeviceId

        public static int DecryptionErrorMessage_GetDeviceId​(long obj)
      • DecryptionErrorMessage_GetRatchetKey

        public static long DecryptionErrorMessage_GetRatchetKey​(long m)
      • DecryptionErrorMessage_GetSerialized

        public static byte[] DecryptionErrorMessage_GetSerialized​(long obj)
      • DecryptionErrorMessage_GetTimestamp

        public static long DecryptionErrorMessage_GetTimestamp​(long obj)
      • DeviceTransfer_GenerateCertificate

        public static byte[] DeviceTransfer_GenerateCertificate​(byte[] privateKey,
                                                                java.lang.String name,
                                                                int daysToExpire)
      • DeviceTransfer_GeneratePrivateKey

        public static byte[] DeviceTransfer_GeneratePrivateKey()
      • ECPrivateKey_Agree

        public static byte[] ECPrivateKey_Agree​(long privateKey,
                                                long publicKey)
      • ECPrivateKey_Deserialize

        public static long ECPrivateKey_Deserialize​(byte[] data)
      • ECPrivateKey_Destroy

        public static void ECPrivateKey_Destroy​(long handle)
      • ECPrivateKey_Generate

        public static long ECPrivateKey_Generate()
      • ECPrivateKey_GetPublicKey

        public static long ECPrivateKey_GetPublicKey​(long k)
      • ECPrivateKey_Serialize

        public static byte[] ECPrivateKey_Serialize​(long obj)
      • ECPrivateKey_Sign

        public static byte[] ECPrivateKey_Sign​(long key,
                                               byte[] message)
      • ECPublicKey_Compare

        public static int ECPublicKey_Compare​(long key1,
                                              long key2)
      • ECPublicKey_Deserialize

        public static long ECPublicKey_Deserialize​(byte[] data,
                                                   int offset)
      • ECPublicKey_Destroy

        public static void ECPublicKey_Destroy​(long handle)
      • ECPublicKey_GetPublicKeyBytes

        public static byte[] ECPublicKey_GetPublicKeyBytes​(long obj)
      • ECPublicKey_Serialize

        public static byte[] ECPublicKey_Serialize​(long obj)
      • ECPublicKey_Verify

        public static boolean ECPublicKey_Verify​(long key,
                                                 byte[] message,
                                                 byte[] signature)
      • GroupCipher_DecryptMessage

        public static byte[] GroupCipher_DecryptMessage​(long sender,
                                                        byte[] message,
                                                        SenderKeyStore store,
                                                        java.lang.Object ctx)
      • GroupCipher_EncryptMessage

        public static CiphertextMessage GroupCipher_EncryptMessage​(long sender,
                                                                   java.util.UUID distributionId,
                                                                   byte[] message,
                                                                   SenderKeyStore store,
                                                                   java.lang.Object ctx)
      • GroupMasterKey_CheckValidContents

        public static void GroupMasterKey_CheckValidContents​(byte[] obj)
      • GroupPublicParams_CheckValidContents

        public static void GroupPublicParams_CheckValidContents​(byte[] obj)
      • GroupPublicParams_GetGroupIdentifier

        public static byte[] GroupPublicParams_GetGroupIdentifier​(byte[] groupPublicParams)
      • GroupSecretParams_CheckValidContents

        public static void GroupSecretParams_CheckValidContents​(byte[] obj)
      • GroupSecretParams_DecryptBlobWithPadding

        public static byte[] GroupSecretParams_DecryptBlobWithPadding​(byte[] params,
                                                                      byte[] ciphertext)
      • GroupSecretParams_DecryptProfileKey

        public static byte[] GroupSecretParams_DecryptProfileKey​(byte[] params,
                                                                 byte[] profileKey,
                                                                 java.util.UUID uuid)
      • GroupSecretParams_DecryptUuid

        public static java.util.UUID GroupSecretParams_DecryptUuid​(byte[] params,
                                                                   byte[] uuid)
      • GroupSecretParams_DeriveFromMasterKey

        public static byte[] GroupSecretParams_DeriveFromMasterKey​(byte[] masterKey)
      • GroupSecretParams_EncryptBlobWithPaddingDeterministic

        public static byte[] GroupSecretParams_EncryptBlobWithPaddingDeterministic​(byte[] params,
                                                                                   byte[] randomness,
                                                                                   byte[] plaintext,
                                                                                   int paddingLen)
      • GroupSecretParams_EncryptProfileKey

        public static byte[] GroupSecretParams_EncryptProfileKey​(byte[] params,
                                                                 byte[] profileKey,
                                                                 java.util.UUID uuid)
      • GroupSecretParams_EncryptUuid

        public static byte[] GroupSecretParams_EncryptUuid​(byte[] params,
                                                           java.util.UUID uuid)
      • GroupSecretParams_GenerateDeterministic

        public static byte[] GroupSecretParams_GenerateDeterministic​(byte[] randomness)
      • GroupSecretParams_GetMasterKey

        public static byte[] GroupSecretParams_GetMasterKey​(byte[] params)
      • GroupSecretParams_GetPublicParams

        public static byte[] GroupSecretParams_GetPublicParams​(byte[] params)
      • GroupSessionBuilder_CreateSenderKeyDistributionMessage

        public static long GroupSessionBuilder_CreateSenderKeyDistributionMessage​(long sender,
                                                                                  java.util.UUID distributionId,
                                                                                  SenderKeyStore store,
                                                                                  java.lang.Object ctx)
      • GroupSessionBuilder_ProcessSenderKeyDistributionMessage

        public static void GroupSessionBuilder_ProcessSenderKeyDistributionMessage​(long sender,
                                                                                   long senderKeyDistributionMessage,
                                                                                   SenderKeyStore store,
                                                                                   java.lang.Object ctx)
      • HKDF_DeriveSecrets

        public static byte[] HKDF_DeriveSecrets​(int outputLength,
                                                byte[] ikm,
                                                byte[] label,
                                                byte[] salt)
      • HsmEnclaveClient_CompleteHandshake

        public static void HsmEnclaveClient_CompleteHandshake​(long cli,
                                                              byte[] handshakeReceived)
      • HsmEnclaveClient_Destroy

        public static void HsmEnclaveClient_Destroy​(long handle)
      • HsmEnclaveClient_EstablishedRecv

        public static byte[] HsmEnclaveClient_EstablishedRecv​(long cli,
                                                              byte[] receivedCiphertext)
      • HsmEnclaveClient_EstablishedSend

        public static byte[] HsmEnclaveClient_EstablishedSend​(long cli,
                                                              byte[] plaintextToSend)
      • HsmEnclaveClient_InitialRequest

        public static byte[] HsmEnclaveClient_InitialRequest​(long obj)
      • HsmEnclaveClient_New

        public static long HsmEnclaveClient_New​(byte[] trustedPublicKey,
                                                byte[] trustedCodeHashes)
      • IdentityKeyPair_Deserialize

        public static long[] IdentityKeyPair_Deserialize​(byte[] data)
      • IdentityKeyPair_Serialize

        public static byte[] IdentityKeyPair_Serialize​(long publicKey,
                                                       long privateKey)
      • IdentityKeyPair_SignAlternateIdentity

        public static byte[] IdentityKeyPair_SignAlternateIdentity​(long publicKey,
                                                                   long privateKey,
                                                                   long otherIdentity)
      • IdentityKey_VerifyAlternateIdentity

        public static boolean IdentityKey_VerifyAlternateIdentity​(long publicKey,
                                                                  long otherIdentity,
                                                                  byte[] signature)
      • Logger_Initialize

        public static void Logger_Initialize​(int maxLevel,
                                             java.lang.Class loggerClass)
      • Logger_SetMaxLevel

        public static void Logger_SetMaxLevel​(int maxLevel)
      • NumericFingerprintGenerator_Destroy

        public static void NumericFingerprintGenerator_Destroy​(long handle)
      • NumericFingerprintGenerator_GetDisplayString

        public static java.lang.String NumericFingerprintGenerator_GetDisplayString​(long obj)
      • NumericFingerprintGenerator_GetScannableEncoding

        public static byte[] NumericFingerprintGenerator_GetScannableEncoding​(long obj)
      • NumericFingerprintGenerator_New

        public static long NumericFingerprintGenerator_New​(int iterations,
                                                           int version,
                                                           byte[] localIdentifier,
                                                           byte[] localKey,
                                                           byte[] remoteIdentifier,
                                                           byte[] remoteKey)
      • PlaintextContent_Deserialize

        public static long PlaintextContent_Deserialize​(byte[] data)
      • PlaintextContent_DeserializeAndGetContent

        public static byte[] PlaintextContent_DeserializeAndGetContent​(byte[] bytes)
      • PlaintextContent_Destroy

        public static void PlaintextContent_Destroy​(long handle)
      • PlaintextContent_FromDecryptionErrorMessage

        public static long PlaintextContent_FromDecryptionErrorMessage​(long m)
      • PlaintextContent_GetBody

        public static byte[] PlaintextContent_GetBody​(long obj)
      • PlaintextContent_GetSerialized

        public static byte[] PlaintextContent_GetSerialized​(long obj)
      • PniCredentialPresentation_CheckValidContents

        public static void PniCredentialPresentation_CheckValidContents​(byte[] obj)
      • PniCredentialPresentation_GetAciCiphertext

        public static byte[] PniCredentialPresentation_GetAciCiphertext​(byte[] presentation)
      • PniCredentialPresentation_GetPniCiphertext

        public static byte[] PniCredentialPresentation_GetPniCiphertext​(byte[] presentation)
      • PniCredentialPresentation_GetProfileKeyCiphertext

        public static byte[] PniCredentialPresentation_GetProfileKeyCiphertext​(byte[] presentation)
      • PniCredentialRequestContext_CheckValidContents

        public static void PniCredentialRequestContext_CheckValidContents​(byte[] obj)
      • PniCredentialRequestContext_GetRequest

        public static byte[] PniCredentialRequestContext_GetRequest​(byte[] context)
      • PniCredentialResponse_CheckValidContents

        public static void PniCredentialResponse_CheckValidContents​(byte[] obj)
      • PniCredential_CheckValidContents

        public static void PniCredential_CheckValidContents​(byte[] obj)
      • PreKeyBundle_Destroy

        public static void PreKeyBundle_Destroy​(long handle)
      • PreKeyBundle_GetDeviceId

        public static int PreKeyBundle_GetDeviceId​(long obj)
      • PreKeyBundle_GetIdentityKey

        public static long PreKeyBundle_GetIdentityKey​(long p)
      • PreKeyBundle_GetPreKeyId

        public static int PreKeyBundle_GetPreKeyId​(long obj)
      • PreKeyBundle_GetPreKeyPublic

        public static long PreKeyBundle_GetPreKeyPublic​(long obj)
      • PreKeyBundle_GetRegistrationId

        public static int PreKeyBundle_GetRegistrationId​(long obj)
      • PreKeyBundle_GetSignedPreKeyId

        public static int PreKeyBundle_GetSignedPreKeyId​(long obj)
      • PreKeyBundle_GetSignedPreKeyPublic

        public static long PreKeyBundle_GetSignedPreKeyPublic​(long obj)
      • PreKeyBundle_GetSignedPreKeySignature

        public static byte[] PreKeyBundle_GetSignedPreKeySignature​(long obj)
      • PreKeyBundle_New

        public static long PreKeyBundle_New​(int registrationId,
                                            int deviceId,
                                            int prekeyId,
                                            long prekey,
                                            int signedPrekeyId,
                                            long signedPrekey,
                                            byte[] signedPrekeySignature,
                                            long identityKey)
      • PreKeyRecord_Deserialize

        public static long PreKeyRecord_Deserialize​(byte[] data)
      • PreKeyRecord_Destroy

        public static void PreKeyRecord_Destroy​(long handle)
      • PreKeyRecord_GetId

        public static int PreKeyRecord_GetId​(long obj)
      • PreKeyRecord_GetPrivateKey

        public static long PreKeyRecord_GetPrivateKey​(long obj)
      • PreKeyRecord_GetPublicKey

        public static long PreKeyRecord_GetPublicKey​(long obj)
      • PreKeyRecord_GetSerialized

        public static byte[] PreKeyRecord_GetSerialized​(long obj)
      • PreKeyRecord_New

        public static long PreKeyRecord_New​(int id,
                                            long pubKey,
                                            long privKey)
      • PreKeySignalMessage_Deserialize

        public static long PreKeySignalMessage_Deserialize​(byte[] data)
      • PreKeySignalMessage_Destroy

        public static void PreKeySignalMessage_Destroy​(long handle)
      • PreKeySignalMessage_GetBaseKey

        public static long PreKeySignalMessage_GetBaseKey​(long m)
      • PreKeySignalMessage_GetIdentityKey

        public static long PreKeySignalMessage_GetIdentityKey​(long m)
      • PreKeySignalMessage_GetPreKeyId

        public static int PreKeySignalMessage_GetPreKeyId​(long obj)
      • PreKeySignalMessage_GetRegistrationId

        public static int PreKeySignalMessage_GetRegistrationId​(long obj)
      • PreKeySignalMessage_GetSerialized

        public static byte[] PreKeySignalMessage_GetSerialized​(long obj)
      • PreKeySignalMessage_GetSignalMessage

        public static long PreKeySignalMessage_GetSignalMessage​(long m)
      • PreKeySignalMessage_GetSignedPreKeyId

        public static int PreKeySignalMessage_GetSignedPreKeyId​(long obj)
      • PreKeySignalMessage_GetVersion

        public static int PreKeySignalMessage_GetVersion​(long obj)
      • PreKeySignalMessage_New

        public static long PreKeySignalMessage_New​(int messageVersion,
                                                   int registrationId,
                                                   int preKeyId,
                                                   int signedPreKeyId,
                                                   long baseKey,
                                                   long identityKey,
                                                   long signalMessage)
      • ProfileKeyCiphertext_CheckValidContents

        public static void ProfileKeyCiphertext_CheckValidContents​(byte[] obj)
      • ProfileKeyCommitment_CheckValidContents

        public static void ProfileKeyCommitment_CheckValidContents​(byte[] obj)
      • ProfileKeyCredentialPresentation_CheckValidContents

        public static void ProfileKeyCredentialPresentation_CheckValidContents​(byte[] obj)
      • ProfileKeyCredentialPresentation_GetProfileKeyCiphertext

        public static byte[] ProfileKeyCredentialPresentation_GetProfileKeyCiphertext​(byte[] presentation)
      • ProfileKeyCredentialPresentation_GetUuidCiphertext

        public static byte[] ProfileKeyCredentialPresentation_GetUuidCiphertext​(byte[] presentation)
      • ProfileKeyCredentialRequestContext_CheckValidContents

        public static void ProfileKeyCredentialRequestContext_CheckValidContents​(byte[] obj)
      • ProfileKeyCredentialRequestContext_GetRequest

        public static byte[] ProfileKeyCredentialRequestContext_GetRequest​(byte[] context)
      • ProfileKeyCredentialRequest_CheckValidContents

        public static void ProfileKeyCredentialRequest_CheckValidContents​(byte[] obj)
      • ProfileKeyCredentialResponse_CheckValidContents

        public static void ProfileKeyCredentialResponse_CheckValidContents​(byte[] obj)
      • ProfileKeyCredential_CheckValidContents

        public static void ProfileKeyCredential_CheckValidContents​(byte[] obj)
      • ProfileKey_CheckValidContents

        public static void ProfileKey_CheckValidContents​(byte[] obj)
      • ProfileKey_GetCommitment

        public static byte[] ProfileKey_GetCommitment​(byte[] profileKey,
                                                      java.util.UUID uuid)
      • ProfileKey_GetProfileKeyVersion

        public static byte[] ProfileKey_GetProfileKeyVersion​(byte[] profileKey,
                                                             java.util.UUID uuid)
      • ProtocolAddress_Destroy

        public static void ProtocolAddress_Destroy​(long handle)
      • ProtocolAddress_DeviceId

        public static int ProtocolAddress_DeviceId​(long obj)
      • ProtocolAddress_Name

        public static java.lang.String ProtocolAddress_Name​(long obj)
      • ProtocolAddress_New

        public static long ProtocolAddress_New​(java.lang.String name,
                                               int deviceId)
      • ReceiptCredentialPresentation_CheckValidContents

        public static void ReceiptCredentialPresentation_CheckValidContents​(byte[] obj)
      • ReceiptCredentialPresentation_GetReceiptExpirationTime

        public static long ReceiptCredentialPresentation_GetReceiptExpirationTime​(byte[] presentation)
      • ReceiptCredentialPresentation_GetReceiptLevel

        public static long ReceiptCredentialPresentation_GetReceiptLevel​(byte[] presentation)
      • ReceiptCredentialPresentation_GetReceiptSerial

        public static byte[] ReceiptCredentialPresentation_GetReceiptSerial​(byte[] presentation)
      • ReceiptCredentialRequestContext_CheckValidContents

        public static void ReceiptCredentialRequestContext_CheckValidContents​(byte[] obj)
      • ReceiptCredentialRequestContext_GetRequest

        public static byte[] ReceiptCredentialRequestContext_GetRequest​(byte[] requestContext)
      • ReceiptCredentialRequest_CheckValidContents

        public static void ReceiptCredentialRequest_CheckValidContents​(byte[] obj)
      • ReceiptCredentialResponse_CheckValidContents

        public static void ReceiptCredentialResponse_CheckValidContents​(byte[] obj)
      • ReceiptCredential_CheckValidContents

        public static void ReceiptCredential_CheckValidContents​(byte[] obj)
      • ReceiptCredential_GetReceiptExpirationTime

        public static long ReceiptCredential_GetReceiptExpirationTime​(byte[] receiptCredential)
      • ReceiptCredential_GetReceiptLevel

        public static long ReceiptCredential_GetReceiptLevel​(byte[] receiptCredential)
      • ScannableFingerprint_Compare

        public static boolean ScannableFingerprint_Compare​(byte[] fprint1,
                                                           byte[] fprint2)
      • SealedSessionCipher_DecryptToUsmc

        public static long SealedSessionCipher_DecryptToUsmc​(byte[] ctext,
                                                             IdentityKeyStore identityStore,
                                                             java.lang.Object ctx)
      • SealedSessionCipher_Encrypt

        public static byte[] SealedSessionCipher_Encrypt​(long destination,
                                                         long content,
                                                         IdentityKeyStore identityKeyStore,
                                                         java.lang.Object ctx)
      • SealedSessionCipher_MultiRecipientEncrypt

        public static byte[] SealedSessionCipher_MultiRecipientEncrypt​(long[] recipients,
                                                                       long[] recipientSessions,
                                                                       long content,
                                                                       IdentityKeyStore identityKeyStore,
                                                                       java.lang.Object ctx)
      • SealedSessionCipher_MultiRecipientMessageForSingleRecipient

        public static byte[] SealedSessionCipher_MultiRecipientMessageForSingleRecipient​(byte[] encodedMultiRecipientMessage)
      • SenderCertificate_Deserialize

        public static long SenderCertificate_Deserialize​(byte[] data)
      • SenderCertificate_Destroy

        public static void SenderCertificate_Destroy​(long handle)
      • SenderCertificate_GetCertificate

        public static byte[] SenderCertificate_GetCertificate​(long obj)
      • SenderCertificate_GetDeviceId

        public static int SenderCertificate_GetDeviceId​(long obj)
      • SenderCertificate_GetExpiration

        public static long SenderCertificate_GetExpiration​(long obj)
      • SenderCertificate_GetKey

        public static long SenderCertificate_GetKey​(long obj)
      • SenderCertificate_GetSenderE164

        public static java.lang.String SenderCertificate_GetSenderE164​(long obj)
      • SenderCertificate_GetSenderUuid

        public static java.lang.String SenderCertificate_GetSenderUuid​(long obj)
      • SenderCertificate_GetSerialized

        public static byte[] SenderCertificate_GetSerialized​(long obj)
      • SenderCertificate_GetServerCertificate

        public static long SenderCertificate_GetServerCertificate​(long cert)
      • SenderCertificate_GetSignature

        public static byte[] SenderCertificate_GetSignature​(long obj)
      • SenderCertificate_New

        public static long SenderCertificate_New​(java.lang.String senderUuid,
                                                 java.lang.String senderE164,
                                                 int senderDeviceId,
                                                 long senderKey,
                                                 long expiration,
                                                 long signerCert,
                                                 long signerKey)
      • SenderCertificate_Validate

        public static boolean SenderCertificate_Validate​(long cert,
                                                         long key,
                                                         long time)
      • SenderKeyDistributionMessage_Deserialize

        public static long SenderKeyDistributionMessage_Deserialize​(byte[] data)
      • SenderKeyDistributionMessage_Destroy

        public static void SenderKeyDistributionMessage_Destroy​(long handle)
      • SenderKeyDistributionMessage_GetChainId

        public static int SenderKeyDistributionMessage_GetChainId​(long obj)
      • SenderKeyDistributionMessage_GetChainKey

        public static byte[] SenderKeyDistributionMessage_GetChainKey​(long obj)
      • SenderKeyDistributionMessage_GetDistributionId

        public static java.util.UUID SenderKeyDistributionMessage_GetDistributionId​(long obj)
      • SenderKeyDistributionMessage_GetIteration

        public static int SenderKeyDistributionMessage_GetIteration​(long obj)
      • SenderKeyDistributionMessage_GetSerialized

        public static byte[] SenderKeyDistributionMessage_GetSerialized​(long obj)
      • SenderKeyDistributionMessage_GetSignatureKey

        public static long SenderKeyDistributionMessage_GetSignatureKey​(long m)
      • SenderKeyDistributionMessage_New

        public static long SenderKeyDistributionMessage_New​(int messageVersion,
                                                            java.util.UUID distributionId,
                                                            int chainId,
                                                            int iteration,
                                                            byte[] chainkey,
                                                            long pk)
      • SenderKeyMessage_Deserialize

        public static long SenderKeyMessage_Deserialize​(byte[] data)
      • SenderKeyMessage_Destroy

        public static void SenderKeyMessage_Destroy​(long handle)
      • SenderKeyMessage_GetChainId

        public static int SenderKeyMessage_GetChainId​(long obj)
      • SenderKeyMessage_GetCipherText

        public static byte[] SenderKeyMessage_GetCipherText​(long obj)
      • SenderKeyMessage_GetDistributionId

        public static java.util.UUID SenderKeyMessage_GetDistributionId​(long obj)
      • SenderKeyMessage_GetIteration

        public static int SenderKeyMessage_GetIteration​(long obj)
      • SenderKeyMessage_GetSerialized

        public static byte[] SenderKeyMessage_GetSerialized​(long obj)
      • SenderKeyMessage_New

        public static long SenderKeyMessage_New​(int messageVersion,
                                                java.util.UUID distributionId,
                                                int chainId,
                                                int iteration,
                                                byte[] ciphertext,
                                                long pk)
      • SenderKeyMessage_VerifySignature

        public static boolean SenderKeyMessage_VerifySignature​(long skm,
                                                               long pubkey)
      • SenderKeyRecord_Deserialize

        public static long SenderKeyRecord_Deserialize​(byte[] data)
      • SenderKeyRecord_Destroy

        public static void SenderKeyRecord_Destroy​(long handle)
      • SenderKeyRecord_GetSerialized

        public static byte[] SenderKeyRecord_GetSerialized​(long obj)
      • ServerCertificate_Deserialize

        public static long ServerCertificate_Deserialize​(byte[] data)
      • ServerCertificate_Destroy

        public static void ServerCertificate_Destroy​(long handle)
      • ServerCertificate_GetCertificate

        public static byte[] ServerCertificate_GetCertificate​(long obj)
      • ServerCertificate_GetKey

        public static long ServerCertificate_GetKey​(long obj)
      • ServerCertificate_GetKeyId

        public static int ServerCertificate_GetKeyId​(long obj)
      • ServerCertificate_GetSerialized

        public static byte[] ServerCertificate_GetSerialized​(long obj)
      • ServerCertificate_GetSignature

        public static byte[] ServerCertificate_GetSignature​(long obj)
      • ServerCertificate_New

        public static long ServerCertificate_New​(int keyId,
                                                 long serverKey,
                                                 long trustRoot)
      • ServerPublicParams_CheckValidContents

        public static void ServerPublicParams_CheckValidContents​(byte[] obj)
      • ServerPublicParams_CreateAuthCredentialPresentationDeterministic

        public static byte[] ServerPublicParams_CreateAuthCredentialPresentationDeterministic​(byte[] serverPublicParams,
                                                                                              byte[] randomness,
                                                                                              byte[] groupSecretParams,
                                                                                              byte[] authCredential)
      • ServerPublicParams_CreatePniCredentialPresentationDeterministic

        public static byte[] ServerPublicParams_CreatePniCredentialPresentationDeterministic​(byte[] serverPublicParams,
                                                                                             byte[] randomness,
                                                                                             byte[] groupSecretParams,
                                                                                             byte[] profileKeyCredential)
      • ServerPublicParams_CreatePniCredentialRequestContextDeterministic

        public static byte[] ServerPublicParams_CreatePniCredentialRequestContextDeterministic​(byte[] serverPublicParams,
                                                                                               byte[] randomness,
                                                                                               java.util.UUID aci,
                                                                                               java.util.UUID pni,
                                                                                               byte[] profileKey)
      • ServerPublicParams_CreateProfileKeyCredentialPresentationDeterministic

        public static byte[] ServerPublicParams_CreateProfileKeyCredentialPresentationDeterministic​(byte[] serverPublicParams,
                                                                                                    byte[] randomness,
                                                                                                    byte[] groupSecretParams,
                                                                                                    byte[] profileKeyCredential)
      • ServerPublicParams_CreateProfileKeyCredentialRequestContextDeterministic

        public static byte[] ServerPublicParams_CreateProfileKeyCredentialRequestContextDeterministic​(byte[] serverPublicParams,
                                                                                                      byte[] randomness,
                                                                                                      java.util.UUID uuid,
                                                                                                      byte[] profileKey)
      • ServerPublicParams_CreateReceiptCredentialPresentationDeterministic

        public static byte[] ServerPublicParams_CreateReceiptCredentialPresentationDeterministic​(byte[] serverPublicParams,
                                                                                                 byte[] randomness,
                                                                                                 byte[] receiptCredential)
      • ServerPublicParams_CreateReceiptCredentialRequestContextDeterministic

        public static byte[] ServerPublicParams_CreateReceiptCredentialRequestContextDeterministic​(byte[] serverPublicParams,
                                                                                                   byte[] randomness,
                                                                                                   byte[] receiptSerial)
      • ServerPublicParams_ReceiveAuthCredential

        public static byte[] ServerPublicParams_ReceiveAuthCredential​(byte[] params,
                                                                      java.util.UUID uuid,
                                                                      int redemptionTime,
                                                                      byte[] response)
      • ServerPublicParams_ReceivePniCredential

        public static byte[] ServerPublicParams_ReceivePniCredential​(byte[] serverPublicParams,
                                                                     byte[] requestContext,
                                                                     byte[] response)
      • ServerPublicParams_ReceiveProfileKeyCredential

        public static byte[] ServerPublicParams_ReceiveProfileKeyCredential​(byte[] serverPublicParams,
                                                                            byte[] requestContext,
                                                                            byte[] response)
      • ServerPublicParams_ReceiveReceiptCredential

        public static byte[] ServerPublicParams_ReceiveReceiptCredential​(byte[] serverPublicParams,
                                                                         byte[] requestContext,
                                                                         byte[] response)
      • ServerPublicParams_VerifySignature

        public static void ServerPublicParams_VerifySignature​(byte[] serverPublicParams,
                                                              byte[] message,
                                                              byte[] notarySignature)
      • ServerSecretParams_CheckValidContents

        public static void ServerSecretParams_CheckValidContents​(byte[] obj)
      • ServerSecretParams_GenerateDeterministic

        public static byte[] ServerSecretParams_GenerateDeterministic​(byte[] randomness)
      • ServerSecretParams_GetPublicParams

        public static byte[] ServerSecretParams_GetPublicParams​(byte[] params)
      • ServerSecretParams_IssueAuthCredentialDeterministic

        public static byte[] ServerSecretParams_IssueAuthCredentialDeterministic​(byte[] serverSecretParams,
                                                                                 byte[] randomness,
                                                                                 java.util.UUID uuid,
                                                                                 int redemptionTime)
      • ServerSecretParams_IssuePniCredentialDeterministic

        public static byte[] ServerSecretParams_IssuePniCredentialDeterministic​(byte[] serverSecretParams,
                                                                                byte[] randomness,
                                                                                byte[] request,
                                                                                java.util.UUID aci,
                                                                                java.util.UUID pni,
                                                                                byte[] commitment)
      • ServerSecretParams_IssueProfileKeyCredentialDeterministic

        public static byte[] ServerSecretParams_IssueProfileKeyCredentialDeterministic​(byte[] serverSecretParams,
                                                                                       byte[] randomness,
                                                                                       byte[] request,
                                                                                       java.util.UUID uuid,
                                                                                       byte[] commitment)
      • ServerSecretParams_IssueReceiptCredentialDeterministic

        public static byte[] ServerSecretParams_IssueReceiptCredentialDeterministic​(byte[] serverSecretParams,
                                                                                    byte[] randomness,
                                                                                    byte[] request,
                                                                                    long receiptExpirationTime,
                                                                                    long receiptLevel)
      • ServerSecretParams_SignDeterministic

        public static byte[] ServerSecretParams_SignDeterministic​(byte[] params,
                                                                  byte[] randomness,
                                                                  byte[] message)
      • ServerSecretParams_VerifyAuthCredentialPresentation

        public static void ServerSecretParams_VerifyAuthCredentialPresentation​(byte[] serverSecretParams,
                                                                               byte[] groupPublicParams,
                                                                               byte[] presentation)
      • ServerSecretParams_VerifyPniCredentialPresentation

        public static void ServerSecretParams_VerifyPniCredentialPresentation​(byte[] serverSecretParams,
                                                                              byte[] groupPublicParams,
                                                                              byte[] presentation)
      • ServerSecretParams_VerifyProfileKeyCredentialPresentation

        public static void ServerSecretParams_VerifyProfileKeyCredentialPresentation​(byte[] serverSecretParams,
                                                                                     byte[] groupPublicParams,
                                                                                     byte[] presentation)
      • ServerSecretParams_VerifyReceiptCredentialPresentation

        public static void ServerSecretParams_VerifyReceiptCredentialPresentation​(byte[] serverSecretParams,
                                                                                  byte[] presentation)
      • SessionBuilder_ProcessPreKeyBundle

        public static void SessionBuilder_ProcessPreKeyBundle​(long bundle,
                                                              long protocolAddress,
                                                              SessionStore sessionStore,
                                                              IdentityKeyStore identityKeyStore,
                                                              java.lang.Object ctx)
      • SessionCipher_DecryptPreKeySignalMessage

        public static byte[] SessionCipher_DecryptPreKeySignalMessage​(long message,
                                                                      long protocolAddress,
                                                                      SessionStore sessionStore,
                                                                      IdentityKeyStore identityKeyStore,
                                                                      PreKeyStore prekeyStore,
                                                                      SignedPreKeyStore signedPrekeyStore,
                                                                      java.lang.Object ctx)
      • SessionCipher_DecryptSignalMessage

        public static byte[] SessionCipher_DecryptSignalMessage​(long message,
                                                                long protocolAddress,
                                                                SessionStore sessionStore,
                                                                IdentityKeyStore identityKeyStore,
                                                                java.lang.Object ctx)
      • SessionRecord_ArchiveCurrentState

        public static void SessionRecord_ArchiveCurrentState​(long sessionRecord)
      • SessionRecord_CurrentRatchetKeyMatches

        public static boolean SessionRecord_CurrentRatchetKeyMatches​(long s,
                                                                     long key)
      • SessionRecord_Deserialize

        public static long SessionRecord_Deserialize​(byte[] data)
      • SessionRecord_Destroy

        public static void SessionRecord_Destroy​(long handle)
      • SessionRecord_FromSingleSessionState

        public static long SessionRecord_FromSingleSessionState​(byte[] sessionState)
      • SessionRecord_GetAliceBaseKey

        public static byte[] SessionRecord_GetAliceBaseKey​(long obj)
      • SessionRecord_GetLocalIdentityKeyPublic

        public static byte[] SessionRecord_GetLocalIdentityKeyPublic​(long obj)
      • SessionRecord_GetLocalRegistrationId

        public static int SessionRecord_GetLocalRegistrationId​(long obj)
      • SessionRecord_GetReceiverChainKeyValue

        public static byte[] SessionRecord_GetReceiverChainKeyValue​(long sessionState,
                                                                    long key)
      • SessionRecord_GetRemoteIdentityKeyPublic

        public static byte[] SessionRecord_GetRemoteIdentityKeyPublic​(long obj)
      • SessionRecord_GetRemoteRegistrationId

        public static int SessionRecord_GetRemoteRegistrationId​(long obj)
      • SessionRecord_GetSenderChainKeyValue

        public static byte[] SessionRecord_GetSenderChainKeyValue​(long obj)
      • SessionRecord_GetSessionVersion

        public static int SessionRecord_GetSessionVersion​(long s)
      • SessionRecord_HasSenderChain

        public static boolean SessionRecord_HasSenderChain​(long obj)
      • SessionRecord_InitializeAliceSession

        public static long SessionRecord_InitializeAliceSession​(long identityKeyPrivate,
                                                                long identityKeyPublic,
                                                                long basePrivate,
                                                                long basePublic,
                                                                long theirIdentityKey,
                                                                long theirSignedPrekey,
                                                                long theirRatchetKey)
      • SessionRecord_InitializeBobSession

        public static long SessionRecord_InitializeBobSession​(long identityKeyPrivate,
                                                              long identityKeyPublic,
                                                              long signedPrekeyPrivate,
                                                              long signedPrekeyPublic,
                                                              long ephPrivate,
                                                              long ephPublic,
                                                              long theirIdentityKey,
                                                              long theirBaseKey)
      • SessionRecord_NeedsPniSignature

        public static boolean SessionRecord_NeedsPniSignature​(long obj)
      • SessionRecord_NewFresh

        public static long SessionRecord_NewFresh()
      • SessionRecord_Serialize

        public static byte[] SessionRecord_Serialize​(long obj)
      • SessionRecord_SetNeedsPniSignature

        public static void SessionRecord_SetNeedsPniSignature​(long s,
                                                              boolean needsPniSignature)
      • SignalMessage_Deserialize

        public static long SignalMessage_Deserialize​(byte[] data)
      • SignalMessage_Destroy

        public static void SignalMessage_Destroy​(long handle)
      • SignalMessage_GetBody

        public static byte[] SignalMessage_GetBody​(long obj)
      • SignalMessage_GetCounter

        public static int SignalMessage_GetCounter​(long obj)
      • SignalMessage_GetMessageVersion

        public static int SignalMessage_GetMessageVersion​(long obj)
      • SignalMessage_GetSenderRatchetKey

        public static long SignalMessage_GetSenderRatchetKey​(long m)
      • SignalMessage_GetSerialized

        public static byte[] SignalMessage_GetSerialized​(long obj)
      • SignalMessage_New

        public static long SignalMessage_New​(int messageVersion,
                                             byte[] macKey,
                                             long senderRatchetKey,
                                             int counter,
                                             int previousCounter,
                                             byte[] ciphertext,
                                             long senderIdentityKey,
                                             long receiverIdentityKey)
      • SignalMessage_VerifyMac

        public static boolean SignalMessage_VerifyMac​(long msg,
                                                      long senderIdentityKey,
                                                      long receiverIdentityKey,
                                                      byte[] macKey)
      • SignedPreKeyRecord_Deserialize

        public static long SignedPreKeyRecord_Deserialize​(byte[] data)
      • SignedPreKeyRecord_Destroy

        public static void SignedPreKeyRecord_Destroy​(long handle)
      • SignedPreKeyRecord_GetId

        public static int SignedPreKeyRecord_GetId​(long obj)
      • SignedPreKeyRecord_GetPrivateKey

        public static long SignedPreKeyRecord_GetPrivateKey​(long obj)
      • SignedPreKeyRecord_GetPublicKey

        public static long SignedPreKeyRecord_GetPublicKey​(long obj)
      • SignedPreKeyRecord_GetSerialized

        public static byte[] SignedPreKeyRecord_GetSerialized​(long obj)
      • SignedPreKeyRecord_GetSignature

        public static byte[] SignedPreKeyRecord_GetSignature​(long obj)
      • SignedPreKeyRecord_GetTimestamp

        public static long SignedPreKeyRecord_GetTimestamp​(long obj)
      • SignedPreKeyRecord_New

        public static long SignedPreKeyRecord_New​(int id,
                                                  long timestamp,
                                                  long pubKey,
                                                  long privKey,
                                                  byte[] signature)
      • UnidentifiedSenderMessageContent_Deserialize

        public static long UnidentifiedSenderMessageContent_Deserialize​(byte[] data)
      • UnidentifiedSenderMessageContent_Destroy

        public static void UnidentifiedSenderMessageContent_Destroy​(long handle)
      • UnidentifiedSenderMessageContent_GetContentHint

        public static int UnidentifiedSenderMessageContent_GetContentHint​(long m)
      • UnidentifiedSenderMessageContent_GetContents

        public static byte[] UnidentifiedSenderMessageContent_GetContents​(long obj)
      • UnidentifiedSenderMessageContent_GetGroupId

        public static byte[] UnidentifiedSenderMessageContent_GetGroupId​(long obj)
      • UnidentifiedSenderMessageContent_GetMsgType

        public static int UnidentifiedSenderMessageContent_GetMsgType​(long m)
      • UnidentifiedSenderMessageContent_GetSenderCert

        public static long UnidentifiedSenderMessageContent_GetSenderCert​(long m)
      • UnidentifiedSenderMessageContent_GetSerialized

        public static byte[] UnidentifiedSenderMessageContent_GetSerialized​(long obj)
      • UnidentifiedSenderMessageContent_New

        public static long UnidentifiedSenderMessageContent_New​(CiphertextMessage message,
                                                                long sender,
                                                                int contentHint,
                                                                byte[] groupId)
      • UuidCiphertext_CheckValidContents

        public static void UuidCiphertext_CheckValidContents​(byte[] obj)