github.com/pion/dtls/v2@v2.2.12/internal/ciphersuite/tls_psk_with_aes_128_ccm.go (about)

     1  // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
     2  // SPDX-License-Identifier: MIT
     3  
     4  package ciphersuite
     5  
     6  import (
     7  	"github.com/pion/dtls/v2/pkg/crypto/ciphersuite"
     8  	"github.com/pion/dtls/v2/pkg/crypto/clientcertificate"
     9  )
    10  
    11  // NewTLSPskWithAes128Ccm returns the TLS_PSK_WITH_AES_128_CCM CipherSuite
    12  func NewTLSPskWithAes128Ccm() *Aes128Ccm {
    13  	return newAes128Ccm(clientcertificate.Type(0), TLS_PSK_WITH_AES_128_CCM, true, ciphersuite.CCMTagLength, KeyExchangeAlgorithmPsk, false)
    14  }