Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSimpleDBFile ¶
Types ¶
type Decryptor ¶
type Decryptor interface {
// Decrypt 解密数据库
Decrypt(ctx context.Context, dbfile string, key string, output io.Writer) error
// Validate 验证密钥是否有效
Validate(page1 []byte, key []byte) bool
// GetPageSize 返回页面大小
GetPageSize() int
// GetReserve 返回保留字节数
GetReserve() int
// GetHMACSize 返回HMAC大小
GetHMACSize() int
// GetVersion 返回解密器版本
GetVersion() string
}
Decryptor 定义数据库解密的接口
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
NewValidator 创建一个仅用于验证的验证器
func NewValidatorWithFile ¶
func (*Validator) ValidateImgKey ¶
Click to show internal directories.
Click to hide internal directories.