SealdSsksTMRPlugin_RetrieveIdentity method

int SealdSsksTMRPlugin_RetrieveIdentity(
  1. Pointer<NativeSealdSsksTMRPlugin> tmrPlugin,
  2. Pointer<Utf8> sessionId,
  3. Pointer<Utf8> authFactorType,
  4. Pointer<Utf8> authFactorValue,
  5. Pointer<Uint8> rawTMRSymKey,
  6. int rawTMRSymKeyLen,
  7. Pointer<Utf8> challenge,
  8. Pointer<Pointer<NativeSealdSsksTMRPluginRetrieveIdentityResponse>> result,
  9. Pointer<Pointer<NativeSealdError>> error,
)

Retrieve the Seald account previously saved with SealdSsksTMRPlugin_SaveIdentity.

@param tmrPlugin The SSKS TMR plugin instance. @param sessionId The user's session ID. @param authFactorType The type of authentication factor. Can be "EM" or "SMS". @param authFactorValue The value of authentication factor. @param rawTMRSymKey The raw encryption key used to encrypt / decrypt the stored identity keys. This MUST be a cryptographically random buffer of 64 bytes. @param rawTMRSymKeyLen The length of rawTMRSymKey. @param challenge Optional. The challenge sent by SSKS to the user's authentication method, if any. @param result A pointer to a SealdSsksTMRPluginRetrieveIdentityResponse*. @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 SealdSsksTMRPlugin_RetrieveIdentity(
  ffi.Pointer<NativeSealdSsksTMRPlugin> tmrPlugin,
  ffi.Pointer<pkg_ffi.Utf8> sessionId,
  ffi.Pointer<pkg_ffi.Utf8> authFactorType,
  ffi.Pointer<pkg_ffi.Utf8> authFactorValue,
  ffi.Pointer<ffi.Uint8> rawTMRSymKey,
  int rawTMRSymKeyLen,
  ffi.Pointer<pkg_ffi.Utf8> challenge,
  ffi.Pointer<ffi.Pointer<NativeSealdSsksTMRPluginRetrieveIdentityResponse>>
      result,
  ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
  return _SealdSsksTMRPlugin_RetrieveIdentity(
    tmrPlugin,
    sessionId,
    authFactorType,
    authFactorValue,
    rawTMRSymKey,
    rawTMRSymKeyLen,
    challenge,
    result,
    error,
  );
}