Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EfsClient ¶
type EfsClient struct {
ReadCtx *ExportContext
WriteCtx *ImportContext
// contains filtered or unexported fields
}
func NewEfsClient ¶
type ExportContext ¶
type ExportContext struct {
Context any
// If the function succeeds, it must set the return value to ERROR_SUCCESS.
Handler func(data *byte, ctx *ExportContext, length uint32) uintptr
}
type ImportContext ¶
type ImportContext struct {
Context any
// If the function succeeds, it must set the return value to ERROR_SUCCESS, and set the value pointed to by the length parameter to the number of bytes copied into data.
//
// When the end of the backup file is reached, set ulLength to zero to tell the system that the entire file has been processed.
Handler func(data *byte, ctx *ImportContext, length *uint32) uintptr // user defined callback
}
type RawReadWriter ¶
type RawReadWriter struct {
*EfsClient
// contains filtered or unexported fields
}
RawReadWriter converts encrypted file or directory into a raw data keeping its encryption.
func NewRawReadWriter ¶
func NewRawReadWriter() (*RawReadWriter, error)
func (*RawReadWriter) ReadRaw ¶
func (rw *RawReadWriter) ReadRaw(srcFile string, dst io.ReadWriter) error
ReadRaw reads encrypted file as a raw stream then writes it to dst.
func (*RawReadWriter) WriteRaw ¶
func (rw *RawReadWriter) WriteRaw(dstFile string, src io.ReadWriter, dir bool) error
WriteRaw reads data from src then writes it as a encrypted file, if dir is true data is written as a directory with encrypted files.
Click to show internal directories.
Click to hide internal directories.