Documentation
¶
Index ¶
- Constants
- func AddUsersToEncryptedFile(fileName string, encryptionCertificates []ENCRYPTION_CERTIFICATE) error
- func DecryptFile(fileName string, reserved uint32) error
- func DuplicateEncryptionInfoFile(srcFileName, dstFilename string, creationDistribution, attributes uint32, ...) error
- func EncryptFile(fileName string) error
- func EncryptionDisable(dirPath string, disable bool) error
- func FileEncryptionStatus(fileName string) (status uint32, err error)
- func OpenEncryptedFileRaw(fileName string, flags uint32) (context unsafe.Pointer, err error)
- func RemoveUsersFromEncryptedFile(fileName string, hashes []ENCRYPTION_CERTIFICATE_HASH) error
- type EFS_CERTIFICATE_BLOB
- type EFS_HASH_BLOB
- type ENCRYPTION_CERTIFICATE
- type ENCRYPTION_CERTIFICATE_HASH
- type ENCRYPTION_CERTIFICATE_HASH_LIST
- type ENCRYPTION_CERTIFICATE_LIST
- type PRE_EXPORT_FUNC
- type PRE_IMPORT_FUNC
Constants ¶
View Source
const ( CREATE_FOR_IMPORT = 1 CREATE_FOR_DIR = 2 OVERWRITE_HIDDEN = 4 )
flag for OpenEncryptedFileRaw
Variables ¶
This section is empty.
Functions ¶
func AddUsersToEncryptedFile ¶
func AddUsersToEncryptedFile(fileName string, encryptionCertificates []ENCRYPTION_CERTIFICATE) error
func DuplicateEncryptionInfoFile ¶
func DuplicateEncryptionInfoFile(srcFileName, dstFilename string, creationDistribution, attributes uint32, securityAttributes *windows.SecurityAttributes) error
func EncryptFile ¶
func EncryptionDisable ¶
func FileEncryptionStatus ¶
func OpenEncryptedFileRaw ¶
func RemoveUsersFromEncryptedFile ¶
func RemoveUsersFromEncryptedFile(fileName string, hashes []ENCRYPTION_CERTIFICATE_HASH) error
Types ¶
type EFS_CERTIFICATE_BLOB ¶
type EFS_HASH_BLOB ¶
type ENCRYPTION_CERTIFICATE ¶
type ENCRYPTION_CERTIFICATE struct {
TotalLength uint32
UserSid *windows.SID
CertBlob *EFS_CERTIFICATE_BLOB
}
type ENCRYPTION_CERTIFICATE_HASH ¶
type ENCRYPTION_CERTIFICATE_HASH struct {
TotalLength uint32
UserSid *windows.SID
Hash *EFS_HASH_BLOB
DisplayInformation *uint16
}
type ENCRYPTION_CERTIFICATE_HASH_LIST ¶
type ENCRYPTION_CERTIFICATE_HASH_LIST struct {
NumCertHash uint32
Users *ENCRYPTION_CERTIFICATE_HASH // []ENCRYPTION_CERTIFICATE_HASH
}
func QueryRecoveryAgentsOnEncryptedFile ¶
func QueryRecoveryAgentsOnEncryptedFile(fileName string) (*ENCRYPTION_CERTIFICATE_HASH_LIST, error)
func QueryUsersOnEncryptedFile ¶
func QueryUsersOnEncryptedFile(fileName string) (*ENCRYPTION_CERTIFICATE_HASH_LIST, error)
type ENCRYPTION_CERTIFICATE_LIST ¶
type ENCRYPTION_CERTIFICATE_LIST struct {
NumUser uint32
Users *ENCRYPTION_CERTIFICATE // []ENCRYPTION_CERTIFICATE
}
type PRE_EXPORT_FUNC ¶
DWORD PfeExportFunc(
[in] PBYTE pbData, [in, optional] PVOID pvCallbackContext, [in] ULONG ulLength
) {...}
Click to show internal directories.
Click to hide internal directories.