SealdSdkCBindings class
Bindings for c-headers/seald_sdk.h.
Regenerate bindings with dart run ffigen --config ffigen.yaml.
Constructors
- SealdSdkCBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary. -
SealdSdkCBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup.
Properties
- addresses → _SymbolAddresses
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
SealdAccountInfo_Free(
Pointer< NativeSealdAccountInfo> info) → void - SealdAccountInfo_Free is a helper to free a SealdAccountInfo instance and all fields within.
-
SealdActionStatus_Free(
Pointer< NativeSealdActionStatus> d) → void - SealdActionStatus_Free frees the memory allocated for the SealdActionStatus itself, and all fields within.
-
SealdActionStatusArray_Add(
Pointer< NativeSealdActionStatusArray> array, Pointer<NativeSealdActionStatus> d) → void -
SealdActionStatusArray_Add adds a given SealdActionStatus instance to the array.
SealdActionStatusArray_Add takes ownership of the given SealdActionStatus.
The caller must not use it anymore, and must not call
freeon it. -
SealdActionStatusArray_Free(
Pointer< NativeSealdActionStatusArray> array) → void - SealdActionStatusArray_Free frees the memory allocated for the SealdActionStatusArray itself, and all SealdActionStatus instances contained therein.
-
SealdActionStatusArray_Get(
Pointer< NativeSealdActionStatusArray> array, int i) → Pointer<NativeSealdActionStatus> -
SealdActionStatusArray_Get returns a reference to the SealdActionStatus instance at position i.
The caller must not call
freeon it. -
SealdActionStatusArray_New(
) → Pointer< NativeSealdActionStatusArray> - SealdActionStatusArray instantiates a new SealdActionStatusArray.
-
SealdActionStatusArray_Size(
Pointer< NativeSealdActionStatusArray> array) → int - SealdActionStatusArray_Size returns the size of the given SealdActionStatusArray.
-
SealdAnonymousEncryptionSession_DecryptFile(
Pointer< NativeSealdAnonymousEncryptionSession> aes, Pointer<Uint8> encryptedFile, int encryptedFileLen, Pointer<Pointer< result, Pointer<NativeSealdClearFile> >Pointer< error) → intNativeSealdError> > - Decrypts an encrypted file into the corresponding clear-text file.
-
SealdAnonymousEncryptionSession_DecryptFileFromPath(
Pointer< NativeSealdAnonymousEncryptionSession> aes, Pointer<Utf8> encryptedFilePath, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Decrypts an encrypted file into the corresponding clear-text file.
-
SealdAnonymousEncryptionSession_DecryptMessage(
Pointer< NativeSealdAnonymousEncryptionSession> aes, Pointer<Utf8> encryptedMessage, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Decrypt an encrypted message string into the corresponding clear-text string.
-
SealdAnonymousEncryptionSession_EncryptFile(
Pointer< NativeSealdAnonymousEncryptionSession> aes, Pointer<Uint8> clearFile, int clearFileLen, Pointer<Utf8> filename, Pointer<Pointer< result, Pointer<Uint8> >Int> resultLen, Pointer<Pointer< error) → intNativeSealdError> > - Encrypt a clear-text file into an encrypted file, for the recipients of this session.
-
SealdAnonymousEncryptionSession_EncryptFileFromPath(
Pointer< NativeSealdAnonymousEncryptionSession> aes, Pointer<Utf8> clearFilePath, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Encrypt a clear-text file into an encrypted file, for the recipients of this session.
-
SealdAnonymousEncryptionSession_EncryptMessage(
Pointer< NativeSealdAnonymousEncryptionSession> aes, Pointer<Utf8> clearMessage, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Encrypt a clear-text string into an encrypted message, for the recipients of this session.
-
SealdAnonymousEncryptionSession_Free(
Pointer< NativeSealdAnonymousEncryptionSession> aes) → void - SealdAnonymousEncryptionSession_Free frees the memory allocated for the SealdAnonymousEncryptionSession_Free.
-
SealdAnonymousEncryptionSession_Id(
Pointer< NativeSealdAnonymousEncryptionSession> aes) → Pointer<Utf8> - SealdAnonymousEncryptionSession_Id returns the session ID of this anonymous encryption session.
-
SealdAnonymousEncryptionSession_Serialize(
Pointer< NativeSealdAnonymousEncryptionSession> aes, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Serialize the SealdAnonymousEncryptionSession to a string. This is for advanced use. May be used to keep sessions in a cache. WARNING: a user could use this cache to work around being revoked. Use with caution. WARNING: if the cache is accessible to another user, they could use it to decrypt messages they are not supposed to have access to. Make sure only the current user in question can access this cache, for example by encrypting it.
-
SealdAnonymousSdk_Close(
Pointer< NativeSealdAnonymousSdk> sealdAnonymousSdk) → void - Close the current anonymous SDK instance. This frees the memory. After calling close, the instance cannot be used anymore.
-
SealdAnonymousSdk_CreateAnonymousEncryptionSession(
Pointer< NativeSealdAnonymousSdk> sealdAnonymousSdk, Pointer<Utf8> encryptionToken, Pointer<Utf8> getKeysToken, Pointer<NativeSealdStringArray> recipients, Pointer<NativeSealdAnonymousTmrRecipientsArray> tmrRecipients, Pointer<Pointer< result, Pointer<NativeSealdAnonymousEncryptionSession> >Pointer< error) → intNativeSealdError> > - Create an anonymous encryption session, and returns the associated SealdAnonymousEncryptionSession instance, with which you can then encrypt / decrypt multiple messages.
-
SealdAnonymousSdk_CreateAnonymousSDK(
Pointer< NativeSealdAnonymousInitializeOptions> options, Pointer<Pointer< result) → voidNativeSealdAnonymousSdk> > - Initialize a Seald anonyous SDK Instance.
-
SealdAnonymousSdk_DeserializeAnonymousEncryptionSession(
Pointer< NativeSealdAnonymousSdk> sealdAnonymousSdk, Pointer<Utf8> serializedSession, Pointer<Pointer< result, Pointer<NativeSealdAnonymousEncryptionSession> >Pointer< error) → intNativeSealdError> > - Deserialize a serialized session. For advanced use.
-
SealdAnonymousTmrRecipientsArray_Add(
Pointer< NativeSealdAnonymousTmrRecipientsArray> array, Pointer<Utf8> authFactorType, Pointer<Utf8> authFactorValue, Pointer<Uint8> overEncryptionKey, int overEncryptionKeyLen) → void - SealdAnonymousTmrRecipientsArray_Add adds a tmr recipient to the array. SealdAnonymousTmrRecipientsArray_Add does not take ownership of the given strings and booleans. It creates copies for itself.
-
SealdAnonymousTmrRecipientsArray_Free(
Pointer< NativeSealdAnonymousTmrRecipientsArray> array) → void - SealdAnonymousTmrRecipientsArray_Free frees the memory allocated for the SealdAnonymousTmrRecipientsArray itself, and all SealdAnonymousTmrRecipients contained therein.
-
SealdAnonymousTmrRecipientsArray_Get(
Pointer< NativeSealdAnonymousTmrRecipientsArray> array, int i, Pointer<Pointer< authFactorType, Pointer<Utf8> >Pointer< authFactorValue, Pointer<Utf8> >Pointer< overEncryptionKey, Pointer<Uint8> >Int> overEncryptionKeyLen, Pointer<Int> recipientRightRead, Pointer<Int> recipientRightForward, Pointer<Int> recipientRightRevoke) → void -
SealdAnonymousTmrRecipientsArray_Get returns the TMR recipient at position i.
The caller is responsible for calling
freeon the returned char** when no longer necessary. -
SealdAnonymousTmrRecipientsArray_New(
) → Pointer< NativeSealdAnonymousTmrRecipientsArray> - SealdAnonymousTmrRecipientsArray_New instantiates a new SealdAnonymousTmrRecipientsArray.
-
SealdAnonymousTmrRecipientsArray_Size(
Pointer< NativeSealdAnonymousTmrRecipientsArray> array) → int - SealdAnonymousTmrRecipientsArray_Size returns the size of the given SealdAnonymousTmrRecipientsArray.
-
SealdAuthFactorArray_Add(
Pointer< NativeSealdAuthFactorArray> array, Pointer<Utf8> authFactorType, Pointer<Utf8> authFactorValue) → void - SealdAuthFactorArray_Add adds a given string to the array. SealdAuthFactorArray_Add does not take ownership of the given strings. It creates a copy for itself.
-
SealdAuthFactorArray_Free(
Pointer< NativeSealdAuthFactorArray> array) → void - SealdAuthFactorArray_Free frees the memory allocated for the SealdAuthFactorArray itself, and all strings contained therein.
-
SealdAuthFactorArray_Get(
Pointer< NativeSealdAuthFactorArray> array, int i, Pointer<Pointer< authFactorType, Pointer<Utf8> >Pointer< authFactorValue) → voidUtf8> > -
SealdAuthFactorArray_Get returns the string at position i.
The caller is responsible for calling
freeon this returned string when no longer necessary. -
SealdAuthFactorArray_New(
) → Pointer< NativeSealdAuthFactorArray> - SealdAuthFactorArray instantiates a new SealdAuthFactorArray.
-
SealdAuthFactorArray_Size(
Pointer< NativeSealdAuthFactorArray> array) → int - SealdAuthFactorArray_Size returns the size of the given SealdAuthFactorArray.
-
SealdClearFile_Free(
Pointer< NativeSealdClearFile> cf) → void - SealdClearFile_Free is a helper to free a SealdClearFile instance and all fields within.
-
SealdConnector_Free(
Pointer< NativeSealdConnector> c) → void - SealdConnector_Free is a helper to free a SealdConnector instance and all fields within.
-
SealdConnectorsArray_Add(
Pointer< NativeSealdConnectorsArray> array, Pointer<NativeSealdConnector> c) → void -
SealdConnectorsArray_Add adds a given SealdConnector instance to the array.
SealdConnectorsArray_Add takes ownership of the given SealdConnector.
The caller must not use it anymore, and must not call
freeon it. -
SealdConnectorsArray_Free(
Pointer< NativeSealdConnectorsArray> array) → void - SealdConnectorsArray_Free frees the memory allocated for the SealdConnectorsArray itself, and all SealdConnector instances contained therein.
-
SealdConnectorsArray_Get(
Pointer< NativeSealdConnectorsArray> array, int i) → Pointer<NativeSealdConnector> -
SealdConnectorsArray_Get returns a reference to the SealdConnector instance at position i.
The caller must not call
freeon it. -
SealdConnectorsArray_New(
) → Pointer< NativeSealdConnectorsArray> - SealdConnectorsArray_New instantiates a new SealdConnectorsArray.
-
SealdConnectorsArray_Size(
Pointer< NativeSealdConnectorsArray> array) → int - SealdConnectorsArray_Size returns the size of the given SealdConnectorsArray.
-
SealdConnectorTypeValueArray_Add(
Pointer< NativeSealdConnectorTypeValueArray> array, Pointer<Utf8> connectorType, Pointer<Utf8> connectorValue) → void - SealdConnectorTypeValueArray_Add adds a given connector type-value pair to the array. SealdConnectorTypeValueArray_Add does not take ownership of the given strings. It creates copies for itself.
-
SealdConnectorTypeValueArray_Free(
Pointer< NativeSealdConnectorTypeValueArray> array) → void - SealdConnectorTypeValueArray_Free frees the memory allocated for the SealdConnectorTypeValueArray itself, and all connector type-value pairs contained therein.
-
SealdConnectorTypeValueArray_Get(
Pointer< NativeSealdConnectorTypeValueArray> array, int i, Pointer<Pointer< connectorType, Pointer<Utf8> >Pointer< connectorValue) → voidUtf8> > -
SealdConnectorTypeValueArray_Get returns the connector type-value pair at position i.
The caller is responsible for calling
freeon the returned type and value when no longer necessary. -
SealdConnectorTypeValueArray_New(
) → Pointer< NativeSealdConnectorTypeValueArray> - SealdConnectorTypeValueArray_New instantiates a new SealdConnectorTypeValueArray.
-
SealdConnectorTypeValueArray_Size(
Pointer< NativeSealdConnectorTypeValueArray> array) → int - SealdConnectorTypeValueArray_Size returns the size of the given SealdConnectorTypeValueArray.
-
SealdConvertTmrAccessesResult_Free(
Pointer< NativeSealdConvertTmrAccessesResult> result) → void - SealdConvertTmrAccessesResult_Free is a helper to free a SealdConvertTmrAccessesResult instance and all fields within.
-
SealdCreateSubIdentityResponse_Free(
Pointer< NativeSealdCreateSubIdentityResponse> resp) → void - SealdCreateSubIdentityResponse_Free is a helper to free a SealdCreateSubIdentityResponse instance and all fields within.
-
SealdDeviceMissingKeys_Free(
Pointer< NativeSealdDeviceMissingKeys> d) → void - SealdDeviceMissingKeys_Free frees the memory allocated for the SealdDeviceMissingKeys itself, and all fields within.
-
SealdDeviceMissingKeysArray_Add(
Pointer< NativeSealdDeviceMissingKeysArray> array, Pointer<NativeSealdDeviceMissingKeys> d) → void -
SealdDeviceMissingKeysArray_Add adds a given SealdDeviceMissingKeys instance to the array.
SealdDeviceMissingKeysArray_Add takes ownership of the given SealdDeviceMissingKeys.
The caller must not use it anymore, and must not call
freeon it. -
SealdDeviceMissingKeysArray_Free(
Pointer< NativeSealdDeviceMissingKeysArray> array) → void - SealdDeviceMissingKeysArray_Free frees the memory allocated for the SealdDeviceMissingKeysArray itself, and all SealdDeviceMissingKeys instances contained therein.
-
SealdDeviceMissingKeysArray_Get(
Pointer< NativeSealdDeviceMissingKeysArray> array, int i) → Pointer<NativeSealdDeviceMissingKeys> -
SealdDeviceMissingKeysArray_Get returns a reference to the SealdDeviceMissingKeys instance at position i.
The caller must not call
freeon it. -
SealdDeviceMissingKeysArray_New(
) → Pointer< NativeSealdDeviceMissingKeysArray> - SealdDeviceMissingKeysArray_New instantiates a new SealdDeviceMissingKeysArray.
-
SealdDeviceMissingKeysArray_Size(
Pointer< NativeSealdDeviceMissingKeysArray> array) → int - SealdDeviceMissingKeysArray_Size returns the size of the given SealdDeviceMissingKeysArray.
-
SealdEncryptionSession_AddMultipleTmrAccesses(
Pointer< NativeSealdEncryptionSession> es, Pointer<NativeSealdTmrRecipientsWithRightsArray> recipients, Pointer<Pointer< result, Pointer<NativeSealdActionStatusArray> >Pointer< error) → intNativeSealdError> > - Add multiple TMR accesses to this session for the given authentication factors.
-
SealdEncryptionSession_AddProxySession(
Pointer< NativeSealdEncryptionSession> es, Pointer<Utf8> proxySessionId, int readRight, int forwardRight, int revokeRight, Pointer<Pointer< error) → intNativeSealdError> > - Add a proxy session as a recipient of this session. Any recipient of the proxy session will also be able to retrieve this session. The current user has to be a direct recipient of the proxy session.
-
SealdEncryptionSession_AddRecipients(
Pointer< NativeSealdEncryptionSession> es, Pointer<NativeSealdRecipientsWithRightsArray> recipients, Pointer<Pointer< result, Pointer<NativeSealdActionStatusArray> >Pointer< error) → intNativeSealdError> > - Add new recipients to this session. These recipients will be able to read all encrypted messages of this session.
-
SealdEncryptionSession_AddTmrAccess(
Pointer< NativeSealdEncryptionSession> es, Pointer<Utf8> authFactorType, Pointer<Utf8> authFactorValue, Pointer<Uint8> overEncryptionKey, int overEncryptionKeyLen, int readRight, int forwardRight, int revokeRight, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Add a TMR access to this session for the given authentication factor.
-
SealdEncryptionSession_DecryptFile(
Pointer< NativeSealdEncryptionSession> es, Pointer<Uint8> encryptedFile, int encryptedFileLen, Pointer<Pointer< result, Pointer<NativeSealdClearFile> >Pointer< error) → intNativeSealdError> > - Decrypts an encrypted file into the corresponding clear-text file.
-
SealdEncryptionSession_DecryptFileFromPath(
Pointer< NativeSealdEncryptionSession> es, Pointer<Utf8> encryptedFilePath, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Decrypts an encrypted file into the corresponding clear-text file.
-
SealdEncryptionSession_DecryptMessage(
Pointer< NativeSealdEncryptionSession> es, Pointer<Utf8> encryptedMessage, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Decrypt an encrypted message string into the corresponding clear-text string.
-
SealdEncryptionSession_EncryptFile(
Pointer< NativeSealdEncryptionSession> es, Pointer<Uint8> clearFile, int clearFileLen, Pointer<Utf8> filename, Pointer<Pointer< result, Pointer<Uint8> >Int> resultLen, Pointer<Pointer< error) → intNativeSealdError> > - Encrypt a clear-text file into an encrypted file, for the recipients of this session.
-
SealdEncryptionSession_EncryptFileFromPath(
Pointer< NativeSealdEncryptionSession> es, Pointer<Utf8> clearFilePath, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Encrypt a clear-text file into an encrypted file, for the recipients of this session.
-
SealdEncryptionSession_EncryptMessage(
Pointer< NativeSealdEncryptionSession> es, Pointer<Utf8> clearMessage, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Encrypt a clear-text string into an encrypted message, for the recipients of this session.
-
SealdEncryptionSession_Free(
Pointer< NativeSealdEncryptionSession> es) → void - SealdEncryptionSession_Free frees the memory allocated for the SealdEncryptionSession.
-
SealdEncryptionSession_Id(
Pointer< NativeSealdEncryptionSession> es) → Pointer<Utf8> - SealdEncryptionSession_Id returns the session ID of this encryption session.
-
SealdEncryptionSession_ListRecipients(
Pointer< NativeSealdEncryptionSession> es, Pointer<Pointer< result, Pointer<NativeSealdRecipientsList> >Pointer< error) → intNativeSealdError> > - List all recipients from this session.
-
SealdEncryptionSession_RetrievalDetails(
Pointer< NativeSealdEncryptionSession> es) → Pointer<NativeSealdEncryptionSessionRetrievalDetails> - SealdEncryptionSession_RetrievalDetails returns the retrieval details of this encryption session.
-
SealdEncryptionSession_RevokeAll(
Pointer< NativeSealdEncryptionSession> es, Pointer<Pointer< result, Pointer<NativeSealdRevokeResult> >Pointer< error) → intNativeSealdError> > - Revoke this session entirely.
-
SealdEncryptionSession_RevokeOthers(
Pointer< NativeSealdEncryptionSession> es, Pointer<Pointer< result, Pointer<NativeSealdRevokeResult> >Pointer< error) → intNativeSealdError> > - Revoke all recipients besides yourself from this session.
-
SealdEncryptionSession_RevokeRecipients(
Pointer< NativeSealdEncryptionSession> es, Pointer<NativeSealdStringArray> recipientsIds, Pointer<NativeSealdStringArray> proxySessionsIds, Pointer<NativeSealdStringArray> symEncKeysIds, Pointer<NativeSealdStringArray> tmrAccessIds, Pointer<NativeSealdAuthFactorArray> tmrAccessAuthFactors, Pointer<Pointer< result, Pointer<NativeSealdRevokeResult> >Pointer< error) → intNativeSealdError> > - Revoke some recipients or proxy sessions from this session. If you want to revoke all recipients, see SealdEncryptionSession_RevokeAll instead. If you want to revoke all recipients besides yourself, see SealdEncryptionSession_RevokeOthers.
-
SealdEncryptionSession_Serialize(
Pointer< NativeSealdEncryptionSession> es, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Serialize the EncryptionSession to a string. This is for advanced use. May be used to keep sessions in a cache. WARNING: a user could use this cache to work around being revoked. Use with caution. WARNING: if the cache is accessible to another user, they could use it to decrypt messages they are not supposed to have access to. Make sure only the current user in question can access this cache, for example by encrypting it.
-
SealdEncryptionSessionArray_Add(
Pointer< NativeSealdEncryptionSessionArray> array, Pointer<NativeSealdEncryptionSession> es) → void - SealdEncryptionSessionArray_Add adds an encryption session to the array.
-
SealdEncryptionSessionArray_Free(
Pointer< NativeSealdEncryptionSessionArray> array) → void - SealdEncryptionSessionArray_Free frees the memory allocated for the SealdEncryptionSessionArray itself.
-
SealdEncryptionSessionArray_Get(
Pointer< NativeSealdEncryptionSessionArray> array, int i) → Pointer<NativeSealdEncryptionSession> -
SealdEncryptionSessionArray_Get returns the encryption session at position i.
The caller is responsible for calling
SealdEncryptionSession_Freeon the returned SealdEncryptionSession* when no longer necessary. -
SealdEncryptionSessionArray_New(
) → Pointer< NativeSealdEncryptionSessionArray> - SealdEncryptionSessionArray_New instantiates a new SealdEncryptionSessionArray.
-
SealdEncryptionSessionArray_Size(
Pointer< NativeSealdEncryptionSessionArray> array) → int - SealdEncryptionSessionArray_Size returns the size of the given SealdEncryptionSessionArray.
-
SealdEncryptionSessionRetrievalDetails_Free(
Pointer< NativeSealdEncryptionSessionRetrievalDetails> details) → void - SealdEncryptionSessionRetrievalDetails_Free frees the memory allocated for the SealdEncryptionSessionRetrievalDetails itself, and all its fields.
-
SealdError_Free(
Pointer< NativeSealdError> err) → void - SealdError_Free frees the memory allocated for the SealdError and all its fields.
-
SealdGetSigchainResponse_Free(
Pointer< NativeSealdGetSigchainResponse> sigchainInfo) → void - SealdGetSigchainResponse_Free frees the memory allocated for the SealdGetSigchainResponse itself, and all its fields.
-
SealdGroupTMRTemporaryKey_Free(
Pointer< NativeSealdGroupTMRTemporaryKey> c) → void - SealdGroupTMRTemporaryKey_Free is a helper to free a SealdGroupTMRTemporaryKey instance and all fields within.
-
SealdGroupTMRTemporaryKeysArray_Add(
Pointer< NativeSealdGroupTMRTemporaryKeysArray> array, Pointer<NativeSealdGroupTMRTemporaryKey> gtmrtk) → void -
SealdGroupTMRTemporaryKeysArray_Add adds a given SealdGroupTMRTemporaryKey instance to the array.
SealdGroupTMRTemporaryKeysArray_Add takes ownership of the given SealdGroupTMRTemporaryKey.
The caller must not use it anymore, and must not call
freeon it. -
SealdGroupTMRTemporaryKeysArray_Free(
Pointer< NativeSealdGroupTMRTemporaryKeysArray> array) → void - SealdGroupTMRTemporaryKeysArray_Free frees the memory allocated for the SealdGroupTMRTemporaryKeysArray itself, and all SealdGroupTMRTemporaryKey instances contained therein.
-
SealdGroupTMRTemporaryKeysArray_Get(
Pointer< NativeSealdGroupTMRTemporaryKeysArray> array, int i) → Pointer<NativeSealdGroupTMRTemporaryKey> -
SealdGroupTMRTemporaryKeysArray_Get returns a reference to the SealdGroupTMRTemporaryKey instance at position i.
The caller must not call
freeon it. -
SealdGroupTMRTemporaryKeysArray_New(
) → Pointer< NativeSealdGroupTMRTemporaryKeysArray> - SealdGroupTMRTemporaryKeysArray_New instantiates a new SealdGroupTMRTemporaryKeysArray.
-
SealdGroupTMRTemporaryKeysArray_Size(
Pointer< NativeSealdGroupTMRTemporaryKeysArray> array) → int - SealdGroupTMRTemporaryKeysArray_Size returns the size of the given SealdGroupTMRTemporaryKeysArray.
-
SealdMassReencryptOptions_Defaults(
) → NativeSealdMassReencryptOptions - Initialize a SealdMassReencryptOptions instance with default values.
-
SealdPreValidationToken_Free(
Pointer< NativeSealdPreValidationToken> t) → void - SealdPreValidationToken_Free is a helper to free a SealdPreValidationToken instance and all fields within.
-
SealdProxySession_Free(
Pointer< NativeSealdProxySession> ps) → void - SealdProxySession_Free frees the memory allocated for the SealdProxySession itself, and all fields within.
-
SealdProxySessionArray_Add(
Pointer< NativeSealdProxySessionArray> array, Pointer<NativeSealdProxySession> d) → void -
SealdProxySessionArray_Add adds a given SealdProxySession instance to the array.
SealdProxySessionArray_Add takes ownership of the given SealdProxySession.
The caller must not use it anymore, and must not call
freeon it. -
SealdProxySessionArray_Free(
Pointer< NativeSealdProxySessionArray> array) → void - SealdProxySessionArray_Free frees the memory allocated for the SealdProxySessionArray itself, and all SealdProxySession instances contained therein.
-
SealdProxySessionArray_Get(
Pointer< NativeSealdProxySessionArray> array, int i) → Pointer<NativeSealdProxySession> -
SealdProxySessionArray_Get returns a reference to the SealdProxySession instance at position i.
The caller must not call
freeon it. -
SealdProxySessionArray_New(
) → Pointer< NativeSealdProxySessionArray> - SealdProxySessionArray instantiates a new SealdProxySessionArray.
-
SealdProxySessionArray_Size(
Pointer< NativeSealdProxySessionArray> array) → int - SealdProxySessionArray_Size returns the size of the given SealdProxySessionArray.
-
SealdRecipientsList_Free(
Pointer< NativeSealdRecipientsList> lr) → void - SealdRecipientsList_Free frees the memory allocated for the SealdRecipientsList itself, and all fields within.
-
SealdRecipientsWithRightsArray_Add(
Pointer< NativeSealdRecipientsWithRightsArray> array, Pointer<Utf8> sealdId, int readRight, int forwardRight, int revokeRight) → void - SealdRecipientsWithRightsArray_Add adds a recipient with its associated rights to the array. SealdRecipientsWithRightsArray_Add does not take ownership of the given strings and booleans. It creates copies for itself.
-
SealdRecipientsWithRightsArray_AddWithDefaultRights(
Pointer< NativeSealdRecipientsWithRightsArray> array, Pointer<Utf8> sealdId) → void - SealdRecipientsWithRightsArray_AddWithDefaultRights adds a recipient with default rights. Default rights are: read: true, forward: true, revoke: false Default rights for the current user when creating an encryptionSession are read: true, forward: true, revoke: true
-
SealdRecipientsWithRightsArray_Free(
Pointer< NativeSealdRecipientsWithRightsArray> array) → void - SealdRecipientsWithRightsArray_Free frees the memory allocated for the SealdRecipientsWithRightsArray itself, and all SealdRecipientsWithRights contained therein.
-
SealdRecipientsWithRightsArray_Get(
Pointer< NativeSealdRecipientsWithRightsArray> array, int i, Pointer<Pointer< recipientId, Pointer<Utf8> >Int> recipientRightRead, Pointer<Int> recipientRightForward, Pointer<Int> recipientRightRevoke) → void -
SealdRecipientsWithRightsArray_Get returns the user and its associated rights at position i.
For rights, returns -1 if rights are not set (using default rights).
The caller is responsible for calling
freeon the returned recipientId when no longer necessary. -
SealdRecipientsWithRightsArray_New(
) → Pointer< NativeSealdRecipientsWithRightsArray> - SealdRecipientsWithRightsArray_New instantiates a new SealdRecipientsWithRightsArray.
-
SealdRecipientsWithRightsArray_Size(
Pointer< NativeSealdRecipientsWithRightsArray> array) → int - SealdRecipientsWithRightsArray_Size returns the size of the given SealdRecipientsWithRightsArray.
-
SealdRevokeResult_Free(
Pointer< NativeSealdRevokeResult> d) → void - SealdRevokeResult_Free frees the memory allocated for the SealdRevokeResult itself, and all fields within.
-
SealdSdk_AddConnector(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> value, Pointer<Utf8> connectorType, Pointer<NativeSealdPreValidationToken> preValidationToken, Pointer<Pointer< result, Pointer<NativeSealdConnector> >Pointer< error) → intNativeSealdError> > - Add a connector to the current identity. If no preValidationToken is given, the connector will need to be validated before use.
-
SealdSdk_AddGroupMembers(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> groupId, Pointer<NativeSealdStringArray> membersToAdd, Pointer<NativeSealdStringArray> adminsToSet, Pointer<Pointer< error) → intNativeSealdError> > - Add members to a group. Can only be done by a group administrator. Can also specify which of these newly added group members should also be admins.
-
SealdSdk_CheckSigchainHash(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> userId, Pointer<Utf8> expectedHash, int position, Pointer<Pointer< result, Pointer<NativeSealdCheckSigchainResponse> >Pointer< error) → intNativeSealdError> > -
Verify if a given hash is included in the recipient's sigchain. Use the
positionoption to check the hash of a specific sigchain transaction. -
SealdSdk_Close(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Pointer< error) → intNativeSealdError> > - Close the current SDK instance. This frees any lock on the current database, and frees the memory. After calling close, the instance cannot be used anymore.
-
SealdSdk_ConvertGroupTMRTemporaryKey(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> groupId, Pointer<Utf8> temporaryKeyId, Pointer<Utf8> tmrJWT, Pointer<Uint8> rawOverEncryptionKey, int rawOverEncryptionKeyLen, int deleteOnConvert, Pointer<Pointer< error) → intNativeSealdError> > - Convert a group TMR temporary key to become a group member.
-
SealdSdk_ConvertTmrAccesses(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> tmrJWT, Pointer<Uint8> overEncryptionKey, int overEncryptionKeyLen, Pointer<NativeSealdTmrAccessesConvertFilters> conversionFilters, int deleteOnConvert, Pointer<Pointer< result, Pointer<NativeSealdConvertTmrAccessesResult> >Pointer< error) → intNativeSealdError> > -
Convert all TMR Accesses addressed to a given auth factor and matching specified filters to classic message keys.
All TMR accesses matching the specified filters must have been encrypted with the same
overEncryptionKey. -
SealdSdk_CreateAccount(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> displayName, Pointer<Utf8> deviceName, Pointer<Utf8> signupJwt, int expireAfter, Pointer<Utf8> preGeneratedEncryptionKey, Pointer<Utf8> preGeneratedSigningKey, Pointer<Pointer< result, Pointer<NativeSealdAccountInfo> >Pointer< error) → intNativeSealdError> > - Create a new Seald SDK Account for this Seald SDK instance. This function can only be called if the current SDK instance does not have an account yet.
-
SealdSdk_CreateEncryptionSession(
Pointer< NativeSealdSdk> sealdSdk, Pointer<NativeSealdRecipientsWithRightsArray> recipients, Pointer<Utf8> metadata, int useCache, Pointer<Pointer< result, Pointer<NativeSealdEncryptionSession> >Pointer< error) → intNativeSealdError> > -
Create an encryption session, and returns the associated SealdEncryptionSession instance,
with which you can then encrypt / decrypt multiple messages.
Warning : if you want to be able to retrieve the session later,
you must put your own Seald ID in the
recipientsargument. -
SealdSdk_CreateGroup(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> groupName, Pointer<NativeSealdStringArray> members, Pointer<NativeSealdStringArray> admins, Pointer<Utf8> preGeneratedEncryptionKey, Pointer<Utf8> preGeneratedSigningKey, Pointer<Pointer< groupId, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > -
Create a group, and returns the created group's ID.
adminsmust also be members.adminsmust include yourself. -
SealdSdk_CreateGroupTMRTemporaryKey(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> groupId, Pointer<Utf8> authFactorType, Pointer<Utf8> authFactorValue, int isAdmin, Pointer<Uint8> rawOverEncryptionKey, int rawOverEncryptionKeyLen, Pointer<Pointer< result, Pointer<NativeSealdGroupTMRTemporaryKey> >Pointer< error) → intNativeSealdError> > - Create a group TMR temporary key, and returns the created SealdGroupTMRTemporaryKey instance.
-
SealdSdk_CreateSubIdentity(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> deviceName, int expireAfter, Pointer<Utf8> preGeneratedEncryptionKey, Pointer<Utf8> preGeneratedSigningKey, Pointer<Pointer< result, Pointer<NativeSealdCreateSubIdentityResponse> >Pointer< error) → intNativeSealdError> > - Create a new sub-identity, or new device, for the current user account. After creating this new device, you will probably want to call SealdSdk_MassReencrypt, so that the newly created device will be able to decrypt EncryptionSessions previously created for this account.
-
SealdSdk_DeleteGroupTMRTemporaryKey(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> groupId, Pointer<Utf8> temporaryKeyId, Pointer<Pointer< error) → intNativeSealdError> > - Delete a group TMR temporary key.
-
SealdSdk_DeserializeEncryptionSession(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> serializedSession, Pointer<Pointer< result, Pointer<NativeSealdEncryptionSession> >Pointer< error) → intNativeSealdError> > - Deserialize a serialized session. For advanced use.
-
SealdSdk_DevicesMissingKeys(
Pointer< NativeSealdSdk> sealdSdk, int forceLocalAccountUpdate, Pointer<Pointer< result, Pointer<NativeSealdDeviceMissingKeysArray> >Pointer< error) → intNativeSealdError> > - List which of the devices of the current account are missing keys, so you can call SealdSdk_MassReencrypt for them.
-
SealdSdk_ExportIdentity(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Pointer< result, Pointer<Uint8> >Int> resultLen, Pointer<Pointer< error) → intNativeSealdError> > - Export the current device as an identity export.
-
SealdSdk_GetConnectorsFromSealdId(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> sealdId, Pointer<Pointer< result, Pointer<NativeSealdConnectorsArray> >Pointer< error) → intNativeSealdError> > - List all connectors known locally for a given Seald ID.
-
SealdSdk_GetCurrentAccountInfo(
Pointer< NativeSealdSdk> sealdSdk) → Pointer<NativeSealdAccountInfo> -
Return information about the current account, or
NULLif there is none. -
SealdSdk_GetSealdIdsFromConnectors(
Pointer< NativeSealdSdk> sealdSdk, Pointer<NativeSealdConnectorTypeValueArray> connectorTypeValues, Pointer<Pointer< result, Pointer<NativeSealdStringArray> >Pointer< error) → intNativeSealdError> > - Get all the info for the given connectors to look for, updates the local cache of connectors, and returns a SealdStringArray with the corresponding SealdIds. SealdIds are not de-duped and can appear for multiple connector values. If one of the connectors is not assigned to a Seald user, this will return a ErrorGetSealdIdsUnknownConnector error, with the details of the missing connector.
-
SealdSdk_GetSigchainHash(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> userId, int position, Pointer<Pointer< result, Pointer<NativeSealdGetSigchainResponse> >Pointer< error) → intNativeSealdError> > -
Get a user's sigchain transaction hash at index
position. -
SealdSdk_Heartbeat(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Pointer< error) → intNativeSealdError> > - Just call the Seald server, without doing anything. This may be used for example to verify that the current instance has a valid identity.
-
SealdSdk_ImportIdentity(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Uint8> identity, int identityLen, Pointer<Pointer< error) → intNativeSealdError> > - Load an identity export into the current SDK instance. This function can only be called if the current SDK instance does not have an account yet.
-
SealdSdk_Initialize(
Pointer< NativeSealdInitializeOptions> options, Pointer<Pointer< result, Pointer<NativeSealdSdk> >Pointer< error) → intNativeSealdError> > - Initialize a Seald SDK Instance.
-
SealdSdk_ListConnectors(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Pointer< result, Pointer<NativeSealdConnectorsArray> >Pointer< error) → intNativeSealdError> > - List connectors associated to the current account.
-
SealdSdk_ListGroupTMRTemporaryKeys(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> groupId, int page, int all, Pointer<Int> nbPageFound, Pointer<Pointer< result, Pointer<NativeSealdGroupTMRTemporaryKeysArray> >Pointer< error) → intNativeSealdError> > - List group TMR temporary keys.
-
SealdSdk_MassReencrypt(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> deviceId, NativeSealdMassReencryptOptions options, Pointer<NativeSealdMassReencryptResponse> result, Pointer<Pointer< error) → intNativeSealdError> > - Retrieve, re-encrypt, and add missing keys for a certain device.
-
SealdSdk_PrepareRenew(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> preGeneratedEncryptionKey, Pointer<Utf8> preGeneratedSigningKey, Pointer<Pointer< result, Pointer<Uint8> >Int> resultLen, Pointer<Pointer< error) → intNativeSealdError> > - Prepare a private key renewal, so it can be stored on SSKS without risk of loss during the actual renew.
-
SealdSdk_PushJWT(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> jwt, Pointer<Pointer< error) → intNativeSealdError> > - Push a given JWT to the Seald server, for example to add a connector to the current account.
-
SealdSdk_RemoveConnector(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> connectorId, Pointer<Pointer< result, Pointer<NativeSealdConnector> >Pointer< error) → intNativeSealdError> > - Remove a connector belonging to the current account.
-
SealdSdk_RemoveGroupMembers(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> groupId, Pointer<NativeSealdStringArray> membersToRemove, Pointer<Pointer< error) → intNativeSealdError> > - Remove members from the group. Can only be done by a group administrator. You should call SealdSdk_RenewGroupKey() after this.
-
SealdSdk_RenewGroupKey(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> groupId, Pointer<Utf8> preGeneratedEncryptionKey, Pointer<Utf8> preGeneratedSigningKey, Pointer<Pointer< error) → intNativeSealdError> > - Renew the group's private key. Can only be done by a group administrator. Should be called after removing members from the group.
-
SealdSdk_RenewKeys(
Pointer< NativeSealdSdk> sealdSdk, int keyExpireAfter, Pointer<Utf8> preGeneratedEncryptionKey, Pointer<Utf8> preGeneratedSigningKey, Pointer<Uint8> preparedRenewal, int preparedRenewalLen, Pointer<Pointer< error) → intNativeSealdError> > - Renew the keys of the current device, extending their validity. If the current device has expired, you will need to call SealdSdk_RenewKeys before you are able to do anything else. Warning: if the identity of the current device is stored externally, for example on SSKS, you will want to re-export it and store it again, otherwise the previously stored identity will not be recognized anymore.
-
SealdSdk_RetrieveConnector(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> connectorId, Pointer<Pointer< result, Pointer<NativeSealdConnector> >Pointer< error) → intNativeSealdError> > -
Retrieve a connector by its
connectorId, then updates the local cache of connectors. -
SealdSdk_RetrieveEncryptionSession(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> messageId, int useCache, int lookupProxyKey, int lookupGroupKey, Pointer<Pointer< result, Pointer<NativeSealdEncryptionSession> >Pointer< error) → intNativeSealdError> > -
Retrieve an encryption session with the
messageId, and returns the associated SealdEncryptionSession instance, with which you can then encrypt / decrypt multiple messages. -
SealdSdk_RetrieveEncryptionSessionByTmr(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> tmrJWT, Pointer<Utf8> sessionId, Pointer<Uint8> overEncryptionKey, int overEncryptionKeyLen, Pointer<NativeSealdTmrAccessesRetrievalFilters> tmrAccessesRetrievalFilters, int tryIfMultiple, int useCache, Pointer<Pointer< result, Pointer<NativeSealdEncryptionSession> >Pointer< error) → intNativeSealdError> > - Retrieve an encryption session with a TMR access JWT.
-
SealdSdk_RetrieveEncryptionSessionFromBytes(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Uint8> fileBytes, int fileBytesLen, int useCache, int lookupProxyKey, int lookupGroupKey, Pointer<Pointer< result, Pointer<NativeSealdEncryptionSession> >Pointer< error) → intNativeSealdError> > - Retrieve an encryption session from bytes, and returns the associated SealdEncryptionSession instance, with which you can then encrypt / decrypt multiple messages.
-
SealdSdk_RetrieveEncryptionSessionFromFile(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> filePath, int useCache, int lookupProxyKey, int lookupGroupKey, Pointer<Pointer< result, Pointer<NativeSealdEncryptionSession> >Pointer< error) → intNativeSealdError> > - Retrieve an encryption session from a file path, and returns the associated SealdEncryptionSession instance, with which you can then encrypt / decrypt multiple messages.
-
SealdSdk_RetrieveEncryptionSessionFromMessage(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> message, int useCache, int lookupProxyKey, int lookupGroupKey, Pointer<Pointer< result, Pointer<NativeSealdEncryptionSession> >Pointer< error) → intNativeSealdError> > - Retrieve an encryption session from a Seald message, and returns the associated SealdEncryptionSession instance, with which you can then encrypt / decrypt multiple messages.
-
SealdSdk_RetrieveMultipleEncryptionSessions(
Pointer< NativeSealdSdk> sealdSdk, Pointer<NativeSealdStringArray> sessionIds, int useCache, int lookupProxyKey, int lookupGroupKey, Pointer<Pointer< result, Pointer<NativeSealdEncryptionSessionArray> >Pointer< error) → intNativeSealdError> > - Retrieve multiple encryption sessions with a SealdStringArray of sessionIds, and return a SealdEncryptionSessionArray of the associated EncryptionSession instances, with which you can then encrypt / decrypt multiple messages. The returned array of EncryptionSession instances is in the same order as the input array.
-
SealdSdk_SearchGroupTMRTemporaryKeys(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> tmrJWT, Pointer<NativeSealdSearchGroupTMRTemporaryKeysOpts> opts, Pointer<Int> nbPageFound, Pointer<Pointer< keysList, Pointer<NativeSealdGroupTMRTemporaryKeysArray> >Pointer< error) → intNativeSealdError> > - Search group TMR temporary keys that can be used with the TMR JWT.
-
SealdSdk_SetGroupAdmins(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> groupId, Pointer<NativeSealdStringArray> addToAdmins, Pointer<NativeSealdStringArray> removeFromAdmins, Pointer<Pointer< error) → intNativeSealdError> > - Add some existing group members to the group admins, and/or removes admin status from some existing group admins. Can only be done by a group administrator.
-
SealdSdk_ShouldRenewGroup(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> groupId, Pointer<Int> result, Pointer<Pointer< error) → intNativeSealdError> > -
ShouldRenewGroup returns a boolean that indicates whether or not this group should be renewed.
The result is
1if the group expires in less than 6 months,0otherwise. -
SealdSdk_UpdateCurrentDevice(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Pointer< error) → intNativeSealdError> > - Updates the locally known information about the current device.
-
SealdSdk_ValidateConnector(
Pointer< NativeSealdSdk> sealdSdk, Pointer<Utf8> connectorId, Pointer<Utf8> challenge, Pointer<Pointer< result, Pointer<NativeSealdConnector> >Pointer< error) → intNativeSealdError> > - Validate an added connector that was added without a preValidationToken.
-
SealdSdk_Version(
) → Pointer< Utf8> - The version of the Seald SDK.
-
SealdSealdRecipient_Free(
Pointer< NativeSealdSealdRecipient> ssr) → void - SealdSealdRecipient_Free frees the memory allocated for the SealdSealdRecipient itself, and all fields within.
-
SealdSealdRecipientArray_Add(
Pointer< NativeSealdSealdRecipientArray> array, Pointer<NativeSealdSealdRecipient> d) → void -
SealdSealdRecipientArray_Add adds a given SealdSealdRecipient instance to the array.
SealdSealdRecipientArray_Add takes ownership of the given SealdSealdRecipient.
The caller must not use it anymore, and must not call
freeon it. -
SealdSealdRecipientArray_Free(
Pointer< NativeSealdSealdRecipientArray> array) → void - SealdSealdRecipientArray_Free frees the memory allocated for the SealdSealdRecipientArray itself, and all SealdSealdRecipient instances contained therein.
-
SealdSealdRecipientArray_Get(
Pointer< NativeSealdSealdRecipientArray> array, int i) → Pointer<NativeSealdSealdRecipient> -
SealdSealdRecipientArray_Get returns a reference to the SealdSealdRecipient instance at position i.
The caller must not call
freeon it. -
SealdSealdRecipientArray_New(
) → Pointer< NativeSealdSealdRecipientArray> - SealdSealdRecipientArray instantiates a new SealdSealdRecipientArray.
-
SealdSealdRecipientArray_Size(
Pointer< NativeSealdSealdRecipientArray> array) → int - SealdSealdRecipientArray_Size returns the size of the given SealdSealdRecipientArray.
-
SealdSearchGroupTMRTemporaryKeysOpts_Free(
Pointer< NativeSealdSearchGroupTMRTemporaryKeysOpts> filters) → void - SealdSearchGroupTMRTemporaryKeysOpts_Free is a helper to free a SealdSearchGroupTMRTemporaryKeysOpts instance and all fields within.
-
SealdSsksPasswordPlugin_ChangeIdentityPassword(
Pointer< NativeSealdSsksPasswordPlugin> passwordPlugin, Pointer<Utf8> userId, Pointer<Utf8> currentPassword, Pointer<Utf8> newPassword, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Change the password use to encrypt the identity for the userId.
-
SealdSsksPasswordPlugin_Free(
Pointer< NativeSealdSsksPasswordPlugin> passwordPlugin) → void - Close the current SSKS Password plugin instance. This frees the memory. After calling close, the instance cannot be used anymore.
-
SealdSsksPasswordPlugin_Initialize(
Pointer< NativeSealdSsksPasswordPluginInitializeOptions> options, Pointer<Pointer< result, Pointer<NativeSealdSsksPasswordPlugin> >Pointer< error) → intNativeSealdError> > - Initialize an instance of Seald SSKS Password plugin.
-
SealdSsksPasswordPlugin_RetrieveIdentityFromPassword(
Pointer< NativeSealdSsksPasswordPlugin> passwordPlugin, Pointer<Utf8> userId, Pointer<Utf8> password, Pointer<Pointer< retrievedIdentity, Pointer<Uint8> >Int> retrievedIdentityLen, Pointer<Pointer< error) → intNativeSealdError> > - Retrieve the identity stored on the SSKS server for the given userId, and decrypt it with the given password.
-
SealdSsksPasswordPlugin_RetrieveIdentityFromRawKeys(
Pointer< NativeSealdSsksPasswordPlugin> passwordPlugin, Pointer<Utf8> userId, Pointer<Utf8> rawStorageKey, Pointer<Uint8> rawEncryptionKey, int rawEncryptionKeyLen, Pointer<Pointer< retrievedIdentity, Pointer<Uint8> >Int> retrievedIdentityLen, Pointer<Pointer< error) → intNativeSealdError> > - Retrieve the identity stored on the SSKS server for the given userId, and decrypt it with the given raw keys.
-
SealdSsksPasswordPlugin_SaveIdentityFromPassword(
Pointer< NativeSealdSsksPasswordPlugin> passwordPlugin, Pointer<Utf8> userId, Pointer<Utf8> password, Pointer<Uint8> identity, int identityLen, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Save the given identity for the given userId, encrypted with the given password.
-
SealdSsksPasswordPlugin_SaveIdentityFromRawKeys(
Pointer< NativeSealdSsksPasswordPlugin> passwordPlugin, Pointer<Utf8> userId, Pointer<Utf8> rawStorageKey, Pointer<Uint8> rawEncryptionKey, int rawEncryptionKeyLen, Pointer<Uint8> identity, int identityLen, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Save the given identity for the given userId, encrypted with the given raw keys.
-
SealdSsksTMRPlugin_Free(
Pointer< NativeSealdSsksTMRPlugin> tmrPlugin) → void - Close the current SSKS TMR plugin instance. This frees the memory. After calling close, the instance cannot be used anymore.
-
SealdSsksTMRPlugin_GetFactorToken(
Pointer< NativeSealdSsksTMRPlugin> tmrPlugin, Pointer<Utf8> sessionId, Pointer<Utf8> authFactorType, Pointer<Utf8> authFactorValue, Pointer<Utf8> challenge, Pointer<Pointer< result, Pointer<NativeSealdSsksTMRPluginGetFactorTokenResponse> >Pointer< error) → intNativeSealdError> > - Retrieve the TMR JWT associated with an authentication factor.
-
SealdSsksTMRPlugin_Initialize(
Pointer< NativeSealdSsksTMRPluginInitializeOptions> options, Pointer<Pointer< result, Pointer<NativeSealdSsksTMRPlugin> >Pointer< error) → intNativeSealdError> > - Initialize an instance of Seald SSKS TMR plugin.
-
SealdSsksTMRPlugin_RetrieveIdentity(
Pointer< NativeSealdSsksTMRPlugin> tmrPlugin, Pointer<Utf8> sessionId, Pointer<Utf8> authFactorType, Pointer<Utf8> authFactorValue, Pointer<Uint8> rawTMRSymKey, int rawTMRSymKeyLen, Pointer<Utf8> challenge, Pointer<Pointer< result, Pointer<NativeSealdSsksTMRPluginRetrieveIdentityResponse> >Pointer< error) → intNativeSealdError> > -
Retrieve the Seald account previously saved with
SealdSsksTMRPlugin_SaveIdentity. -
SealdSsksTMRPlugin_SaveIdentity(
Pointer< NativeSealdSsksTMRPlugin> tmrPlugin, Pointer<Utf8> sessionId, Pointer<Utf8> authFactorType, Pointer<Utf8> authFactorValue, Pointer<Uint8> rawTMRSymKey, int rawTMRSymKeyLen, Pointer<Uint8> identity, int identityLen, Pointer<Utf8> challenge, Pointer<Pointer< result, Pointer<NativeSealdSsksTMRPluginSaveIdentityResponse> >Pointer< error) → intNativeSealdError> > - Save the Seald account to SSKS.
-
SealdSsksTMRPluginGetFactorTokenResponse_Free(
Pointer< NativeSealdSsksTMRPluginGetFactorTokenResponse> resp) → void -
SealdSsksTMRPluginRetrieveIdentityResponse_Free(
Pointer< NativeSealdSsksTMRPluginRetrieveIdentityResponse> resp) → void -
SealdSsksTMRPluginSaveIdentityResponse_Free(
Pointer< NativeSealdSsksTMRPluginSaveIdentityResponse> resp) → void -
SealdStringArray_Add(
Pointer< NativeSealdStringArray> array, Pointer<Utf8> s) → void - SealdStringArray_Add adds a given string to the array. SealdStringArray_Add does not take ownership of the given strings. It creates a copy for itself.
-
SealdStringArray_Free(
Pointer< NativeSealdStringArray> array) → void - SealdStringArray_Free frees the memory allocated for the SealdStringArray itself, and all strings contained therein.
-
SealdStringArray_Get(
Pointer< NativeSealdStringArray> array, int i) → Pointer<Utf8> -
SealdStringArray_Get returns the string at position i.
The caller is responsible for calling
freeon this returned string when no longer necessary. -
SealdStringArray_New(
) → Pointer< NativeSealdStringArray> - SealdStringArray_New instantiates a new SealdStringArray.
-
SealdStringArray_Size(
Pointer< NativeSealdStringArray> array) → int - SealdStringArray_Size returns the size of the given SealdStringArray.
-
SealdSymEncKey_Free(
Pointer< NativeSealdSymEncKey> sek) → void - SealdSymEncKey_Free frees the memory allocated for the SealdSymEncKey itself, and all fields within.
-
SealdSymEncKeyArray_Add(
Pointer< NativeSealdSymEncKeyArray> array, Pointer<NativeSealdSymEncKey> d) → void -
SealdSymEncKeyArray_Add adds a given SealdSymEncKey instance to the array.
SealdSymEncKeyArray_Add takes ownership of the given SealdSymEncKey.
The caller must not use it anymore, and must not call
freeon it. -
SealdSymEncKeyArray_Free(
Pointer< NativeSealdSymEncKeyArray> array) → void - SealdSymEncKeyArray_Free frees the memory allocated for the SealdSymEncKeyArray itself, and all SealdSymEncKey instances contained therein.
-
SealdSymEncKeyArray_Get(
Pointer< NativeSealdSymEncKeyArray> array, int i) → Pointer<NativeSealdSymEncKey> -
SealdSymEncKeyArray_Get returns a reference to the SealdSymEncKey instance at position i.
The caller must not call
freeon it. -
SealdSymEncKeyArray_New(
) → Pointer< NativeSealdSymEncKeyArray> - SealdSymEncKeyArray instantiates a new SealdSymEncKeyArray.
-
SealdSymEncKeyArray_Size(
Pointer< NativeSealdSymEncKeyArray> array) → int - SealdSymEncKeyArray_Size returns the size of the given SealdSymEncKeyArray.
-
SealdTMRAccess_Free(
Pointer< NativeSealdTMRAccess> tmra) → void - SealdTMRAccess_Free frees the memory allocated for the SealdTMRAccess itself, and all fields within.
-
SealdTMRAccessArray_Add(
Pointer< NativeSealdTMRAccessArray> array, Pointer<NativeSealdTMRAccess> d) → void -
SealdTMRAccessArray_Add adds a given SealdTMRAccess instance to the array.
SealdTMRAccessArray_Add takes ownership of the given SealdTMRAccess.
The caller must not use it anymore, and must not call
freeon it. -
SealdTMRAccessArray_Free(
Pointer< NativeSealdTMRAccessArray> array) → void - SealdTMRAccessArray_Free frees the memory allocated for the SealdTMRAccessArray itself, and all SealdTMRAccess instances contained therein.
-
SealdTMRAccessArray_Get(
Pointer< NativeSealdTMRAccessArray> array, int i) → Pointer<NativeSealdTMRAccess> -
SealdTMRAccessArray_Get returns a reference to the SealdTMRAccess instance at position i.
The caller must not call
freeon it. -
SealdTMRAccessArray_New(
) → Pointer< NativeSealdTMRAccessArray> - SealdTMRAccessArray instantiates a new SealdTMRAccessArray.
-
SealdTMRAccessArray_Size(
Pointer< NativeSealdTMRAccessArray> array) → int - SealdTMRAccessArray_Size returns the size of the given SealdTMRAccessArray.
-
SealdTmrAccessesConvertFilters_Free(
Pointer< NativeSealdTmrAccessesConvertFilters> filters) → void - SealdTmrAccessesConvertFilters_Free is a helper to free a SealdTmrAccessesConvertFilters instance and all fields within.
-
SealdTmrAccessesRetrievalFilters_Free(
Pointer< NativeSealdTmrAccessesRetrievalFilters> filters) → void - SealdTmrAccessesRetrievalFilters_Free is a helper to free a SealdTmrAccessesRetrievalFilters instance and all fields within.
-
SealdTmrRecipientsWithRightsArray_Add(
Pointer< NativeSealdTmrRecipientsWithRightsArray> array, Pointer<Utf8> authFactorType, Pointer<Utf8> authFactorValue, Pointer<Uint8> overEncryptionKey, int overEncryptionKeyLen, int readRight, int forwardRight, int revokeRight) → void - SealdTmrRecipientsWithRightsArray_Add adds a tmr recipient with its associated rights to the array. SealdTmrRecipientsWithRightsArray_Add does not take ownership of the given strings and booleans. It creates copies for itself.
-
SealdTmrRecipientsWithRightsArray_AddWithDefaultRights(
Pointer< NativeSealdTmrRecipientsWithRightsArray> array, Pointer<Utf8> authFactorType, Pointer<Utf8> authFactorValue, Pointer<Uint8> overEncryptionKey, int overEncryptionKeyLen) → void - SealdTmrRecipientsWithRightsArray_AddWithDefaultRights adds a recipient with default rights. SealdTmrRecipientsWithRightsArray_AddWithDefaultRights does not take ownership of the given strings and booleans. It creates copies for itself. Default rights are: read: true, forward: true, revoke: false
-
SealdTmrRecipientsWithRightsArray_Free(
Pointer< NativeSealdTmrRecipientsWithRightsArray> array) → void - SealdTmrRecipientsWithRightsArray_Free frees the memory allocated for the SealdTmrRecipientsWithRightsArray itself, and all SealdTmrRecipientWithRights contained therein.
-
SealdTmrRecipientsWithRightsArray_Get(
Pointer< NativeSealdTmrRecipientsWithRightsArray> array, int i, Pointer<Pointer< authFactorType, Pointer<Utf8> >Pointer< authFactorValue, Pointer<Utf8> >Pointer< overEncryptionKey, Pointer<Uint8> >Int> overEncryptionKeyLen, Pointer<Int> recipientRightRead, Pointer<Int> recipientRightForward, Pointer<Int> recipientRightRevoke) → void -
SealdTmrRecipientsWithRightsArray_Get returns the TMR recipient and its associated rights at position i.
The caller is responsible for calling
freeon the returned char** when no longer necessary. -
SealdTmrRecipientsWithRightsArray_New(
) → Pointer< NativeSealdTmrRecipientsWithRightsArray> - SealdTmrRecipientsWithRightsArray_New instantiates a new SealdTmrRecipientsWithRightsArray.
-
SealdTmrRecipientsWithRightsArray_Size(
Pointer< NativeSealdTmrRecipientsWithRightsArray> array) → int - SealdTmrRecipientsWithRightsArray_Size returns the size of the given SealdTmrRecipientsWithRightsArray.
-
SealdUtils_GeneratePrivateKey(
int size, Pointer< Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Internal function. Do not use directly.
-
SealdUtils_ParseSessionIdFromBytes(
Pointer< Uint8> fileBytes, int fileBytesLen, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Takes an encrypted file as bytes, and returns the session id.
-
SealdUtils_ParseSessionIdFromFile(
Pointer< Utf8> encryptedFilePath, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Takes the path to an encrypted file, and returns the session id.
-
SealdUtils_ParseSessionIdFromMessage(
Pointer< Utf8> message, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Takes an encrypted message, and returns the session id.
-
SealdUtils_PKCS1DERtoPKCS8(
Pointer< Utf8> pkcs1DerRsaKey, Pointer<Pointer< result, Pointer<Utf8> >Pointer< error) → intNativeSealdError> > - Internal function. Do not use directly.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited