mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-09 03:41:29 +08:00
添加 github.com/pion/dtls 代码
This commit is contained in:
11
dtls-2.0.9/internal/ciphersuite/tls_psk_with_aes_128_ccm.go
Normal file
11
dtls-2.0.9/internal/ciphersuite/tls_psk_with_aes_128_ccm.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package ciphersuite
|
||||
|
||||
import (
|
||||
"github.com/pion/dtls/v2/pkg/crypto/ciphersuite"
|
||||
"github.com/pion/dtls/v2/pkg/crypto/clientcertificate"
|
||||
)
|
||||
|
||||
// NewTLSPskWithAes128Ccm returns the TLS_PSK_WITH_AES_128_CCM CipherSuite
|
||||
func NewTLSPskWithAes128Ccm() *Aes128Ccm {
|
||||
return newAes128Ccm(clientcertificate.Type(0), TLS_PSK_WITH_AES_128_CCM, true, ciphersuite.CCMTagLength)
|
||||
}
|
Reference in New Issue
Block a user