github.com/pion/dtls/v2@v2.2.12/internal/ciphersuite/tls_ecdhe_rsa_with_aes_128_gcm_sha256.go (about) 1 // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> 2 // SPDX-License-Identifier: MIT 3 4 package ciphersuite 5 6 import "github.com/pion/dtls/v2/pkg/crypto/clientcertificate" 7 8 // TLSEcdheRsaWithAes128GcmSha256 implements the TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 CipherSuite 9 type TLSEcdheRsaWithAes128GcmSha256 struct { 10 TLSEcdheEcdsaWithAes128GcmSha256 11 } 12 13 // CertificateType returns what type of certificate this CipherSuite exchanges 14 func (c *TLSEcdheRsaWithAes128GcmSha256) CertificateType() clientcertificate.Type { 15 return clientcertificate.RSASign 16 } 17 18 // ID returns the ID of the CipherSuite 19 func (c *TLSEcdheRsaWithAes128GcmSha256) ID() ID { 20 return TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 21 } 22 23 func (c *TLSEcdheRsaWithAes128GcmSha256) String() string { 24 return "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" 25 }