ntfs_efs

package module
v0.0.0-...-9fb4c64 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 6 Imported by: 0

README

ntfs-efs

Access NTFS(New Technology file System) Encrypted File System(EFS) with golang.

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

func NewEfsClient() (*EfsClient, error)

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.

Directories

Path Synopsis
cmd
efs_util command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL