darwin

package
v0.0.0-...-d241749 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	V3PageSize   = 1024
	HmacSHA1Size = 20
)

常量定义

View Source
const (
	V4PageSize     = 4096
	V4IterCount    = 256000
	HmacSHA512Size = 64
)

V4 版本特定常量

Variables

This section is empty.

Functions

This section is empty.

Types

type V3Decryptor

type V3Decryptor struct {
	// contains filtered or unexported fields
}

V3Decryptor 实现 macOS V3 版本的解密器

func NewV3Decryptor

func NewV3Decryptor() *V3Decryptor

NewV3Decryptor 创建 macOS V3 解密器

func (*V3Decryptor) Decrypt

func (d *V3Decryptor) Decrypt(ctx context.Context, dbfile string, hexKey string, output io.Writer) error

Decrypt 解密数据库

func (*V3Decryptor) GetHMACSize

func (d *V3Decryptor) GetHMACSize() int

GetHMACSize 返回HMAC大小

func (*V3Decryptor) GetPageSize

func (d *V3Decryptor) GetPageSize() int

GetPageSize 返回页面大小

func (*V3Decryptor) GetReserve

func (d *V3Decryptor) GetReserve() int

GetReserve 返回保留字节数

func (*V3Decryptor) GetVersion

func (d *V3Decryptor) GetVersion() string

GetVersion 返回解密器版本

func (*V3Decryptor) Validate

func (d *V3Decryptor) Validate(page1 []byte, key []byte) bool

Validate 验证密钥是否有效

type V4Decryptor

type V4Decryptor struct {
	// contains filtered or unexported fields
}

V4Decryptor 实现Windows V4版本的解密器

func NewV4Decryptor

func NewV4Decryptor() *V4Decryptor

NewV4Decryptor 创建Windows V4解密器

func (*V4Decryptor) Decrypt

func (d *V4Decryptor) Decrypt(ctx context.Context, dbfile string, hexKey string, output io.Writer) error

Decrypt 解密数据库

func (*V4Decryptor) GetHMACSize

func (d *V4Decryptor) GetHMACSize() int

GetHMACSize 返回HMAC大小

func (*V4Decryptor) GetIterCount

func (d *V4Decryptor) GetIterCount() int

GetIterCount 返回迭代次数(Windows特有)

func (*V4Decryptor) GetPageSize

func (d *V4Decryptor) GetPageSize() int

GetPageSize 返回页面大小

func (*V4Decryptor) GetReserve

func (d *V4Decryptor) GetReserve() int

GetReserve 返回保留字节数

func (*V4Decryptor) GetVersion

func (d *V4Decryptor) GetVersion() string

GetVersion 返回解密器版本

func (*V4Decryptor) Validate

func (d *V4Decryptor) Validate(page1 []byte, key []byte) bool

Validate 验证密钥是否有效

Jump to

Keyboard shortcuts

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