Documentation
¶
Index ¶
Constants ¶
View Source
const ( NextHeaderIPv4 = 4 NextHeaderIPv6 = 41 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type EncryptionAlgorithm ¶
type EncryptionAlgorithm uint16
const ( EncryptionAESCBC EncryptionAlgorithm = EncryptionAlgorithm(ikev2.ENCR_AES_CBC) EncryptionAESGCM_16 EncryptionAlgorithm = EncryptionAlgorithm(ikev2.ENCR_AES_GCM_16) )
type IntegrityAlgorithm ¶
type IntegrityAlgorithm uint16
const ( IntegrityHMACSHA1_96 IntegrityAlgorithm = IntegrityAlgorithm(ikev2.INTEG_HMAC_SHA1_96) IntegrityHMACSHA2_256_128 IntegrityAlgorithm = IntegrityAlgorithm(ikev2.INTEG_HMAC_SHA2_256_128) )
type OpenResult ¶
type SA ¶
type SA struct {
SPI uint32
Encryption EncryptionAlgorithm
EncryptionKey []byte
IntegrityKey []byte
Integrity IntegrityAlgorithm
ICVLength int
BlockSize int
Sequence uint32
HighestSequence uint32
ReplayWindowSize uint32
ReplayBitmap uint64
}
func NewInboundSAFromChild ¶
func NewInboundSAFromChild(child ikev2.ChildSAResult) (*SA, error)
func NewOutboundSAFromChild ¶
func NewOutboundSAFromChild(child ikev2.ChildSAResult) (*SA, error)
Click to show internal directories.
Click to hide internal directories.