SealdAnonymousEncryptionSession_EncryptFile method
Encrypt a clear-text file into an encrypted file, for the recipients of this session.
@param aes The SealdAnonymousEncryptionSession instance.
@param clearFile An array of bytes of the clear-text content of the file to encrypt.
@param clearFileLen The length of clearFile.
@param filename The name of the file to encrypt.
@param result A pointer to which to write the resulting encrypted file.
@param resultLen A pointer to which to write the length of result.
@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 SealdAnonymousEncryptionSession_EncryptFile(
ffi.Pointer<NativeSealdAnonymousEncryptionSession> aes,
ffi.Pointer<ffi.Uint8> clearFile,
int clearFileLen,
ffi.Pointer<pkg_ffi.Utf8> filename,
ffi.Pointer<ffi.Pointer<ffi.Uint8>> result,
ffi.Pointer<ffi.Int> resultLen,
ffi.Pointer<ffi.Pointer<NativeSealdError>> error,
) {
return _SealdAnonymousEncryptionSession_EncryptFile(
aes,
clearFile,
clearFileLen,
filename,
result,
resultLen,
error,
);
}