SealdSdk_MassReencrypt method

int SealdSdk_MassReencrypt(
  1. Pointer<NativeSealdSdk> sealdSdk,
  2. Pointer<Utf8> deviceId,
  3. NativeSealdMassReencryptOptions options,
  4. Pointer<NativeSealdMassReencryptResponse> result,
  5. Pointer<Pointer<NativeSealdError>> error,
)

Retrieve, re-encrypt, and add missing keys for a certain device.

@param sealdSdk The SealdSdk instance. @param deviceId The ID of the device for which to re-rencrypt. @param options A SealdMassReencryptOptions instance. @param result A pointer to a SealdMassReencryptResponse instance, which will be populated with the number of re-encrypted keys, and the number of keys for which re-encryption failed. @param error A pointer to a SealdError* where details will be stored in case of error. @return Error code: -1 if an error happened, 0 for success.

Implementation

int SealdSdk_MassReencrypt(
  ffi.Pointer<NativeSealdSdk> sealdSdk,
  ffi.Pointer<pkg_ffi.Utf8> deviceId,
  NativeSealdMassReencryptOptions options,
  ffi.Pointer<NativeSealdMassReencryptResponse> result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdSdk_MassReencrypt(
    sealdSdk,
    deviceId,
    options,
    result,
    error,
  );
}