mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 16:43:25 +08:00
添加 github.com/pion/dtls 代码
This commit is contained in:
24
dtls-2.0.9/pkg/crypto/signature/signature.go
Normal file
24
dtls-2.0.9/pkg/crypto/signature/signature.go
Normal file
@@ -0,0 +1,24 @@
|
||||
// Package signature provides our implemented Signature Algorithms
|
||||
package signature
|
||||
|
||||
// Algorithm as defined in TLS 1.2
|
||||
// https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-16
|
||||
type Algorithm uint16
|
||||
|
||||
// SignatureAlgorithm enums
|
||||
const (
|
||||
Anonymous Algorithm = 0
|
||||
RSA Algorithm = 1
|
||||
ECDSA Algorithm = 3
|
||||
Ed25519 Algorithm = 7
|
||||
)
|
||||
|
||||
// Algorithms returns all implemented Signature Algorithms
|
||||
func Algorithms() map[Algorithm]struct{} {
|
||||
return map[Algorithm]struct{}{
|
||||
Anonymous: {},
|
||||
RSA: {},
|
||||
ECDSA: {},
|
||||
Ed25519: {},
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user