source

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

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

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

Variables

This section is empty.

Functions

This section is empty.

Types

type KeySource

type KeySource struct {
	Value uint8
}

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL