Documentation ¶
Overview ¶
Kerberos 5 data types.
Index ¶
- Constants
- func GetPAEncTSEncAsnMarshalled() ([]byte, error)
- func HostAddressesContains(h []HostAddress, a HostAddress) bool
- func HostAddressesEqual(h, a []HostAddress) bool
- func IsFlagSet(f *asn1.BitString, i int) bool
- func NewKrbFlags() asn1.BitString
- func SetFlag(f *asn1.BitString, i int)
- func SetFlags(f *asn1.BitString, j []int)
- func UnsetFlag(f *asn1.BitString, i int)
- func UnsetFlags(f *asn1.BitString, j []int)
- type ADAndOr
- type ADIfRelevant
- type ADKDCIssued
- type ADMandatoryForKDC
- type Authenticator
- type AuthorizationData
- type AuthorizationDataEntry
- type Checksum
- type ETypeInfo
- type ETypeInfo2
- type ETypeInfo2Entry
- type ETypeInfoEntry
- type EncryptedData
- type EncryptionKey
- type HostAddress
- type HostAddresses
- type MethodData
- type PAData
- type PADataSequence
- type PAEncTSEnc
- type PAEncTimestamp
- type PAReqEncPARep
- type PrincipalName
- type TypedData
- type TypedDataSequence
Constants ¶
View Source
const ( AddrType_IPv4 = 2 AddrType_Directional = 3 AddrType_ChaosNet = 5 AddrType_XNS = 6 AddrType_ISO = 7 AddrType_DECNET_Phase_IV = 12 AddrType_AppleTalk_DDP = 16 AddrType_NetBios = 20 AddrType_IPv6 = 24 )
Variables ¶
This section is empty.
Functions ¶
func HostAddressesContains ¶
func HostAddressesContains(h []HostAddress, a HostAddress) bool
func HostAddressesEqual ¶
func HostAddressesEqual(h, a []HostAddress) bool
func NewKrbFlags ¶
func UnsetFlags ¶
Types ¶
type ADAndOr ¶
type ADAndOr struct { ConditionCount int `asn1:"explicit,tag:0"` Elements AuthorizationData `asn1:"explicit,tag:1"` }
type ADIfRelevant ¶
type ADIfRelevant AuthorizationData
type ADKDCIssued ¶
type ADKDCIssued struct { ADChecksum Checksum `asn1:"explicit,tag:0"` IRealm string `asn1:"optional,generalstring,explicit,tag:1"` Isname PrincipalName `asn1:"optional,explicit,tag:2"` Elements AuthorizationData `asn1:"explicit,tag:3"` }
func (*ADKDCIssued) Unmarshal ¶
func (a *ADKDCIssued) Unmarshal(b []byte) error
type ADMandatoryForKDC ¶
type ADMandatoryForKDC AuthorizationData
type Authenticator ¶
type Authenticator struct { AVNO int `asn1:"explicit,tag:0"` CRealm string `asn1:"generalstring,explicit,tag:1"` CName PrincipalName `asn1:"explicit,tag:2"` Cksum Checksum `asn1:"explicit,optional,tag:3"` Cusec int `asn1:"explicit,tag:4"` CTime time.Time `asn1:"generalized,explicit,tag:5"` SubKey EncryptionKey `asn1:"explicit,optional,tag:6"` SeqNumber int `asn1:"explicit,optional,tag:7"` AuthorizationData AuthorizationData `asn1:"explicit,optional,tag:8"` }
func NewAuthenticator ¶
func NewAuthenticator(realm string, cname PrincipalName) Authenticator
func (*Authenticator) GenerateSeqNumberAndSubKey ¶
func (a *Authenticator) GenerateSeqNumberAndSubKey(keyType, keySize int)
func (*Authenticator) Marshal ¶
func (a *Authenticator) Marshal() ([]byte, error)
func (*Authenticator) Unmarshal ¶
func (a *Authenticator) Unmarshal(b []byte) error
type AuthorizationData ¶
type AuthorizationData []AuthorizationDataEntry
func (*AuthorizationData) Unmarshal ¶
func (a *AuthorizationData) Unmarshal(b []byte) error
type AuthorizationDataEntry ¶
type AuthorizationDataEntry struct { ADType int `asn1:"explicit,tag:0"` ADData []byte `asn1:"explicit,tag:1"` }
func (*AuthorizationDataEntry) Unmarshal ¶
func (a *AuthorizationDataEntry) Unmarshal(b []byte) error
type Checksum ¶
type ETypeInfo ¶
type ETypeInfo []ETypeInfoEntry
type ETypeInfo2 ¶
type ETypeInfo2 []ETypeInfo2Entry
func (*ETypeInfo2) Unmarshal ¶
func (a *ETypeInfo2) Unmarshal(b []byte) error
type ETypeInfo2Entry ¶
type ETypeInfo2Entry struct { EType int `asn1:"explicit,tag:0"` Salt string `asn1:"explicit,optional,generalstring,tag:1"` S2KParams []byte `asn1:"explicit,optional,tag:2"` }
func (*ETypeInfo2Entry) Unmarshal ¶
func (a *ETypeInfo2Entry) Unmarshal(b []byte) error
type ETypeInfoEntry ¶
type ETypeInfoEntry struct { EType int `asn1:"explicit,tag:0"` Salt []byte `asn1:"explicit,optional,tag:1"` }
func (*ETypeInfoEntry) Unmarshal ¶
func (a *ETypeInfoEntry) Unmarshal(b []byte) error
type EncryptedData ¶
type EncryptedData struct { EType int `asn1:"explicit,tag:0"` KVNO int `asn1:"explicit,optional,tag:1"` Cipher []byte `asn1:"explicit,tag:2"` }
func (*EncryptedData) Marshal ¶
func (a *EncryptedData) Marshal() ([]byte, error)
func (*EncryptedData) Unmarshal ¶
func (a *EncryptedData) Unmarshal(b []byte) error
type EncryptionKey ¶
type EncryptionKey struct { KeyType int `asn1:"explicit,tag:0"` KeyValue []byte `asn1:"explicit,tag:1"` }
AKA KeyBlock
func (*EncryptionKey) Unmarshal ¶
func (a *EncryptionKey) Unmarshal(b []byte) error
type HostAddress ¶
type HostAddress struct { AddrType int `asn1:"explicit,tag:0"` Address []byte `asn1:"explicit,tag:1"` }
func GetHostAddress ¶
func GetHostAddress(s string) (HostAddress, error)
func (*HostAddress) Equal ¶
func (h *HostAddress) Equal(a HostAddress) bool
func (*HostAddress) GetAddress ¶
func (h *HostAddress) GetAddress() (string, error)
type HostAddresses ¶
type HostAddresses []HostAddress
func (*HostAddresses) Contains ¶
func (h *HostAddresses) Contains(a HostAddress) bool
func (*HostAddresses) Equal ¶
func (h *HostAddresses) Equal(a []HostAddress) bool
type MethodData ¶
type MethodData []PAData
type PAData ¶
type PAData struct { PADataType int `asn1:"explicit,tag:1"` PADataValue []byte `asn1:"explicit,tag:2"` }
func (*PAData) GetETypeInfo ¶
func (*PAData) GetETypeInfo2 ¶
func (pa *PAData) GetETypeInfo2() (d ETypeInfo2, err error)
type PADataSequence ¶
type PADataSequence []PAData
func (*PADataSequence) Contains ¶
func (pas *PADataSequence) Contains(patype int) bool
func (*PADataSequence) Unmarshal ¶
func (pa *PADataSequence) Unmarshal(b []byte) error
type PAEncTSEnc ¶
type PAEncTSEnc struct { PATimestamp time.Time `asn1:"generalized,explicit,tag:0"` PAUSec int `asn1:"explicit,optional,tag:1"` }
func (*PAEncTSEnc) Unmarshal ¶
func (pa *PAEncTSEnc) Unmarshal(b []byte) error
type PAEncTimestamp ¶
type PAEncTimestamp EncryptedData
func (*PAEncTimestamp) Unmarshal ¶
func (pa *PAEncTimestamp) Unmarshal(b []byte) error
type PAReqEncPARep ¶
type PAReqEncPARep struct { ChksumType int `asn1:"explicit,tag:0"` Chksum []byte `asn1:"explicit,tag:1"` }
func (*PAReqEncPARep) Unmarshal ¶
func (pa *PAReqEncPARep) Unmarshal(b []byte) error
type PrincipalName ¶
type PrincipalName struct { NameType int `asn1:"explicit,tag:0"` NameString []string `asn1:"generalstring,explicit,tag:1"` }
func (*PrincipalName) Equal ¶
func (pn *PrincipalName) Equal(n PrincipalName) bool
func (*PrincipalName) GetPrincipalNameString ¶
func (pn *PrincipalName) GetPrincipalNameString() string
func (*PrincipalName) GetSalt ¶
func (pn *PrincipalName) GetSalt(realm string) string
type TypedDataSequence ¶
type TypedDataSequence []TypedData
func (*TypedDataSequence) Unmarshal ¶
func (a *TypedDataSequence) Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.