Versions in this module Expand all Collapse all v0 v0.1.0 Jul 6, 2023 Changes in this version + type Aes128Ccm struct + func NewTLSEcdheEcdsaWithAes128Ccm() *Aes128Ccm + func NewTLSEcdheEcdsaWithAes128Ccm8() *Aes128Ccm + func NewTLSPskWithAes128Ccm() *Aes128Ccm + func NewTLSPskWithAes128Ccm8() *Aes128Ccm + func (c *Aes128Ccm) Init(masterSecret, clientRandom, serverRandom []byte, isClient bool) error + type Aes256Ccm struct + func NewTLSPskWithAes256Ccm8() *Aes256Ccm + func (c *Aes256Ccm) Init(masterSecret, clientRandom, serverRandom []byte, isClient bool) error + type AesCcm struct + func (c *AesCcm) AuthenticationType() AuthenticationType + func (c *AesCcm) CertificateType() clientcertificate.Type + func (c *AesCcm) Decrypt(raw []byte) ([]byte, error) + func (c *AesCcm) ECC() bool + func (c *AesCcm) Encrypt(pkt *recordlayer.RecordLayer, raw []byte) ([]byte, error) + func (c *AesCcm) HashFunc() func() hash.Hash + func (c *AesCcm) ID() ID + func (c *AesCcm) Init(masterSecret, clientRandom, serverRandom []byte, isClient bool, prfKeyLen int) error + func (c *AesCcm) IsInitialized() bool + func (c *AesCcm) KeyExchangeAlgorithm() KeyExchangeAlgorithm + func (c *AesCcm) String() string + type AuthenticationType = types.AuthenticationType + const AuthenticationTypeAnonymous + const AuthenticationTypeCertificate + const AuthenticationTypePreSharedKey + type ID uint16 + const TLS_ECDHE_ECDSA_WITH_AES_128_CCM + const TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 + const TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 + const TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA + const TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 + const TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256 + const TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 + const TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA + const TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 + const TLS_PSK_WITH_AES_128_CBC_SHA256 + const TLS_PSK_WITH_AES_128_CCM + const TLS_PSK_WITH_AES_128_CCM_8 + const TLS_PSK_WITH_AES_128_GCM_SHA256 + const TLS_PSK_WITH_AES_256_CCM_8 + func (i ID) String() string + type KeyExchangeAlgorithm = types.KeyExchangeAlgorithm + const KeyExchangeAlgorithmEcdhe + const KeyExchangeAlgorithmNone + const KeyExchangeAlgorithmPsk + type TLSEcdheEcdsaWithAes128GcmSha256 struct + func (c *TLSEcdheEcdsaWithAes128GcmSha256) AuthenticationType() AuthenticationType + func (c *TLSEcdheEcdsaWithAes128GcmSha256) CertificateType() clientcertificate.Type + func (c *TLSEcdheEcdsaWithAes128GcmSha256) Decrypt(raw []byte) ([]byte, error) + func (c *TLSEcdheEcdsaWithAes128GcmSha256) ECC() bool + func (c *TLSEcdheEcdsaWithAes128GcmSha256) Encrypt(pkt *recordlayer.RecordLayer, raw []byte) ([]byte, error) + func (c *TLSEcdheEcdsaWithAes128GcmSha256) HashFunc() func() hash.Hash + func (c *TLSEcdheEcdsaWithAes128GcmSha256) ID() ID + func (c *TLSEcdheEcdsaWithAes128GcmSha256) Init(masterSecret, clientRandom, serverRandom []byte, isClient bool) error + func (c *TLSEcdheEcdsaWithAes128GcmSha256) IsInitialized() bool + func (c *TLSEcdheEcdsaWithAes128GcmSha256) KeyExchangeAlgorithm() KeyExchangeAlgorithm + func (c *TLSEcdheEcdsaWithAes128GcmSha256) String() string + type TLSEcdheEcdsaWithAes256CbcSha struct + func (c *TLSEcdheEcdsaWithAes256CbcSha) AuthenticationType() AuthenticationType + func (c *TLSEcdheEcdsaWithAes256CbcSha) CertificateType() clientcertificate.Type + func (c *TLSEcdheEcdsaWithAes256CbcSha) Decrypt(raw []byte) ([]byte, error) + func (c *TLSEcdheEcdsaWithAes256CbcSha) ECC() bool + func (c *TLSEcdheEcdsaWithAes256CbcSha) Encrypt(pkt *recordlayer.RecordLayer, raw []byte) ([]byte, error) + func (c *TLSEcdheEcdsaWithAes256CbcSha) HashFunc() func() hash.Hash + func (c *TLSEcdheEcdsaWithAes256CbcSha) ID() ID + func (c *TLSEcdheEcdsaWithAes256CbcSha) Init(masterSecret, clientRandom, serverRandom []byte, isClient bool) error + func (c *TLSEcdheEcdsaWithAes256CbcSha) IsInitialized() bool + func (c *TLSEcdheEcdsaWithAes256CbcSha) KeyExchangeAlgorithm() KeyExchangeAlgorithm + func (c *TLSEcdheEcdsaWithAes256CbcSha) String() string + type TLSEcdheEcdsaWithAes256GcmSha384 struct + func (c *TLSEcdheEcdsaWithAes256GcmSha384) HashFunc() func() hash.Hash + func (c *TLSEcdheEcdsaWithAes256GcmSha384) ID() ID + func (c *TLSEcdheEcdsaWithAes256GcmSha384) Init(masterSecret, clientRandom, serverRandom []byte, isClient bool) error + func (c *TLSEcdheEcdsaWithAes256GcmSha384) String() string + type TLSEcdhePskWithAes128CbcSha256 struct + func NewTLSEcdhePskWithAes128CbcSha256() *TLSEcdhePskWithAes128CbcSha256 + func (c *TLSEcdhePskWithAes128CbcSha256) AuthenticationType() AuthenticationType + func (c *TLSEcdhePskWithAes128CbcSha256) CertificateType() clientcertificate.Type + func (c *TLSEcdhePskWithAes128CbcSha256) Decrypt(raw []byte) ([]byte, error) + func (c *TLSEcdhePskWithAes128CbcSha256) ECC() bool + func (c *TLSEcdhePskWithAes128CbcSha256) Encrypt(pkt *recordlayer.RecordLayer, raw []byte) ([]byte, error) + func (c *TLSEcdhePskWithAes128CbcSha256) HashFunc() func() hash.Hash + func (c *TLSEcdhePskWithAes128CbcSha256) ID() ID + func (c *TLSEcdhePskWithAes128CbcSha256) Init(masterSecret, clientRandom, serverRandom []byte, isClient bool) error + func (c *TLSEcdhePskWithAes128CbcSha256) IsInitialized() bool + func (c *TLSEcdhePskWithAes128CbcSha256) KeyExchangeAlgorithm() KeyExchangeAlgorithm + func (c *TLSEcdhePskWithAes128CbcSha256) String() string + type TLSEcdheRsaWithAes128GcmSha256 struct + func (c *TLSEcdheRsaWithAes128GcmSha256) CertificateType() clientcertificate.Type + func (c *TLSEcdheRsaWithAes128GcmSha256) ID() ID + func (c *TLSEcdheRsaWithAes128GcmSha256) String() string + type TLSEcdheRsaWithAes256CbcSha struct + func (c *TLSEcdheRsaWithAes256CbcSha) CertificateType() clientcertificate.Type + func (c *TLSEcdheRsaWithAes256CbcSha) ID() ID + func (c *TLSEcdheRsaWithAes256CbcSha) String() string + type TLSEcdheRsaWithAes256GcmSha384 struct + func (c *TLSEcdheRsaWithAes256GcmSha384) CertificateType() clientcertificate.Type + func (c *TLSEcdheRsaWithAes256GcmSha384) ID() ID + func (c *TLSEcdheRsaWithAes256GcmSha384) String() string + type TLSPskWithAes128CbcSha256 struct + func (c *TLSPskWithAes128CbcSha256) AuthenticationType() AuthenticationType + func (c *TLSPskWithAes128CbcSha256) CertificateType() clientcertificate.Type + func (c *TLSPskWithAes128CbcSha256) Decrypt(raw []byte) ([]byte, error) + func (c *TLSPskWithAes128CbcSha256) ECC() bool + func (c *TLSPskWithAes128CbcSha256) Encrypt(pkt *recordlayer.RecordLayer, raw []byte) ([]byte, error) + func (c *TLSPskWithAes128CbcSha256) HashFunc() func() hash.Hash + func (c *TLSPskWithAes128CbcSha256) ID() ID + func (c *TLSPskWithAes128CbcSha256) Init(masterSecret, clientRandom, serverRandom []byte, isClient bool) error + func (c *TLSPskWithAes128CbcSha256) IsInitialized() bool + func (c *TLSPskWithAes128CbcSha256) KeyExchangeAlgorithm() KeyExchangeAlgorithm + func (c *TLSPskWithAes128CbcSha256) String() string + type TLSPskWithAes128GcmSha256 struct + func (c *TLSPskWithAes128GcmSha256) AuthenticationType() AuthenticationType + func (c *TLSPskWithAes128GcmSha256) CertificateType() clientcertificate.Type + func (c *TLSPskWithAes128GcmSha256) ID() ID + func (c *TLSPskWithAes128GcmSha256) KeyExchangeAlgorithm() KeyExchangeAlgorithm + func (c *TLSPskWithAes128GcmSha256) String() string