Generated from Manticore v1.1.5 • 201 packages. View on pkg.go.dev

source

import "github.com/TheManticoreProject/Manticore/windows/keycredentiallink/key/source"

Index

Constants

const (
    // On Premises Key Trust
    KeySource_AD uint8 = 0x00

    // Hybrid Azure AD Key Trust
    KeySource_AzureAD uint8 = 0x01
)

type KeySource

KeySource represents the source of the key. Sources: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/d4b9b239-dbe8-4475-b6f9-745612c64ed0?redirectedfrom=MSDN https://msdn.microsoft.com/en-us/library/mt220501.aspx

type KeySource struct {
    Value uint8
}

func (*KeySource) Marshal

func (ks *KeySource) Marshal() ([]byte, error)

Marshal returns the raw bytes of the KeySource structure.

Returns: - A byte slice representing the raw bytes of the KeySource structure. - An error if the conversion fails.

func (*KeySource) String

func (ks *KeySource) String() string

String returns the string representation of the KeySource.

Returns: - A string representing the key source.

func (*KeySource) Unmarshal

func (ks *KeySource) Unmarshal(data []byte) (int, error)

Unmarshal parses the key source from a byte array.

Parameters: - data: A byte array representing the key source.

Returns: - A KeySource object.