Documentation ¶
Index ¶
- Constants
- type BaseExtn
- type Extn
- func (s *Extn) Copy() common.Extension
- func (s *Extn) Len() int
- func (s *Extn) Pack() (common.RawBytes, error)
- func (s *Extn) SetAuthenticator(authenticator common.RawBytes) error
- func (s *Extn) SetMetadata(metadata common.RawBytes) error
- func (s *Extn) String() string
- func (s *Extn) Write(b common.RawBytes) error
- type SecMode
Constants ¶
View Source
const ( // Basic definitions SecModeLength = 1 TimestampLength = 4 // Metadata length (Shall be 4 + i*8, were i in [0,1,...]) AesCMacMetaLength = TimestampLength HmacSha256MetaLength = TimestampLength ED25519MetaLength = TimestampLength GcmAes128MetaLength = TimestampLength // Authenticator length AesCMacAuthLength = 16 HmacSha256AuthLength = 32 ED25519AuthLength = 64 GcmAes128AuthLength = 16 AesCMacTotalLength = SecModeLength + AesCMacMetaLength + AesCMacAuthLength HmacSha256TotalLength = SecModeLength + HmacSha256MetaLength + HmacSha256AuthLength ED25519TotalLength = SecModeLength + ED25519MetaLength + ED25519AuthLength GcmAes128TotalLength = SecModeLength + GcmAes128MetaLength + GcmAes128AuthLength )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseExtn ¶
type BaseExtn struct { // SecMode indicates the security mode of the extension. SecMode SecMode }
BaseExtn is the base for Extn, scmp_auth.DRKeyExt and scmp_auth.HashTreeExt
func (*BaseExtn) Class ¶
func (s *BaseExtn) Class() common.L4ProtocolType
type Extn ¶
type Extn struct { *BaseExtn // Metadata contains the metadata required by the security mode. Metadata common.RawBytes // Authenticator contains the authenticator required by the security mode. Authenticator common.RawBytes }
Extn is the implementation of the SCIONPacketSecurity extension.
func (*Extn) SetAuthenticator ¶
Set the Authenticator.
func (*Extn) SetMetadata ¶
Set the Metadata.
Click to show internal directories.
Click to hide internal directories.