mirror of
https://github.com/SamTherapy/dnscrypt.git
synced 2024-12-22 08:50:43 +00:00
golint issues
This commit is contained in:
parent
0f4b899065
commit
6c1e0b5828
1 changed files with 7 additions and 4 deletions
11
dnscrypt.go
11
dnscrypt.go
|
@ -20,13 +20,16 @@ import (
|
|||
"golang.org/x/crypto/nacl/secretbox"
|
||||
)
|
||||
|
||||
// Encryption algorithm (either XSalsa20Poly1305 or XChacha20Poly1305)
|
||||
// CryptoConstruction represents the encryption algorithm (either XSalsa20Poly1305 or XChacha20Poly1305)
|
||||
type CryptoConstruction uint16
|
||||
|
||||
const (
|
||||
UndefinedConstruction CryptoConstruction = iota // Default value for empty CertInfo only
|
||||
XSalsa20Poly1305 // Salsa20Poly1305 encryption
|
||||
XChacha20Poly1305 // Chacha20Poly1305 encryption
|
||||
// Default value for empty CertInfo only
|
||||
UndefinedConstruction CryptoConstruction = iota
|
||||
// Salsa20Poly1305 encryption
|
||||
XSalsa20Poly1305
|
||||
// Chacha20Poly1305 encryption
|
||||
XChacha20Poly1305
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
Loading…
Reference in a new issue