Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInvalidContentFolder = errors.New("invalid content folder") ErrorInvalidSetupFile = errors.New("invalid setup file") )
Functions ¶
func ValidateHMAC ¶
ValidateMAC validates check if the HMAC generated with the data read through r matches the hash passed to the function. If they match it returns (true, nil) otherwise it returns (false, nil)
Types ¶
type AESCBCDecrypter ¶
type AESCBCDecrypter struct { Block cipher.Block BlockMode cipher.BlockMode // contains filtered or unexported fields }
func NewAESCBCDecrypter ¶
func NewAESCBCDecrypter(w io.Writer, iv, aesKey []byte) (*AESCBCDecrypter, error)
type AESCBCEncrypter ¶
type AESCBCEncrypter struct { Block cipher.Block BlockMode cipher.BlockMode // contains filtered or unexported fields }
func NewAESCBCEncrypter ¶
func (AESCBCEncrypter) Sum ¶
func (bw AESCBCEncrypter) Sum(b []byte) []byte
type Intunewin ¶
type Intunewin struct { Name string // The name of the intunewin file Path string // The path to the intunewin file // contains filtered or unexported fields }
func NewIntunewin ¶
NewIntunewin creates a new intunewin file contentPath: The path to the content folder setupFile: The name of the setup file, relative to the content folder outputPath: The path to the output folder Returns a pointer to the new intunewin file
func (*Intunewin) EncryptContentArchive ¶
encryptContentArchive() encrypts the file
func (*Intunewin) ExtractContent ¶
ExtractContent() writes the IntunePackage.intunewin to the path supplied in path
Click to show internal directories.
Click to hide internal directories.