Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupKey ¶
type BackupKey MasterKey
func (*BackupKey) DecryptWithHash ¶
DecryptWithHash Decrypts the backupKey with the given user's hash and SID.
type DpapiDomainRsaMasterKey ¶
type MasterKey ¶
type MasterKey struct { Version uint32 Salt [16]byte Rounds uint32 AlgHash uint32 AlgCrypt uint32 PbKey []byte // Store result data Decrypted bool Key []byte KeyHash []byte HmacSalt []byte Hmac []byte HmacComputed []byte }
func (*MasterKey) DecryptWithHash ¶
Decrypts the masterKey with the given user's hash and SID.
func (*MasterKey) DecryptWithKey ¶
Decrypts the masterKey with the given encryption key. This function also extracts the HMAC part of the decrypted stuff and compare it with the computed one. Note that, once successfully decrypted, the masterKey will not be decrypted anymore; this function will simply return.
type MasterKeyFile ¶
type MasterKeyFile struct { Header Header MasterKey MasterKey BackupKey BackupKey CredHist CredHist DomainKey DomainKey Decrypted bool Guid []byte Key []byte }
func InitMasterKeyFile ¶
func InitMasterKeyFile(masterKeyFileData []byte) MasterKeyFile
InitMasterKeyFile Init master key file.
func (*MasterKeyFile) DecryptWithHash ¶
func (masterKeyFile *MasterKeyFile) DecryptWithHash(userSID string, hash string)
DecryptWithHash Decrypt master key file with ntlm hash or sha1 hash.
func (*MasterKeyFile) DecryptWithPassword ¶
func (masterKeyFile *MasterKeyFile) DecryptWithPassword(userSID, password string)
DecryptWithPassword Decrypt master key file with user password.
func (*MasterKeyFile) DecryptWithPvk ¶
func (masterKeyFile *MasterKeyFile) DecryptWithPvk(pvkFileData []byte)
DecryptWithPvk Decrypt master key file with domain backup key.
type PrivateKeyBlob ¶
type PublicKeyStruc ¶
type PvkFile ¶
type PvkFile struct { Header PvkHeader PrivateKeyBlob PrivateKeyBlob }
Click to show internal directories.
Click to hide internal directories.