-
Notifications
You must be signed in to change notification settings - Fork 18
/
cryptoinfo.go
46 lines (37 loc) · 855 Bytes
/
cryptoinfo.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package sdp
type CryptoInfo struct {
tag int
cipherSuite string
keyParams string
sessionParams string
}
func NewCryptoInfo(tag int, cipherSuite string, keyParams string, sessionParams string) *CryptoInfo {
sdes := &CryptoInfo{
tag: tag,
cipherSuite: cipherSuite,
keyParams: keyParams,
sessionParams: sessionParams,
}
return sdes
}
func (s *CryptoInfo) Clone() *CryptoInfo {
sdes := &CryptoInfo{
tag: s.tag,
cipherSuite: s.cipherSuite,
keyParams: s.keyParams,
sessionParams: s.sessionParams,
}
return sdes
}
func (s *CryptoInfo) GetTag() int {
return s.tag
}
func (s *CryptoInfo) GetCipherSuite() string {
return s.cipherSuite
}
func (s *CryptoInfo) GetKeyParams() string {
return s.keyParams
}
func (s *CryptoInfo) GetSessionParams() string {
return s.sessionParams
}